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

Pass value to a zend framework based application from IFrame integrated another site

I've been facing a strange problem. I've an application based on zend framework and i need to load this application using IFrame from another domain. While loading i need to pass a value from IFrame to the application based on Zend Framework. I…
Anindya
  • 61
  • 1
  • 1
  • 5
0
votes
1 answer

Zend Framework 2, route with query fails only if route has child routes

Since 2.1.4 the Query route is deprecated, I'm routing to my blog like this: 'cro-blog' => array( 'type' => 'Literal', 'options' => array( 'route' => '/blog', 'defaults' => array( …
0
votes
2 answers

Zend Framework dynamic action name routing

My site lets you create projects, and there are multiple project types (like project templates). What I want to do is to have one single action that handles all project types. Currently for each project type I have a separate action and view. I want…
Eduard Luca
  • 6,514
  • 16
  • 85
  • 137
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

ZF2 Hostname router : get domain and tld as one param

I have a route, something like: array( 'type' => 'Hostname', 'options' => array( 'route' => ':subdomain.:domain.:tld', 'defaults' => array( '__NAMESPACE__'…
Fatmuemoo
  • 2,187
  • 3
  • 17
  • 34
0
votes
1 answer

Zend Framework - Param not specified

I got a little problem here. I'm currently trying to use the Zend Router Rewrite but I got this error: Fatal error: Uncaught exception 'Zend_Controller_Router_Exception' with message 'alias is not specified' Here's my code for the route: // BLOG ->…
Frederick Marcoux
  • 2,195
  • 1
  • 26
  • 57
0
votes
1 answer

Zend - other-domain redirect like mod_rewrite

I have several basic redirects on apache using mod_rewrite's RewriteRules. I want to do these redirections programatically, using Zend Framework. These redirections may include different domains. E.g. RewriteRule ^/xmas(.*)…
xmar
  • 1,729
  • 20
  • 48
0
votes
2 answers

Zend Url View Helper not working with Regex Routes

I'm using Zend Framework 1.12 and have this route: $router->addRoute('item_start', new Zend_Controller_Router_Route_Regex( '(foo|bar|baz)', array( 'module' => 'default', 'controller'…
Nuramon
  • 1,252
  • 9
  • 8
0
votes
1 answer

How to use extensions in Zend Framework Routing

I'd like to use an extension like .htm in my URLs. Is there a way to accomplish that? I've defined the following rule: frontend.route = '/:standort/:id' When I use the following frontend.route = '/:standort/:id.htm' then the name of the variable…
tdog4224
  • 138
  • 2
  • 12
0
votes
1 answer

htaccess redirect loop

Hey guys I'm getting a pretty nasty redirect loop since I'm using a bootstrap and need to figure out how to fix it. Just a heads up, but from forwarder.dev/direct-mail/{2 digit var}?CampId={7 digit var} I have a Zend Router forward this to somewhere…
ehime
  • 8,025
  • 14
  • 51
  • 110
0
votes
1 answer

Zend Framework : How to handle "No route matched the request" error?

In Bootstrap.php I have some custom routes using Zend_Controller_Router_Route_Regex. Everything works fine except when user type in address bar a wrong link. Ex : http://mysite/en/1-some-article.html => This is a valid link that matches a ROUTE in…
Nấm Lùn
  • 1,277
  • 6
  • 28
  • 48
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
1 answer

Add Zend_Controller_Router_Route replaced default route

When I added this route $classes_router = new Zend_Controller_Router_Route( '/:filter1/:filter2/*', array( 'module' => 'course', 'controller' => $filter_controller, 'action' => 'index', 'filter1' =>…
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