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:
>
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/
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
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