The Bricklayer Environment

Bricklayer provides a global application environment for your application. Environment Variables and Session Variables will be accessible here. You can access the Environment with the ->env() method. It will return a hash of all the key/value pairs in the current environment. You can add values to the enviroment with the ->add_env($key, $value) method. If you want to delete an environment value you can do so with the ->delete_env($key, $value) method. The add and delete methods only modify the main enviroment hash not session values. That is done through the Access Plugin API which will be discussed in a later chapter.

Jeremy Wall 2006-08-21