本文整理匯總了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');