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
0 answers

Zend Routing opposite of constraints?

I have quite a complex routing file at the moment. I want to be able to have skippable segments (which I'm using a plugin for at the moment - https://github.com/tccltd/TccSkippableSegment) but also skip that segment if it matches one of the child…
sjhuda
  • 63
  • 1
  • 7
2
votes
0 answers

Action is not executed

Guys am creating an Auth module and inside my AuthController I have three methods: 1. loginAction() 2. autheticateAction() 3. logoutAction() Problem is when I submit the form the autheticate() method is not executed : $form->setAttribute('action',…
Ivan
  • 5,139
  • 11
  • 53
  • 86
2
votes
1 answer

ZF2 router configuration for subdomain with child routes

I need my router configuration to work as follows: www.bmob.co.uk -> DtCompanyData\Controller\CompanyMap wage.bmob.co.uk -> DtWage\Controller\Wage wage.bmob.co.uk/brighton -> DtWage\Controller\WageBrighton After reading…
ellcub
  • 601
  • 5
  • 9
2
votes
1 answer

How to replace an invokable class in the RoutePluginManager in Zend Framework 2?

I've written a custom Part class (MyNamespace\Mvc\Router\Http\Part), that shall now be used instead instead of the Zend\Mvc\Router\Http\Part. How to load it to the list of the invokables of the Zend\Mvc\Router\RoutePluginManager? -- EDIT: Just…
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
2 answers

ZF2 - Injecting pages to navigation before controller is called

I'm creating a dynamic Application in which the content is added through a CMS. Inside the CMS, I'm setting a db entry which states what module to use for each content page. NodeId, ParentNodeId, Name_de, Name_en,…
2
votes
1 answer

Route mit special characters are not parsed correctly in Zend Framework 2

URIs with german special characters don't work (error 404). I've already had this problem (here) and it has been resolved with the unicode modifier and a custom view helper, that uses it. Now I have the same issue with a Segment child route, but…
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
1 answer

Zend Router - URL with or without parameters are two differents routes

I'm currently creating a new version of my website using Zend Framework and I'm stuck with a little problem I've seen in the past. There are my routes: (a part) // BLOG -> CATEGORIES $route = new Zend_Controller_Router_Route( 'blog/categories', …
Frederick Marcoux
  • 2,195
  • 1
  • 26
  • 57
2
votes
1 answer

How to redirect Error Page and perform Routes in Zend Framework 1.x

How to perform routes in Zend Framework 1.x and also redirect custom error messages?
Keval Domadia
  • 4,768
  • 1
  • 37
  • 64
2
votes
2 answers

Zend Router URL array merge

I have a problem with custom zend router. this is my cat router $frontController = Zend_Controller_Front::getInstance(); $router = $frontController->getRouter(); $router->addRoute('categories', new Zend_Controller_Router_Route( …
2
votes
4 answers

ZEND - Conflicting route patterns

I'm using Zend framework 1.12, trying to come up with custom routes. I'm trying to create something that looks like facebook's profile URL (http://facebook.com/username). So, at first I tried something like that: $router->addRoute( …
Pedro Cordeiro
  • 2,085
  • 1
  • 20
  • 41
2
votes
1 answer

Routing in Zend Framework 2, skip 'index' action in url but get id

I have a controller that can be invoked as modulename/xmlcoverage with index action and some other actions, let say testAction(). The url to this controller is xml/coverage. The default way is then that xml/coverage maps to my index action. And that…
Matsemann
  • 21,083
  • 19
  • 56
  • 89
2
votes
4 answers

Zend Routes translate URL's

1) I have a controller "calendar" and have action "showDate" which gets date via url. So, url is something like "calendar/show-date/date/2012-07-22" 2) I have a link to display all entries, "calendar/" So, I want to create routes so my links look…
Ivan Bajalovic
  • 780
  • 1
  • 9
  • 20
2
votes
3 answers

Optimizing Zend framework routes

I'm using a traditional Zend framework application generated using Zend tool. I have several modules in my application all generated using Zend tool too. I'm intending to use the default routes in Zend framework in my application. For example:…
Songo
  • 5,618
  • 8
  • 58
  • 96
1
vote
1 answer

Zend route regex for one character in url

For an web-application i need to handle the following url structure: http://foo.tld/a/foo I need to write a regex for my route to handle /a/ this part has to contain only 1 character as possibility. I handle now with: routes.suggestions.type =…
directory
  • 3,093
  • 8
  • 45
  • 85
1
vote
1 answer

Zend Framework route for generic pages?

I'm building a Zend Framework sites. It's MVC, so uses controllers so I have controllers like NewsController that is accessed via /news etc. However, another of my controllers is PagesController, which handles just static content pages. My…
Martin Bean
  • 38,379
  • 25
  • 128
  • 201