Dmity,

If getParam('module') is looking for URL/module/moduleValue/ while
getModuleName() returns the actual name of the module you are operating on.

http://www.example.com/view/list/module/test

controller = view
action = list
module is a param key (getParam('module'))
test is param value.


On Wed, Jun 10, 2009 at 11:25 AM, dmitrybelyakov
<[email protected]>wrote:

>
> Hello,
>
> I just wonder - what's wrong with doing like this in my (default module's)
> ErrorController:
>
>        $currentModule = $this->getRequest()->getParam('module');
>        $currentModule = $this->getRequest()->getModuleName();
>
> Because I don't get the same results with these two functions.
>
> First one returns current module that produced an Exception, the second one
> just returns the default module that is handling the Exceptions.
>
> Why is that happening?
>
> Dmitry.
>
>
> --
> View this message in context:
> http://www.nabble.com/Confusion-with-Request-object-methods-in-ErrorController-tp23964756p23964756.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
---------------------------
Shaun J. Farrell
Washington, DC
http://www.livinginthedistrict.com/
http://www.kapustabrothers.com/

Reply via email to