普通网友 2013-04-26 01:08
浏览 30

如何在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

  • 写回答

1条回答 默认 最新

  • douchuza8908 2013-04-26 02:14
    关注

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

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

报告相同问题?