Thank you. Your answer was very helpful to me.
On Wednesday, December 26, 2012 10:39:18 PM UTC+4, euromark wrote:
>
> as I stated above, it is vital that you always include all uses classes
> throughout your files.
> so, no. it is not enough - as you just experienced yourself. it might work
> up
as I stated above, it is vital that you always include all uses classes
throughout your files.
so, no. it is not enough - as you just experienced yourself. it might work
up to some point - and than it breaks.
the App::uses can be compared to require statements. If you don't tell cake
what files
Thank you, Mark.
It solves the problem, but I was absolutely sure that it is enough to
specify `App::uses('AppController', 'Controller');` in the
/Controller/AppController.php
I think they should definitely add the importance of inclusion of this
fragment of code in the Cookbook.
On Wednesday
thats because you forgot a vital part above your
class NewsController extends AppController {}
above it add `App::uses('AppController', 'Controller');`
It is important that you always specify all used classes in your files at
the top.
Am Mittwoch, 26. Dezember 2012 16:00:40 UTC+1 schrieb Nvp:
Hi! I have a strange issue with CacheHelper and perhaps it's because I do
some error in configuration.
For the first time I encountered this problem while working on my main
project.
After it, I have downloaded CakePHP 2.2.4 and created an app for testing.
As mentioned above I'm trying to use C