[fw-general] getRequest

2007-09-27 Thread Waigani
Hi All, $request = Zend_Controller_Front::getInstance()->getRequest(); print_r($request); in the bootstrap index.php prints nothing. I've tried everyway I can think of to getModuleName() from the bootstrap with no luck. I also tried $request = new Zend_Controller_Request_Http(); $request->getM

Re: [fw-general] getRequest

2007-09-27 Thread Waigani
Hi All, I've added a route ($router->addRoute) and want to set the default value of a variable as the current module name. I can't seem to get the current module name though. Thanks, Jess Waigani wrote: > > Hi All, > > > $request = Zend_Controller_Front::getInstance()->getRequest(); > prin

Re: [fw-general] getRequest

2007-09-28 Thread Matthew Weier O'Phinney
-- Waigani <[EMAIL PROTECTED]> wrote (on Thursday, 27 September 2007, 04:10 PM -0700): > $request = Zend_Controller_Front::getInstance()->getRequest(); > print_r($request); > > in the bootstrap index.php prints nothing. Because it's not yet instantiated. $front->dispatch() creates a request ob

Re: [fw-general] getRequest

2007-09-30 Thread Waigani
Dear Matthew, Thank you very much for the clear explanation. So if I want to add the current module as a default variable of a route ($router->addRoute), should I do this in a plugin? Thanks, Matthew Weier O'Phinney-3 wrote: > > -- Waigani <[EMAIL PROTECTED]> wrote > (on Thursday, 27 Septem

AW: [fw-general] getRequest

2007-10-01 Thread Leo Büttiker
@lists.zend.com Betreff: Re: [fw-general] getRequest Dear Matthew, Thank you very much for the clear explanation. So if I want to add the current module as a default variable of a route ($router->addRoute), should I do this in a plugin? Thanks, Matthew Weier O'Phinney-3 wrote: > > -- W

[fw-general] getRequest->()getUserParam conundrum

2011-10-12 Thread Mike Wright
Hi all, I need external brains for this one ;) I've got an ajax client-side, zf server-side application. Given this path: http://vm7/admin/location/deactivate/name/Store%20#2 ->getUserParam('name') returns "Store " The # and everything following has been truncated. Insight? TIA, Mike

Re: [fw-general] getRequest->()getUserParam conundrum

2011-10-12 Thread Konr Ness
The hash sign is a special character in URLs, indicating an anchor on the page. So the # must be encoded to %23. http://vm7/admin/location/deactivate/name/Store%20%232 Konr On Wed, Oct 12, 2011 at 2:25 PM, Mike Wright wrote: > Hi all, > > I need external brains for this one ;) > > I've got an a