jpganz18
jpganz18

Reputation: 5858

how can I execute (or ask to be executed) an action from another action file on symfony 1.4?

I am making some action files at my part of plugins, the structure is like this:

Plugins > My project > modules > mymodule > action > myfileAction.class.php

and I am using the default function public function execute($request) and what I basically im trying to do is to call another file at same folder, sending parameters to execute a function of it, honestly Ive tried in other ways like $this->execute('mymodule/myfile2Action'); but no results, and I dont know how to send the paramenters, any idea?

Thanks

Upvotes: 0

Views: 123

Answers (1)

apoq
apoq

Reputation: 1454

Haven't touched this for a while, but I guess this should help you out:

$this->getController()->getPresentationFor($module_name, $action_name);

Upvotes: 1

Related Questions