module path problems

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
pumuklee

module path problems

Post by pumuklee »

hi

i have a new module
this is created from an old standalone application writed in php used smarty

my problem is that now i must modify now all the path, submits ...
because now it is a module not standalone it is integrated in cmsms and all the path are changed

so that the solution maybe it is to set the root dir i dont know in which way to the module dir
maybe

any idea to solve this path problems?

another question - where it is saved the current module path?

thanks
Last edited by pumuklee on Wed Apr 11, 2007 1:55 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: module path problems

Post by calguy1000 »

Here's some code from FrontEndUsers that may help you:

Code: Select all

function myModulePath()
{
    $str = "/modules/".$this->GetName()."/";
    return $str;
}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
pumuklee

Re: module path problems

Post by pumuklee »

hi
yes you have right

and i found also that $this object contain much more info
it can be show if we type something like this

print_r($this);

bye
Locked

Return to “Modules/Add-Ons”