Reputation: 21
Using CakePHP's shell scripts I'm having problems accessing constants, which I normally set within config/bootstrap.php.
Is this because using shell scripts I'm not going through the normal dispatcher routine? What's the best practice for defining constants across shell scripts?
Thanks.
Upvotes: 2
Views: 1484
Reputation: 747
You can define the constant in app/config/bootstrap.php like this define("ADMIN_TITLE", "Administrator");
Upvotes: 1