Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Module method calls
  • Within a module, all classes have the same namespace which is the module folder.
    Which would be best practice when calling a method from a different class within the same namespace (module)?
    \Module\Class::method()
    
    or
    Class::method()
    
    ?
  • The latter, otherwise if you'd change the namespace you'd have to change each and every call to a class.
  • Thx, Jelmer.
    What a great framework and community Fuel has.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion