It did not work.
But i commented out theese lines and then cake showed me "Missing component
file" error.
"Create AccessController class in /app/controllers/components/access.php
file."
Then i also commented out $components = ... line in my AppController.
And then i got error The helper file app/views/helpers/access.php can not be
found or does not exist.

So i think the problem is my custom directory structure.

root
.-- app
.-- cake
.-- htdocs
.-- vendors

My htdocs/index.php file: http://gist.github.com/481155

Before moving to another server my directory structure was something like
that:
root
.-- public_html
.-- .-- myapp (Everything that should be in /app/webroot)
.-- private_html
.-- .-- myapp
.-- .-- .-- app
.-- .-- .-- cake
.-- .-- .-- vendors

And index.php: http://gist.github.com/481158

<http://gist.github.com/481155>
On Mon, Jul 19, 2010 at 4:16 AM, Dr. Loboto <[email protected]> wrote:

> Maybe it's stupid, but is this error on page of controller you posted
> $helpers? If this helper is used in layout, you should have it listed
> in AppController $helpers to make available for any controller.
>
> On Jul 16, 6:18 pm, Ragnis <[email protected]> wrote:
> > After I moved from a shared hosting to a VPS cake 1.3.2 does not load
> > custom helpers.
> > All core helpers are loaded, but not my custom helpers.
> >
> > I my controller i have
> > public $helpers = array('Session', 'Html', 'Form', 'Access',
> > 'Recaptcha');
> >
> > When i try to use a custom helper from view, i get an error message:
> > Fatal error: Call to undefined method stdClass::setCurrentUserData()
> > in /var/www/***.git/app/views/layouts/default.ctp on line 5
> >
> > I also used debug($this); in my view and my custom helpers aren't
> > shown there either.
> >
> > It is also possible that the problem is somewhere in my php.ini.
> > My php.ini file:http://gist.github.com/478241
> > And i'm using php version 5.3.x
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to