I did the same for running some controller/action with cron job.
I just modified the index.php and "rebuild" the url before calling
dispatcher :
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
} else {
if(!isset($_SERVER['argc']) || $_SERVER['argc'] <= 1)
die();
$url = '';
for($i = 1; $i < $_SERVER['argc']; $i++)
$url .= '/'.$_SERVER['argv'][$i];
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch($url);
On Jul 16, 5:30 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Jul 16, 2007, at 9:16 AM, roland wrote:
>
>
>
> > Hi there,
>
> > is there an easy way to reuse the models defined in an Cake based
> > application for example to use in a database maintance script which
> > might be called via cron?
>
> I use /app/webroot/index.php as a template to create new scripts for
> cron/launchd jobs. The cake console in 1.2 can also be used for
> things like this as well.
>
> -- John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---