Questions tagged [zend-router]

zend-router 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.

zend-router 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.

78 questions
0
votes
1 answer

Match multiple domains with zf2 router

I need to match 2 different domains with my ZF2: www.gamempire.it is the base www.rankempire.it have to match to only a specific controller So I tried adding this to my router configuration, but with no success (it match to my default…
Oscar Fanelli
  • 3,337
  • 2
  • 28
  • 40
0
votes
1 answer

Zend Translate Routing for custom modules

How do I have to set up the routing for a default language in Zend Framework on a custom module, in my case the admin module. I have the following code: $langRoute = new Zend_Controller_Router_Route( ':lang/admin', array( 'lang' =>…
Tudor Ravoiu
  • 2,130
  • 8
  • 35
  • 56
0
votes
1 answer

custom routing for content pages in zf2

Hello to all zend coders. I am newbie to zend, doing code for manage pages through DB. I want to use URL for these pages like this: www.domainname.com/about-us www.domainname.com/contact-us ... Table name is 'cms_page' & attributes are: `id` int(11)…
Lalit Kaushik
  • 1,062
  • 2
  • 12
  • 30
0
votes
1 answer

Zend 2 Framework Routing

I'm struggling with this problem and can't get over it. What I want to achieve is a route like this: /rolepermission[/:roleid]/permissions[/:permissionid][/action/:action] Currently I came up with something like this: 'rolepermission' =>…
kinkee
  • 368
  • 2
  • 12
0
votes
1 answer

zend Navigation not right work cause zend router

my url is http://mysite.com/index/bytype/id/5/name/ACTION when using zend router it'll be rewrite to http://mysite.com/index/bytype/5.ACTION.html i was config in file router.ini like this: routes.bytype.type =…
Rain
  • 601
  • 6
  • 10
0
votes
1 answer

Zend router: combining a list of urls into a single or list

I have several urls: /dave /davina /dave/chris /davina/peter I have entries for all of them in my routes, an example of this is: routes.dave.route = /dave routes.dave.defaults.module = default routes.dave.defaults.controller =…
Ne Ma
  • 1,719
  • 13
  • 19
0
votes
1 answer

zend framework url helper - how to pass variable before controller?

I have specific problem with Zend Framework (1.12) - url helper. I have site, divided by languages in this form: /en/contact /de/gallery/gal1 etc.. I have changed router to accept first parameter as variable and it's accessible by GET. How can I set…
Ivan
  • 315
  • 1
  • 3
  • 16
0
votes
1 answer

Zend Routing / URL helper . Have a global parameter show up first in URL

Was curious if anyone knew the best way to implement the following: I have a parameter in my zend framework 1.12 app which effectively controls the 'scope' of things, and is a field in every table in my db to represent the scope of a row. It is a…
0
votes
1 answer

Skip custom parameters in ZF2 HTTP Query router

I am generating url addres with zend url helper with additional /query, as I found here. In configuration file I have setup router like that: 'my_name' => array( 'type' => 'segment', 'options' => array( …
acabala
  • 149
  • 1
  • 14
0
votes
1 answer

ZendFramework 2 - How to make all the actions available with one router rule? Its only allowing action index

How to allow all sub actions inside that controller with one router rule? For example this follow: visit: site/login - works only site/login/forgetpassword - does not work site/login/remmeberme - does not…
user285594
0
votes
2 answers

Zend Framework routing throws an application error for trailing exclamation point on URL

I have a view that works correctly when "http://localhost/public/account/test" is visited, but when an exclamation point is added ("http://localhost/public/account/test!"), I get an application error; however, I'm expecting a 404 error to occur.…
Steven
  • 3,526
  • 3
  • 18
  • 28
0
votes
1 answer

Zend_Route on the fly

We are developing a CMS. This will have a template system, so for example, if the admin wants to add a news section, then he will have to create a template for that section, and another one for each news, that is, for instance, /news/:int:/:title:/,…
Cito
  • 1,659
  • 3
  • 22
  • 49
0
votes
1 answer

Dynamic Controller with Zend Router through Resources

I'm trying to create a clone ( http://site.com/indexclone ) for http://site.com/index, but I also want all actions to be functional as they are in IndexController and potential parameters that are passed to original controller. I've figured out so…
eistrati
  • 2,314
  • 6
  • 26
  • 35
0
votes
1 answer

router dont work in ZF 2beta5

Possible Duplicate: Zend Framework 2 MVC - Modules Route mapping not working My router was working in beta4 but isn't working in beta5. Needed is Locale in url. Option is namespace/module in url. In module.config.php return array( …
Tirsvad
  • 93
  • 1
  • 11
0
votes
1 answer

double slash in URLs.

Zend Route issue. Normally it works fine. http://www.example.com/course-details/1/Physics-Newtons-Law But if I type in an extra slash in the url, the noauthAction of my Error controller gets called. Example of URL's that are not…
Gublooo
  • 2,550
  • 8
  • 54
  • 91