Re: Custom library functions

2009-08-12 Thread alaxos
Excellent, that will really help to keep my code clean. Thanks a lot for your answers, nIcO On 11 août, 17:13, Martin Westin wrote: > If you start adding more functions you may want to put them into a > separate file. > The top of my bootstrap.php looks like this: > > // This would mess things

Re: Custom library functions

2009-08-11 Thread JamesF
@martin that's a great observation that i know will save me a few hours in the future. thanks for sharing On Aug 11, 11:13 am, Martin Westin wrote: > If you start adding more functions you may want to put them into a > separate file. > The top of my bootstrap.php looks like this: > > // This wou

Re: Custom library functions

2009-08-11 Thread Martin Westin
If you start adding more functions you may want to put them into a separate file. The top of my bootstrap.php looks like this: // This would mess things up royally--> App::import('Vendor', 'basics'); require_once(APP.'vendors'.DS.'basics.php'); I mention it mostly because you have to do a good

Re: Custom library functions

2009-08-11 Thread Robert P
The file /app/config/bootstrap.php is there for this exact reason. On Aug 11, 8:56 pm, alaxos wrote: > Hello, > > I have tried to figure out what would be the best way to add generic > functions to an app, in order to then be able to use them everywhere > in a Cake application. > > I wrote some

Custom library functions

2009-08-11 Thread alaxos
Hello, I have tried to figure out what would be the best way to add generic functions to an app, in order to then be able to use them everywhere in a Cake application. I wrote some time ago (nothing to do with cake) classes with methods that I use to do different things. They are generic classes