tremorwave
tremorwave

Reputation: 21

Using global variables in CakePHP Shell scripts

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

Answers (1)

sreenavc
sreenavc

Reputation: 747

You can define the constant in app/config/bootstrap.php like this define("ADMIN_TITLE", "Administrator");

Upvotes: 1

Related Questions