Hi,
I'm trying to get working a cron job invoked from a web url eg. 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] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to