Current page - adampatterson/Tentacle GitHub Wiki

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!';
}