I've searched a lot how to load/include a simple class in symfony 1.4 and i found nothing. I have this situation.
Under:
./apps/APP_NAME/
modules/MOD_NAME/lib
I have a class:
class MyClass {
function get_data(){
retrun "data";
}
}
- Which is the best way to load in controller on symfony 1.4 the class?
- Over on config exist some other way like function use_helper()?
Update: I want to load on demand, not to autoload with the convention of symfony 1.4 naming the file MyClass.class.php