classes/modules/directory1/mymodulein Task1 :: method1? EXAMPLE that does not work:
namespace Fuel\Tasks;
class Task1
{
public function method1()
{
// add the module MyModule to FuelPHP
Fuel::add_module('directory1/mymodule');
// calling the module class
\directory1\mymodule\myclass::mymethod('parms');
}
How should it be correct without using include_once('/path/to/directory1/mymodule') ?
Thank you
Jozef \Model_Example::count(); // take a model from the app \Mypkg\Model_Two::query()->get(); // take a model from package Mypkg
It looks like you're new here. If you want to get involved, click one of these buttons!