当前位置: 首页>>代码示例>>PHP>>正文


PHP Home::show方法代码示例

本文整理汇总了PHP中Home::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Home::show方法的具体用法?PHP Home::show怎么用?PHP Home::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Home的用法示例。


在下文中一共展示了Home::show方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 public static function run($url)
 {
     if (!empty($url) && strtolower($url) != "home") {
         $url = explode("/", $url);
         $class = ucfirst(strtolower($url[0]));
         if (count($url) > 1) {
             $method = $url[1] ? strtolower($url[1]) : null;
             if (count($url) > 2) {
                 $param = $url[2] ? $url[2] : null;
             }
         }
         if (file_exists(DIR_CONTROLLER . $class . '.php')) {
             $obj = new $class();
             if (isset($method) && method_exists($obj, $method)) {
                 if (isset($param)) {
                     $obj->{$method}($param);
                 } else {
                     $obj->{$method}();
                 }
             } else {
                 if (isset($method)) {
                     include DIR_BASE . 'app/view/erro500.php';
                 }
             }
             $obj->show();
         } else {
             include DIR_BASE . 'app/view/erro500.php';
         }
     } else {
         $obj = new Home();
         $obj->show();
     }
 }
开发者ID:alanfm,项目名称:biblioteca,代码行数:33,代码来源:App.php

示例2: Workunit

                break;
            case 'workunit':
                $workunit = new Workunit();
                $workunit->show();
                break;
            case 'workorders':
                $workorders = new Workorders();
                $workorders->show();
                break;
            case 'workorder':
                $workorder = new Workorder();
                $workorder->show();
                break;
            case 'incidents':
                $incidents = new Incidents();
                $incidents->show();
                break;
            case 'incident':
                $incident = new Incident();
                $incident->show();
                break;
            case 'calendars':
                $calendars = new Calendars();
                $calendars->show();
                break;
            default:
                $home = new Home();
                $home->show();
        }
        break;
}
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:index.php

示例3: showNoPermission

    private function showNoPermission()
    {
        $system = System::getInstance();
        audit_db($system->getConfig('id_user'), $REMOTE_ADDR, "ACL Violation", "Trying to access to workorder section");
        $error['title_text'] = __('You don\'t have access to this page');
        $error['content_text'] = __('Access to this page is restricted to 
			authorized users only, please contact to system administrator 
			if you need assistance. <br><br>Please know that all attempts 
			to access this page are recorded in security logs of Integria 
			System Database');
        $home = new Home();
        $home->show($error);
    }
开发者ID:dsyman2,项目名称:integriaims,代码行数:13,代码来源:workorder.php

示例4: Role

$role = new Role();
$leave = new LeaveController($bag);
// $route->respond( function () use($home){
//     return 'Middleware should be first palce';
// });
$route->respond('GET', '/', function () use($home) {
    return $home->index();
});
$route->respond('GET', '/test', function () use($user, $role) {
    $users = $user->all();
    foreach ($users as $user) {
        var_dump($user->role->permission);
    }
});
$route->respond('GET', '/show/[i:id]', function ($request) use($home) {
    return $home->show($request);
});
$route->respond('GET', '/create', function () use($home) {
    return $home->create();
});
$route->respond('POST', '/store', function ($request, $response) use($home) {
    return $home->store($request, $response);
});
$route->respond('GET', '/login', function () use($home) {
    echo $home->getLogin();
    unset($_SESSION['flash']);
});
$route->respond('POST', '/login', function ($request, $response, $service) use($home) {
    return $home->postLogin($request, $response, $service);
});
$route->respond('GET', '/logout', function ($request, $response, $service) use($home) {
开发者ID:nahidex,项目名称:Employee-Leave-Management-,代码行数:31,代码来源:routes.php


注:本文中的Home::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。