|
|||
|
Hi,
I'll get straight to the point. When you have 4 small pages like 'disclaimer, contact info, sitemap, about us,...' And you wanna make an url like http://localhost/sitemap/ or /disclaimer/ You are forced to create a controller for each stupid small page you want to make... which I think is just not necessary. Now I've made a controller called StaticpageController.php but now I have to do http://localhost/staticpage/disclaimer How do I make the rewrite engine just use /disclaimer ? Thanks, Jasper |
|
||||
|
Actually i am totally rewriting the controller/action model...
I am personally using a database with pages (where each page has an action, a controller, a page ID and other elements), and in URL i am using just page ID along with some SEO things and URL will be like this: /page-title-optimized-for-search-engines_pageid_language_optionalparam1_optionalpar am2_.... now, for you would be something like this, on index.php: Code:
$request = new Zend_Controller_Request_Http();
$request->setControllerName("static");
$frontController->setRequest($request);
.......
$frontController->dispatch();
__________________
Zend Framework Tutorials | Zend Framework Forums | Zend Framework IRC Channel | | Zend Framework Resources | CoreShifter | Microsoft Forums | Microsoft Links | Microsoft Books |
![]() |
| Thread Tools | |
| Display Modes | |
|
|