Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zend framework global functions

Ok I know this is all sorts of Wrong.. But..

I have a few functions I use regularly, and I want to make them more easily accessible to me.

Right now I'm wrapping them in a Model_class as a work around, and I couldn't figure out what to do with them.

Where does someone put these common functions.

I'm sure others have third-party libraries which they must use, and I'm not sure where to put them.

-Patrick.

like image 787
user284503 Avatar asked May 18 '26 07:05

user284503


1 Answers

Put it in a file called functions.php and include that file in your bootstrap (index.php) file. Then you can access your precious functions everywhere.

like image 62
Stijn Leenknegt Avatar answered May 21 '26 02:05

Stijn Leenknegt