本文整理汇总了PHP中HomeController::checkPropel方法的典型用法代码示例。如果您正苦于以下问题:PHP HomeController::checkPropel方法的具体用法?PHP HomeController::checkPropel怎么用?PHP HomeController::checkPropel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HomeController
的用法示例。
在下文中一共展示了HomeController::checkPropel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
<?php
Route::filter('login_check', function () {
session_start();
//$_SESSION['user_id']=57184;//62841;//78268;//105354;//36327;//11752; //66804; //48032 //47642 //22730 //50671 //48286 //85896//57184
if (empty($_SESSION['user_id'])) {
if (App::environment('local')) {
return Redirect::to('http://localhost/makeadiff.in/home/makeadiff/public_html/madapp/index.php/auth/login/' . base64_encode(Request::url()));
} else {
return Redirect::to('http://makeadiff.in/madapp/index.php/auth/login/' . base64_encode(Request::url()));
}
}
});
Route::filter('propel_check', function () {
if (!HomeController::checkPropel()) {
return Redirect::to('error')->with('message', 'Only Propel Fellows and Propel Wingmen can access the Propel App');
}
});
Route::get('/error', 'CommonController@showError');
Route::group(array('before' => 'login_check|propel_check'), function () {
Route::get('/', ['as' => 'home', 'uses' => 'HomeController@showHome']);
Route::get('/success', 'CommonController@showSuccess');
Route::get('/logout', 'CommonController@logout');
Route::get('/wingman-journal/select-wingman', 'WingmanJournalController@selectWingman');
Route::get('/wingman-journal/{wingman_id}', 'WingmanJournalController@showList');
Route::get('/feedback/module-feedback', 'WingmanJournalController@showModuleFeedback');
Route::get('/feedback/select-student', 'WingmanJournalController@selectStudentsCity');
Route::get('/feedback/{wingman_id}', 'WingmanJournalController@showStudents');
Route::get('/feedback/{wingman_id}/{student_id}', 'WingmanJournalController@showFeedback');
Route::get('/calendar/select-wingman', 'CalendarController@selectWingman');
Route::get('/calendar/approve-calendar', 'CalendarController@approveView');