-
Notifications
You must be signed in to change notification settings - Fork 3
Current page
Adam Patterson edited this page Dec 18, 2012
·
1 revision
CURRENT_PAGE
is internally defined by Dingo and contains the URL of the current page relative to the application. For example if in you visited index.php/mycontroller/myfunc
then CURRENT_PAGE would have the value mycontroller/myfunc
.
Here is an example usage of CURRENT_PAGE:
if(CURRENT_PAGE == 'about/evan')
{
echo 'This is about Evan!';
}
elseif(preg_match('/^about/',CURRENT_PAGE))
{
echo 'This is about something other than Evan!';
}