Questions tagged [zend-controller-router]

Standard router component in Zend Framework. Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.

zend-controller-router is a tag suitable for questions regarding standard router component in Zend Framework.

56 questions
0
votes
0 answers

In Zend, How Can I Route Controller-Omitted URLs To The Index Controller

In order to have user-friendly URLs in my application, I want all URLs that call actions in the index controller to omit the controller name. For example: /user/edit => /user/index/edit The "index" part of the URL is unfriendly. But, I would…
0
votes
1 answer

Zend_Controller_Router_Route_Hostname with additional variable

I'm having a problem with chaining some routes using another variable at the end. I'm using wild card sub domains. Like this: http://eric.mysite.dev/mypage1 mypage1 is going to be a GET variable. So what I want is…
EricP
  • 1,459
  • 6
  • 33
  • 55
0
votes
1 answer

Zendframework Routing Issue

I have been setting my routes in my application.ini file which works for all the ones i have setup. The problem is when there are multiple actions within that controller and i try to use the routes in other actions. For instance i have created the…
0
votes
1 answer

Zend Regex route reverse with paginator

I have following regex route, which allows me to use pagination - to parse URL and also build it: ; route "product-{brand}" product.type = "Zend_Controller_Router_Route_Regex" product.route =…
Ivan
  • 315
  • 1
  • 3
  • 16
0
votes
1 answer

zend framework 2 notice appears in console when call a console action

I have follow the simple steps of zend documentation to develop a many simple console action. My action have only one literal param. It works ok and the action is executed but before, in each call appears following notice and a stack trace. How I do…
0
votes
1 answer

zend2 routing paginator and module

I'm having issues with Zend Framework 2 Router object. I'm trying to implement Zend\Paginator into the quickstart routing mechanism example without success. Let me explain: After following the quickstart I ended with something like this: 'album' =>…
Alwin Kesler
  • 1,450
  • 1
  • 20
  • 41
0
votes
1 answer

zend resources.frontController.baseUrl don`t work

I need to put one zend project in a subdirectory of my root server. I want my project in: "http://blog.com/site" and not in "http://blog.com". Trying to do it, I`ve added in file: /application/configs/application.ini the line…
0
votes
1 answer

Setup Zend Router with and without lang uri parameter

I'm wondering if anyone can help me with the next issue I have. I want to be able to setup my project with multilanguage support with and without Uri lang flag, and also, with module structure. I mean something like…
0
votes
2 answers

Zend Controller Router : Define variables to point to a different action in one controller

I'm just new with Zend and I have a little trouble with Zend Routers. I've searched about it, but nothing found... I want to be able to define a router for each defined variable at uri level to point to a different action in one controller. I'm…
Ramiro
  • 1
  • 3
0
votes
1 answer

How to call a javascript function from zend controller indexAction?

i want to call a javascript function from zend controller indexAction. my controller is look like this.. // mycontroller.php public function indexAction(){ $role = 'admin'; $id = 23; // here i want to call the…
-1
votes
1 answer

Zend Framework How to disable a controller

When I put this addres example.com/js/config I need to load a config file for JS but router loading a controller and displays error beacouse the controller dosn't exists. In bootstrap file I put a _init method: protected function _initJsConfig(){ …
1 2 3
4