views:

133

answers:

2

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.

A: 

Just confirming that you're setting your constants using the 'define' keyword?

http://php.net/manual/en/function.define.php

dazweeja
A: 

This works for sure. Can you show us some code to get an idea of what you are doing?

Aditya