|
|||
|
Hi,
I need to get params in my class located in models. How could I get them? Example: I'm on this url: /admin/section/pages/ admin is a View, which "calls the model" from application/models That model generates a menu and I need to get the param "section" from the url in order I could highlite assiciated item in the menu. The problem will be probably solved when I set the admin to use everytime the "index controll" and that the "section" is not an controll but the param. But how? Thanks. |
|
|||
|
PHP Code:
|
|
|||
|
Thanks for your reply.
I already has tried this, but that hasn't worked. This code: PHP Code:
Code:
array(3) {
["controller"] => string(11) "admin"
["action"] => string(7) "section"
["module"] => string(7) "default"
}
|
|
|||
|
Hi There,
I do this: $_params = $frontController->getRequest()->getParams(); Zend_Registry::set('params', $_params); I can then retreive the Registry object anywhere and have all params available to me with: $params = Zend_Registry::get('params'); Cheers, |
![]() |
| Thread Tools | |
| Display Modes | |
|
|