Tuesday, June 29, 2010

cron dispatcher and route

Hi
I have created a cron job which is send emails.
On email template I use route to create correct links.

When I send email from "normal" environment all links created correct,
but when I'm trying to send it by cron I have get a links without
domain, it looks like (/user/login I wanted domain.com/user/login)

I have tried to import route and config in the cron action
App::import('Core', array('Router','Controller'));
include CONFIGS . 'routes.php';

but this is didn't help.

Does someone know any workaround for this?

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate