App helper

mail@pastecode.io avatar
unknown
php
3 years ago
365 B
2
Indexable
Never
<?php

function controller($controllerName){
    $controllerName = strtolower($controllerName);
    return PATH . '/app/controller/' . $controllerName . '.php';
}

function view($viewName){
    return PATH . '/app/view/' . $viewName . '.php';
}

function route($index)
{
    global $route;
    return isset($route[$index]) ? $route[$index] : false;
}