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
1
vote
1 answer

How to set up Zend Route to use an additional 'parameter' prior to the MVC paramters?

My situation is this: The application I'm working on uses the sub-domain to detect 'who' the client is. ie: client1.site.com, client2.site.com That's all working fine (and I'm not using any special routes). Now however, I have a need to put my code…
Jayawi Perera
  • 891
  • 1
  • 8
  • 17
1
vote
1 answer

Remove default routes only for default module in Zend Framework

I have 2 modules: default and admin. For default module I created custom and removed default routes because I don't want my web works with booth (custom and default). But I want to use default routes for admin module. Can I set default routes only…
tasmaniski
  • 4,767
  • 3
  • 33
  • 65
1
vote
2 answers

Hostname and regex-based route in Zend Framework

Is it possible to create a router in Zend Framework that can match hostnames using a wildcard or regular expressions (no matter how many parts are in the hostname)? I can create a route that matches based on a hostname $externalHostname = new…
Luke Eller
  • 627
  • 1
  • 7
  • 23
1
vote
1 answer

how to keep 'index' param when call url helper in zend

When I tried to call url helper in a view file like below: $url = $this->url(); The result is if: At current the controller is index and action is index. With index is default action key, it will be only out: [base_url]\[module] At current the…
vietean
  • 2,975
  • 9
  • 40
  • 65
1
vote
1 answer

zend route regex issue

I am trying to make a route in the ini file to match the following URLs, but I have been unsuccessful. /add-announce.html /add-announce-books-53.html My route is this: routes.add_announcement.type =…
1
vote
1 answer

Zend framework - duplication in translated url

I have these URLs cz/kontroler/akce en/controller/action Is used transatable route and works it like charm. But problem is, that when you will write cz/controller/akce it works as well. In generally when you…
tomasr
  • 485
  • 1
  • 8
  • 24
1
vote
2 answers

Zend render static / dynamic with multi controllers

I'm pretty new to Zend (read the documents concerning routers and controllers). My StaticController and IndexController : class StaticController extends Zend_Controller_Action { public function displayAction() { $page =…
1
vote
0 answers

Zend Route and Infinite Categories

I'm building a Cms for an organization and url scheme is like this: departmentName.site.edu/subDepartment/subDepartment/evenMoreSubDepartments/module/controller/action/* I think i have to combine Zend_Controller_Router_Route and…
cnkt
  • 2,943
  • 5
  • 30
  • 43
1
vote
1 answer

Zend framework does not care about the Custom Route specified

I created a router and added to the controller like this public function _initRouting() { // Get Front Controller Instance $front = Zend_Controller_Front::getInstance(); // Get Router $router = $front ->…
mrN
  • 3,734
  • 15
  • 58
  • 82
1
vote
2 answers

What are the different ways to configure routes?

If someone is familier with Zend Framewor, they know what routes are and how they affect the system overall. My question is concerned about ways to can configure this routes. I know two ways to configure them, through Bootstrap.php and…
Starx
  • 77,474
  • 47
  • 185
  • 261
1
vote
1 answer

Zend framework Router replaces capital letters with dashes by default?

If we use capital alphabet in between name for zend controller and action for example inside default module we create class MyGoodController extends Zend_Controller_Action { public fooBarAction() { } } Than to access this action browser url…
Mr Coder
  • 8,169
  • 5
  • 45
  • 74
1
vote
1 answer

zend custom router that uses a mysql db

I am looking at writing a application that requires search engine friendly URLs for a lot of pages. So for example to access say site.com/blah could be a user or a page. For this I was thinking of having a table where I have the URL and then I have…
user669186
  • 93
  • 1
  • 6
1
vote
1 answer

Zend_Router stop translating plus character into space

I have an API call that passes 10+ parameters, in no certain order. http://domain.com/signup/format/json/email/bla/name/bla... For our routes, we are using a config file fed in via $frontController->getRouter()->addConfig($zend_config_object,…
Chris
  • 11
  • 2
1
vote
1 answer

How can I write url /:lang/display-cv-:cvid using zend_config?

I got a zend_config file called routes.ini. Currently my url looks like this /:LanguageCode/display-cv/:CVID as defined by this route: routes.display-cv.route = /:LanguageCode/display-cv/:CVID routes.display-cv.defaults.controller =…
Nicolas de Fontenay
  • 2,170
  • 5
  • 26
  • 51
1
vote
0 answers

Problem with zend_Controller_Router_Route

I have a trouble with zend_controller_Router_Route. I have created a route: $router = $this->frontController->getRouter(); $route = new Zend_Controller_Router_Route( 'catalog/:categoryIdent/:page', array( 'action' => 'index', …