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 match function in Zend (ZF1) Custom route

I’m developing a website under Zend Framework 1.12 where users can upload pictures to illustrate their profile. I’m trying to implement a function that will check, every time a miniature is displayed, if it exists and save it in different sizes if…
l_r
  • 1,060
  • 12
  • 23
0
votes
1 answer

ZF2- Dynamic base route

I'm trying to create a dynamic route in a ZF2 project. It will be something like "domain.com/companyurl/products". The company url is dynamic. I did it: 'company' => array( 'type' => 'Segment', 'options' => array( 'route' =>…
0
votes
2 answers

ZendFramework2 routing between modules

I have a SkeletonApplication installed and implemented some controllers into the standard module 'Application'. That works fine. But now I want to use a second module and I want to set a route from within the 'Application'-module to the new module…
TheFan1968
  • 897
  • 6
  • 8
0
votes
1 answer

Child, segment route with child route by method not routing

The top router here works. /property is a Literal route that doesn't terminate and picks up on GET actions on the child route. Below that I have a segment route that, like its parent, doesn't terminate and picks up on GET actions on the child…
Bluebaron
  • 2,289
  • 2
  • 27
  • 37
0
votes
1 answer

Zend2 routes constraints like enum

I want to have a enum like constraint on a variable passed to of my project's route e.g. variable routeVar only can be optin or optout so lets say I want to have a url like http://subdomain.exampledomain.com/route/ which can get only one of the two…
Ali
  • 2,993
  • 3
  • 19
  • 42
0
votes
2 answers

ZF2 Routing by Hostname works with other modules

I added a reseller subdomain on my myhost.com (reseller.myhost.com) and I use it for routing to my Reseller module. Read this question I posted before here: click here My Reseller route config looks this: 'router' => array( 'routes' => array( …
babak faghihian
  • 1,169
  • 2
  • 13
  • 24
0
votes
4 answers

Zend Framework 2 Routing Segment Error

I tried to understand ZF2 Module Routing, but I have a problem. I would like to list products by period and generate a link for each of the periods (today, this-week, this-month, all). For example:
0
votes
1 answer

zend framework 2.4 index action

Started on the zend tutorial application. Can't make zf2-tutorial.localhost/album/ map to zf2-tutorial.localhost/album/index But using zf2-tutorial.localhost/album/index calls the index action. Have already set the default action as 'index'
V.S
  • 314
  • 1
  • 4
  • 14
0
votes
1 answer

Change languages URL route from 'en_US' to 'en'

Zend languages is by default routing urls that way: /en_US/mypage /fr_FR/mypage How can I change the route from 'en_US' to 'en' and 'fr_FR' to 'fr', example: /en/mypage /fr/mypage
0
votes
2 answers

Zend2 - ZF2 - Routing Issue

i am trying to make my router working so that: /Auth redirects to Auth controller of Auth MOdule /Auth/Login redirects to Login controller of Auth Module While the first works just right the /Auth/Login results in routing issue. My router…
Abdel5
  • 1,112
  • 3
  • 16
  • 39
0
votes
1 answer

url to http request object

I need to convert string like this: $url = 'module/controller/action/param1/param1value/paramX/paramXvalue'; to url regarding current router (including translation and so on). Usually I generate the target urls using url view helper, but for this I…
takeshin
  • 49,108
  • 32
  • 120
  • 164
0
votes
1 answer

The requested URL could not be matched by routing in zf2

I have this route: 'editRelationship' => array( 'type' => 'Segment', 'options' => array( 'route' => '/editRelationship[/:state]', 'constraints' => array( …
Dave
  • 205
  • 2
  • 7
  • 22
0
votes
1 answer

Routing problems in ZF2 : Controller not mapped

I'm trying to create a simple CRUD in Zf2 to get to know it and I'm having problems routing the only controller I have. I have this error; "The requested controller could not be mapped to an existing controller class". I'm trying to call this…
Tuck
  • 3
  • 3
0
votes
0 answers

How can I make the Segment router sanely process constraints in ZF2?

I'm using the Segment router as a child of one of my main Literal routes in a ZF2 (currently using 2.3.5) application. The router needs to be able to handle Turkish input characters coming in from the URL. My first attempt looked something like this…
Caleb
  • 5,084
  • 1
  • 46
  • 65
0
votes
1 answer

Zend Framework Routing - child route works but not main route

I have what I hope is quite a simple question, but it's been taking me a while to figure out... I have tried to setup a /settings route in Zend. I do not have a module for settings but I have setup the necessary views and controllers within the…