I now had The Problem to use routines in Controllers as well as in
Shells.
I therefor recently moved those objects into the libs-directory. That
is a Good Place for those rather static routines.
Best, Andreas
On 23 Mrz., 17:54, Graham graham.h.jo...@gmail.com wrote:
Thank you - that answers my
Thank you - that answers my question perfectly. At the moment I only need
to use it in views so a Helper routine addresses the need but thanks for
the tip if I need to use it elsewhere.
Cheers
Gj
On Wednesday, 21 March 2012 19:01:20 UTC, Graham wrote:
Dear all, still new to CakePHP but
If you also need to use it outside of the view, you can just create a
static class and include it, then use the methods statically in the view.
SomeClass::staticMethod().
On Wednesday, March 21, 2012 12:01:20 PM UTC-7, Graham wrote:
Dear all, still new to CakePHP but learning all the time.
I would recommend turning it into a helper, check the cakephp book about
helpers, and then you can add it to the AppController or into specific
controllers that you want.
On Wednesday, March 21, 2012 12:01:20 PM UTC-7, Graham wrote:
Dear all, still new to CakePHP but learning all the time.