|
|||
|
This is a weird issue, maybe i forgot something but can't tell
This is in my route PHP Code:
require 'Zend/Loader.php'; // Save resources Zend_Loader::loadClass('Zend_Config_Ini'); Zend_Loader::loadClass('Zend_Controller_Front'); Zend_Loader::loadClass('Zend_Controller_Router_Rew rite'); Zend_Loader::loadClass('Zend_Db'); Zend_Loader::loadClass('Zend_Session'); $front = Zend_Controller_Front::getInstance(); $front->setControllerDirectory('application/controllers'); $front->throwExceptions(true); $config = new Zend_Config_Ini('settings/routes.ini', 'production'); $router = new Zend_Controller_Router_Rewrite(); $router->addConfig($config, 'routes'); From controllers: public function discussionAction() { $forum_id = (int) $this->_getParam('id'); $this->view->t = $forum_id; } public function viewAction() { if($this->_hasParam(1)) { $this->view->t = 'hey it works'; } } I tried using integers and names... i just can't get the params.. do i have to load a class? or something? missing something? What i want is http://locahost/forum/discussion/ID-TITLE.html (the other works, but i can't get the id or title with getParam() ) Last edited by David : 03-07-2008 at 11:17 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|