Questions tagged [zend-route]

Routing in Zend Framework's MVC implementation. Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.

zend-route is a tag suitable for any questions regarding routing in Zend Framework's MVC implementation, url handling, or any other matter affecting or affected by routing in Zend Framework.

319 questions
2
votes
1 answer

Full url with schema, domain and port

How do assemble (using Zend Routes) the full url with schema, domain and port, not just a root-based path? Sample use case: we need to specify full url in the emails sent to the clients. AFAIK there is no any built-in solution but what is a best…
zerkms
  • 249,484
  • 69
  • 436
  • 539
2
votes
2 answers

Zend Routing Not Working

I am trying to set up my zend route using the routes.ini and bootstrap but for some reason it is not able to route as expected. My routes.ini and bootstrap.php are as follows. routes.ini [production] routes.guestbook.route =…
javaadgrid
  • 49
  • 6
2
votes
1 answer

Translating route segments with ZF's gettext adapter

I want to try out the route translations in Zend Framework, but I'm using the gettext adapter and the most tutorials have PHP translate adapter, so I'm having problems to make it work. In the main Bootstrap.php I have the method in which I set the…
nevvermind
  • 3,302
  • 1
  • 36
  • 45
2
votes
1 answer

Zend custom route not being recognized for controller

I'm creating a controller which will pull information of a painter from a database and display it: PainterController. I have defined it like so:
Tom
  • 8,536
  • 31
  • 133
  • 232
2
votes
1 answer

Zend MVC load config based on parameter in Url. Where is the right point dispatch/router/controller?

I'm defining a partner through a route based on the url e.g. my.domain.com/:partner/:controller/:action Now I want load the config file, databases for the partner before the front controller is called. Where do I locate this code? How do I…
Manuel
  • 9,112
  • 13
  • 70
  • 110
2
votes
2 answers

Zend Router chaining problem with subdomain

I have a $siteRoute for subdomains: $siteRoute = new Zend_Controller_Router_Route_Hostname( ':siteSlug.test.com', array( 'module' => 'site', ), array('siteSlug' => '^(programming|photography|gaming)$') …
cnkt
  • 2,943
  • 5
  • 30
  • 43
2
votes
2 answers

Want to turn example.com/country/name/Korea to example.com/korea

I think the title explains it all. The thing is that my application is Zend Framework based and includes a number of controllers. The main controllers are: Companies/ People/ Countries/ Initially a country profiles url could ve accessible via a url…
Ali
  • 7,353
  • 20
  • 103
  • 161
2
votes
1 answer

Append param to current URL with view helper in Zend

In my layout-script I wish to create a link, appending [?|&]lang=en to the current url, using the url view helper. So, I want this to happen: http://localhost/user/edit/1 => http://localhost/user/edit/1?lang=en http://localhost/index?page=2 =>…
ANisus
  • 74,460
  • 29
  • 162
  • 158
2
votes
1 answer

Is there a way to change the route variable separator in Zend Framework?

I'd like to change the way URLs that Zend Framework is generating from this: $routeString = '/section/:sectionName'; $route = new Zend_Controller_Router_Route(routeString, array( etc, etc... ); ...to this... $routeString =…
Julian
  • 8,808
  • 8
  • 51
  • 90
2
votes
1 answer

Chain several routes in zend framework

How can I get these 2 routes (languages, amdin) to work.. alone admin, or language will work but together they will fail :( ; Admin route resources.router.routes.admin.type = Zend_Controller_Router_Route resources.router.routes.admin.route =…
Chris
  • 8,168
  • 8
  • 36
  • 51
2
votes
1 answer

Zend_Navigation incompatible with Zend_Router when writing controller/actions?

Novice Zend Framework developer here trying to figure out a simple solution to a Zend Routing problem. I'm sure one of you pros can lend a hand. I have a website (built in Zend Framework using Zend_Navigation) that contains 75% static HTML page…
2
votes
1 answer

Zend Framework routes.ini with multiple routes but the same module/controller/action destination?

i've got a problem with the following routes.ini configuration file of my Zend Framework PHP Application. I would like to use just own created static urls. I dont't want use some kinds of :language/ route! (SEO requirement). How can i do that kind…
user544452
2
votes
2 answers

How to allow all except part 1 and part 2?

This allows me to get easyly dynamic input variables instead of putting a static prefix like /en/etcetcetc, but the problem is all controllers are blocked. Everything goes to index/index. Question: How can i tell this rule allow evertying as it is…
user285594
2
votes
2 answers

Zend Route Catch all

Please help! I am a newbie to Zend and want to modifiy the default routing for a cms project I am working on. How do I create a "catch all" route in zend should a controller not exist? I am trying to create links…
Cullen2010
  • 33
  • 5
2
votes
1 answer

Zend Framework route chaining in application.ini

I am setting language depending on the domain name (en for en.example.com, tr for tr.example.com): resources.router.routes.plain.type = "Zend_Controller_Router_Route" resources.router.routes.plain.route =…
carlos
  • 31
  • 4