You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!';
}