Recent Topics

1 Jun 27, 2006 20:19    

Hey, can it be possible to make a folder inside /inc/ or so where common functions are placed...

In a lot of my b2evo work i include the same function several times so i have checks wether or not it has been defined yet, so if it hasn't then define it.

Would be good if there was just a folder or a file where these common functions can just be placed, so i wouldn't need to do these checks all the time.

Edit:
Solved via making a 'Common Plugin', which will be posted shortly in the Plugin / Hacks Forum.

2 Jun 27, 2006 20:44

What's wrong with using /inc/_misc/ ?

3 Jun 27, 2006 20:47

The user will need to manually add include blah, into _main.inc.php.
I'm hoping for a more automated aproach, like a directory scanner that will include all the php files in the directory starting with a underscore...

4 Jul 09, 2006 21:41

I will turn this feature into a plugin called 'Common Plugin', where other plugins/skins can insert comon functions and settings.


Form is loading...