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
0
votes
1 answer

how to use Zend Route Regex to route a url to another one?

i have a url like this: view_test.php?user=56 and i am trying to get it here: $router->addRoute( 'test', new Zend_Controller_Router_Route( 'test/view/:id', array( 'module' => 'test', …
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
0
votes
1 answer

Zend Routes: Matching

I have these routes that I need to work: /user /user/1 /user/1.json Currently I have 'user' => array('key' => 'user', 'controller' => 'user'), 'user/:id' => array('key' => 'user-id', 'controller' => 'user',…
azz0r
  • 3,283
  • 7
  • 42
  • 85
0
votes
3 answers

Zend Framework controller issue

This has to be the most frustrating and mind boggling problem I have encountered so far. I have a small demo project which has about 5 controllers. When I go to the project using the URL 'localhost/demo/public/' it opens the indexcontrollers…
Björn
  • 203
  • 6
  • 19
0
votes
1 answer

hide the index controller from the URL for a single module

After creating a modular structure for a single module would prevent the url appears the name of the controller. everything works with the defaul site.con/foo/index/action/ I wish I could write as site.com/foo/action/ being IndexController the…
inge
  • 15
  • 3
0
votes
1 answer

How to route dynamic sub-domains in Zend Framework?

I have problem with 'dynamic subdomains' on zend_router_hostname, i have code like(i don't have subdomains like that but whant use subdomain as route parametr): protected function _initRoutes() { $front =…
Axxxon
  • 703
  • 2
  • 11
  • 27
0
votes
1 answer

Zend Routes giving 500 error, messing with Ajax calls

I just set up a couple routes in the bootstrap of my Zend site, here's one of them: $route = new Zend_Controller_Router_Route('organizer/haveItem', array('controller'=> 'organizer', …
jaimerump
  • 882
  • 4
  • 17
  • 35
0
votes
2 answers

Zend Framework one route working one route not

I have 2 similar routes set up for my ZF application, one of which works and one of which doesn't. This one, which displays an item from the database for the user to view, works perfectly: Route in my bootstrap: //Static item profile $route =…
jaimerump
  • 882
  • 4
  • 17
  • 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

Stopping zend route default paramaters 'key' displaying in the URL

I have a route defined as below. $route['manage-vehicles'] = new Zend_Controller_Router_Route( 'vehicles/manage/page/:page', array( 'controller' => 'vehicles', 'action' => 'manage', 'page' => '1' ) ); When the 'page'…
NaNuk
  • 141
  • 9
0
votes
1 answer

Url rewriting in zend framework

I currently have url like localhost/zend_practice/countries/index?data=1 where countries is the name of my controller and index is name of my action. I would like to have url like localhost/zend_practice/countries/index/data/1. Also a rule to accept…
rockstar
  • 1,322
  • 1
  • 20
  • 37
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
0
votes
2 answers

Zend Route - Remove parameter name from URL

I'm starting developing using Zend Framework and I have a question about routes. Is there a way to instead of having a URL like this: www.mysite.com/newsletter/groups/edit/id/1 Have this: www.mysite.com/newsletter/groups/edit/1 (without the…
Fuhrmann
  • 557
  • 13
  • 35
0
votes
1 answer

Zend Framework 2 - Zend\Mvc\Router\Http\Part - Module Configuration

I am creating a multi lingual application using ZF2.. and cannot determine how to add a part URL which will form the base of each URL regardless of modules. http://localhost/en/us/application/index/index/ I totally understand how to configure…
0
votes
1 answer

Zend Navigation setting language parameter for route doesnt reflect in app

I have a zend xml config like so: sitepage
0
votes
1 answer

ZF 1 Unable to chain to Route_Module to get a Id field

I have two modules in ZF 1 one is a module the other is the initial application itself my problem is I need to have a Id dynamic number submited after an action when editing interacting with record. The code bellow is not working I can't understand…
Fernando André
  • 1,213
  • 3
  • 19
  • 32
1 2 3
21
22