Hi all,

how do I get a molude path using symfony classes? I have only the module
name and it can be a plugin module.

Today I loop trought all the plugins, but I believe sf has a better way to
do that:

$pc = sfProjectConfiguration::getActive();
        $paths = $pc->getPluginPaths();
        $basepath = '../apps/frontend';
        array_unshift($paths, $basepath);
        $filepath = '/modules/' . $moduleName .
'/actions/actions.class.php';
        $done = false;
        foreach($paths as $path) {
            $path .= $filepath;
            if(file_exists($path)) {

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to