first commit
This commit is contained in:
13
app/helpers.php
Executable file
13
app/helpers.php
Executable file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
function active_class($path, $active = 'active') {
|
||||
return call_user_func_array('Request::is', (array)$path) ? $active : '';
|
||||
}
|
||||
|
||||
function is_active_route($path) {
|
||||
return call_user_func_array('Request::is', (array)$path) ? 'true' : 'false';
|
||||
}
|
||||
|
||||
function show_class($path) {
|
||||
return call_user_func_array('Request::is', (array)$path) ? 'show' : '';
|
||||
}
|
Reference in New Issue
Block a user