mercredi 5 septembre 2018

Access methods from anywhere calling by name

I want to create a helper class in which I'll be writing certain utility methods. Now I'm looking for a way by which I can call any of these methods. What I don't want is to include the use thing at the top of my each class from where I'll be calling these utility methods.

I've used CodeIgniter previously and that framework had an option to create helper and later add them in autload, thereby making all the methods in the helper method accessible.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire