Hi, sorry for the long delay.
Finally I get it working!
If somebody is interested to this approach, let me know so I'll publish
the code somewhere.
Thanks.
Luca
On 01/03/2011 21:48, Akeda Bagus wrote:
Try calling $this->Auth->allow('*') in beforeFilter of your AppController
regards,
Akeda Bagus
On 2 Mar 2011 03:04, "luca capra" <[email protected]
<mailto:[email protected]>> wrote:
Hi,
I'm trying to get working a cron job invoked from a web url eg.
example.com/cron.php <http://example.com/cron.php>
Actually I've:
- cloned the webroot/index.php
- initialized Dispatcher with no args
- looped all controller files in controller/*
- App.imported them, $controller->constructClasses,
$controller->startupProcess() (miming the dispatcher work)
- nulled layout
- called $controller->cron method, if exitsts
- die(0) at the end
the missing thing is the Auth check for some controller that kick me
to the login page.. breaking the game :(
Is there a "sudo" way to do this?
(I was thinking to login a virtual user with all permissions,
created on the fly.. but how..)
Thanks in advance,
Luca
--
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]
<mailto:cake-php%[email protected]> For more options,
visit this group at http://groups.google.com/group/cake-php
--
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
--
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