Re: [fw-general] routing question (hostname chain)

2009-08-05 Thread Peter Warnock
2009/8/3 Vladas Diržys vladas.dir...@gmail.com The problem is then I do such like this: $hostRoute-chain($pathRoute); -- only one hostname can be routed. You should have two hostname routes with paths chained to them. The hostname routes will define your modules, while the paths define the

[fw-general] routing question (hostname chain)

2009-08-04 Thread Vladas Diržys
Hi, I need some help, so if you know what i'm doing wrong, please don't hesitate :-) I have a website with a few path regexp routes. Lets say: www.example1.com/cat-foo-bar.html - default module, cat controller www.example1.com/ad-foo-bar.html - default module, ad controller

[fw-general] Routing question

2009-07-25 Thread Sergio Rinaudo
Hi, I want to make this kind of route: www.mysite.com/staticword-dynamicword.html where 'dynamicword' will be a variable. I tried do make this route without success, I always get an 'Invalid controller specified' exception. My test was with this code $route = new

RE: [fw-general] Routing question

2009-07-25 Thread Sergio Rinaudo
', 'lang' = '' ) ); http://framework.zend.com/manual/en/zend.controller.router.html Sergio Rinaudo From: kaiohken1...@hotmail.com To: fw-general@lists.zend.com Date: Sun, 26 Jul 2009 01:44:49 +0200 Subject: [fw-general] Routing question Hi, I want to make

Re: [fw-general] Routing Question

2006-12-22 Thread Martel Valgoerad
Andrew Yager wrote: Should there be any difference in processing $route = new Zend_Controller_Router_Route(/, array(controller=index, action=index), $formats); and $route = new Zend_Controller_Router_StaticRoute(/, array(controller=index, action=index), $formats); Of course not. I

[fw-general] Routing Question

2006-12-21 Thread Andrew Yager
Hi, I'm sure there is a simple answer to this question, I just can't seem to find it at the moment. I'm trying to get the __call/not found action of 0.6 working properly. Essentially, I want the following behaviour: When a user browses to http://siteurl/ they see the index page Any other

Fwd: [fw-general] Routing Question

2006-12-21 Thread Lee Saferite
What does your code look like? If, for example, you are using the RewriteRouter, you could do something like this: $router-addRoute('catchall', new Zend_Controller_Router_Route('/*', array('controller'='index', 'action'='error'), array()); $router-addRoute('home', new

Re: [fw-general] Routing Question

2006-12-21 Thread Andrew Yager
Thanks to everyone who replied to my previous question. Should there be any difference in processing $route = new Zend_Controller_Router_Route(/, array (controller=index, action=index), $formats); and $route = new Zend_Controller_Router_StaticRoute(/, array (controller=index,