Hi,

I'm reusing elements on various pages accross my site and their
controller functions need them to perform differnt tasks in each
section. To work out the current dir i'm create the following:
$currentDir = (explode("/", $_SERVER["REQUEST_URI"])); And use that
array to decide what tasks are performed.

could $currentDir be global, I can't figure out how to make it so (i
have global $currentDir;
$currentDir = (explode("/", $_SERVER["REQUEST_URI"])); in my
bootstrap.php) can't figure out what next.

Is there a more simplke way?

Cheers TWIOF


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to