and your routes shell be free
To have proper routes in the email messages you are sending from shells you need to do this in your shell at the top:
App::import('Core', 'Router');
include CONFIGS . 'routes.php';
define('FULL_BASE_URL', Configure::read('App.HttpHost'));
where App.HttpHost is something you set manually in your bootstrap because the shell doesn't have a clue about your site and the web server.
Bake on!
0 Comments:
Post a Comment
<< Home