in such cases simply take a look at the core folder
its not like it is a big secret
there you will find the Helper.php in /View (not in /View/Helper)
therefore you need to adjust your uses statement accordingly
i know, it can be confusing
App::uses('Helper', 'View');
but
App::uses('AppHelper', 'View/Helper');
just remember:
the App stuff (and everything extending it) is inside the same folder
than the app itself
the base classes are in the base (=parent) folders.
On 7 Dez., 11:04, Perry <[email protected]> wrote:
> I defined a custom AppHelper as View/Helper/AppHelper.php
>
> App::uses('Helper', 'View/Helper');
>
> class AppHelper extends Helper
>
> but it gives a php error:
>
> Fatal error: Class 'Helper' not found in
>
> i don't why, it works fine in 1.3, thx for any help
>
> --
> Perry | 彭琪http://pengqi.me
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php