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

Zend Route Regex not working

For dynamic image resourcing I want to fool the browser the url is image instead of a 'plain'/dynamic url. Therefor I'm using Zend_Controller_Router_Route. I'm just not sure how to fill my reverse string. I have the following route…
IMarks
  • 187
  • 11
0
votes
2 answers

Problem with Zend and addRoute()

With this code: $frontController = Zend_Controller_Front::getInstance(); $router = $frontController->getRouter(); $router->addRoute( 'test', new Zend_Controller_Router_Route( '/test/:action/:type/:id', array( …
joanballester
  • 207
  • 3
  • 11
0
votes
2 answers

Zend Regex Route help

I am trying to create a Zend_Controller_Router_Route_Regex route to process URLs in the following form: search?q=chicken/page=2 where the first regex subpattern would be chicken and second one would be 2. As for the second part where page=2, I want…
nobody
  • 2,709
  • 6
  • 35
  • 37
0
votes
1 answer

Zend_Controller_Router_Route issue

I need to trim the first part of my url Example /param1/12234/module/controller/action would become /module/controller/action/param1/12234 I tried with $router->addRoute('appid', new …
0
votes
3 answers

Zend: route on 'root' level

I'm currently working with Zend for my project. This project had categories. Usually, I'd rewrite the URL's with Zend routes so I can reach my page as following: http://site.ext/category/[category-name]/. But for SEO purposes, I'd like to create…
Martijn
  • 5,491
  • 4
  • 33
  • 41
0
votes
1 answer

How to set routing in Zend Framework 1.12

My aim is to have product links like: domain.com/test-product domain.com/second-test-product instead of: domain.com/products/product/id/5 domain.com/products/product/id/123 Info about each product is get in ProductsController in…
Peter
  • 215
  • 2
  • 13
0
votes
2 answers

Zend Framework product catalog routes

I need some help to build routes for my product catalog. I whant to have urls something like this: /products/electronics/14 /products/electronics/computers /products/electronics/computers/laptops/4 Last numbers in urls shows current listing page…
Irmantas
  • 3,331
  • 2
  • 18
  • 10
0
votes
0 answers

I have some issue with my routing on Zend Framework 3

I have installed Zend Framework 3, and I dont know how access controller. this is my url: http://localhost/catalog route:
user3571514
  • 91
  • 1
  • 1
  • 6
0
votes
1 answer

ZF2, Route with Slug or Action in the same place?

I want this route: localhost/events/ -> show list of events (listAction) localhost/events/ultra-music-festival -> show event detail localhost/events/bob-ross -> show event detail localhost/events/anyAction -> execute any action in…
Tenil
  • 11
  • 3
0
votes
2 answers

Zend Routing can this be done

This is possible in Symfony with some routing magic but in Zend I'm not sure how to do this. I want to make this url http://example.com/unit/view/id/[15] look like this instead http://example.com/unit/[15]/view/[name] where unit/view is the…
Lingo
  • 1,865
  • 2
  • 16
  • 14
0
votes
1 answer

How to create a custom router in Zend-Framework?

I am using a custom Router to enable pages like: mytutorialsite.com/category/:categoryname # added to application.ini resources.router.routes.categorynameOnCategory.route =…
Wouter Dorgelo
  • 11,770
  • 11
  • 62
  • 80
0
votes
1 answer

how to have a normal form's action to follow zend custom routing?

i've picked up zend framework and being playing with it, and here is a situation i'll like to achieve. i have default and user modules, user has a different layout user_layout that i load in predispatch of NovelsController of user modules.i have a…
black sensei
  • 6,528
  • 22
  • 109
  • 188
0
votes
2 answers

ZF: Route to partner website URL

How can i setup a route that points to URL of a partner website? Example: Try this ultra fab partner website Reason for this; the URL is quite complicated and used around the…
Phliplip
  • 3,582
  • 2
  • 25
  • 42
0
votes
2 answers

zf2 - url view helper: specify parameters for route

My main router goes like this (simplified): 'router' => [ 'routes' => [ 'blog' => [ 'type' => 'regex', 'options' => [ 'regex' => "/(?[a-z]{2})?", …
yivi
  • 42,438
  • 18
  • 116
  • 138
0
votes
1 answer

Zend Framework 2: Dynamic navigation and breadcrumbs

I made a navigation in Zend Framework 2 using a global file located in config/autoload. how can I get in this global file the route parameters? I have tried this: $helper = new Zend\View\Helper\ServerUrl(); $active_url = $helper->getHost(); but…
Andreea
  • 139
  • 12