Zend global functions

Okay, I know that these are all kinds of Wrong .. But ..

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

Now I am wrapping them in Model_class as work, and I could not figure out what to do with them.

Where someone puts these common features.

I am sure that others have third-party libraries that they should use, and I have no place to put them.

-Patrick.

+3
source share
1 answer

Place it in a file called functions.php and include this file in the bootstrap file (index.php). Then you can access your precious features everywhere.

+7
source

Source: https://habr.com/ru/post/1753965/


All Articles