Re: requestAction wants view from requested controller

2011-03-27 Thread Tilen Majerle
you return out from function and other code like render automatically and other stuff after calling function is not performed -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/27 mlecho > cool...can you explain why that works? > > On Mar 27, 8:08 am, Tilen Majerle wrote: > > try this: >

Re: requestAction wants view from requested controller

2011-03-27 Thread Tilen Majerle
try this: autoRender = false; //using the url, get a controller's action data $data = $this->requestAction(array("controller" => $this->controller, "action" => $this->action), array('pass' => array($this->actionParams))); $this->set("data", $data); $this->render("/elements/

Re: requestAction wants view from requested controller

2011-03-27 Thread mlecho
cool...can you explain why that works? On Mar 27, 8:08 am, Tilen Majerle wrote: > try this: > > > function parse() > { >         $this->autoRender = false; >     //using the url, get a controller's action data >         $data = $this->requestAction(array("controller" => > $this->controller, "act

requestAction wants view from requested controller

2011-03-27 Thread mlecho
hi, i am building an api plugin for my webapp...i have almost everything working well except for the actual rendering. The plugin will authenticate and then essentially, from the url, do an action , grab the data, and return it as xml or json. An exmaple url might be: http://webapp.local/api/?token