當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Router::any方法代碼示例

本文整理匯總了PHP中core\Router::any方法的典型用法代碼示例。如果您正苦於以下問題:PHP Router::any方法的具體用法?PHP Router::any怎麽用?PHP Router::any使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在core\Router的用法示例。


在下文中一共展示了Router::any方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: routes

 /**
  * Routes for this Members Module
  */
 public function routes()
 {
     Router::any('members', 'Modules\\Members\\Controllers\\Members@members');
     Router::any('online-members', 'Modules\\Members\\Controllers\\Members@online');
     Router::any('profile/(:any)', 'Modules\\Members\\Controllers\\Members@viewProfile');
     Router::any('edit-profile', 'Modules\\Members\\Controllers\\Members@editProfile');
 }
開發者ID:BryanYeh,項目名稱:apple-pie,代碼行數:10,代碼來源:Members.php

示例2: routes

 public function routes()
 {
     Router::any('AdminPanel', 'Modules\\AdminPanel\\Controllers\\AdminPanel@dashboard');
     Router::any('AdminPanel-Users', 'Modules\\AdminPanel\\Controllers\\AdminPanel@users');
     Router::any('AdminPanel-User/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@user');
     Router::any('AdminPanel-Groups', 'Modules\\AdminPanel\\Controllers\\AdminPanel@groups');
     Router::any('AdminPanel-Group/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@group');
 }
開發者ID:BryanYeh,項目名稱:UserApplePie-v-2,代碼行數:8,代碼來源:AdminPanel.php

示例3: routes

 public function routes()
 {
     Router::any('Profile/(:any)', 'Modules\\Profile\\Controllers\\Profile@viewprofile');
     Router::any('Profile', 'Modules\\Profile\\Controllers\\Profile@viewprofile_error');
     Router::any('Profile_Error', 'Modules\\Profile\\Controllers\\Profile@viewprofile_error');
     Router::any('Profile_Error/(:any)', 'Modules\\Profile\\Controllers\\Profile@viewprofile_error');
     Router::any('EditProfile', 'Modules\\Profile\\Controllers\\Profile@profile_edit');
     Router::any('PrivacySettings', 'Modules\\Profile\\Controllers\\Profile@privacy_settings');
 }
開發者ID:gitter-badger,項目名稱:UserApplePie-v-2,代碼行數:9,代碼來源:Profile.php

示例4: routes

 public function routes()
 {
     Router::any('Messages', 'Modules\\Messages\\Controllers\\Messages@messages');
     Router::any('ViewMessage/(:any)', 'Modules\\Messages\\Controllers\\Messages@view');
     Router::any('MessagesInbox', 'Modules\\Messages\\Controllers\\Messages@inbox');
     Router::any('MessagesInbox/(:any)', 'Modules\\Messages\\Controllers\\Messages@inbox');
     Router::any('MessagesOutbox', 'Modules\\Messages\\Controllers\\Messages@outbox');
     Router::any('MessagesOutbox/(:any)', 'Modules\\Messages\\Controllers\\Messages@outbox');
     Router::any('NewMessage', 'Modules\\Messages\\Controllers\\Messages@newmessage');
     Router::any('NewMessage/(:any)', 'Modules\\Messages\\Controllers\\Messages@newmessage');
 }
開發者ID:davarravad,項目名稱:UserApplePie-v-2,代碼行數:11,代碼來源:Messages.php

示例5: routes

 public function routes()
 {
     // Check to make sure Forum is Enabled, otherwise hide it
     if ($this->forum_on_off == 'Enabled') {
         Router::any('Forum', 'Modules\\Forum\\Controllers\\Forum@forum');
         Router::any('Topics/(:num)', 'Modules\\Forum\\Controllers\\Forum@topics');
         Router::any('Topics/(:num)/(:num)', 'Modules\\Forum\\Controllers\\Forum@topics');
         Router::any('Topic/(:num)', 'Modules\\Forum\\Controllers\\Forum@topic');
         Router::any('Topic/(:num)/(:num)', 'Modules\\Forum\\Controllers\\Forum@topic');
         Router::any('NewTopic/(:num)', 'Modules\\Forum\\Controllers\\Forum@newtopic');
     }
 }
開發者ID:davarravad,項目名稱:UserApplePie-v-2,代碼行數:12,代碼來源:Forum.php

示例6: routes

 public function routes()
 {
     Router::any('AdminPanel', 'Modules\\AdminPanel\\Controllers\\AdminPanel@dashboard');
     Router::any('AdminPanel-Users', 'Modules\\AdminPanel\\Controllers\\AdminPanel@users');
     Router::any('AdminPanel-Users/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@users');
     Router::any('AdminPanel-Users/(:any)/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@users');
     Router::any('AdminPanel-User/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@user');
     Router::any('AdminPanel-Groups', 'Modules\\AdminPanel\\Controllers\\AdminPanel@groups');
     Router::any('AdminPanel-Group/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@group');
     Router::any('AdminPanel-Forum-Settings', 'Modules\\AdminPanel\\Controllers\\AdminPanel@forum_settings');
     Router::any('AdminPanel-Forum-Categories', 'Modules\\AdminPanel\\Controllers\\AdminPanel@forum_categories');
     Router::any('AdminPanel-Forum-Categories/(:any)/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@forum_categories');
     Router::any('AdminPanel-Forum-Categories/(:any)/(:any)/(:any)', 'Modules\\AdminPanel\\Controllers\\AdminPanel@forum_categories');
     Router::any('AdminPanel-Forum-Blocked-Content', 'Modules\\AdminPanel\\Controllers\\AdminPanel@forum_blocked');
 }
開發者ID:davarravad,項目名稱:UserApplePie-v-2,代碼行數:15,代碼來源:AdminPanel.php

示例7: routes

 public function routes()
 {
     Router::any('blog', 'Modules\\Blog\\Controllers\\Blog@index');
     Router::any('blog/(:num)', 'Modules\\Blog\\Controllers\\Blog@index');
     Router::any('blog/drafts', 'Modules\\Blog\\Controllers\\Blog@drafts');
     Router::any('blog/drafts/(:num)', 'Modules\\Blog\\Controllers\\Blog@drafts');
     Router::any('blog/my', 'Modules\\Blog\\Controllers\\Blog@my');
     Router::any('blog/my/(:num)', 'Modules\\Blog\\Controllers\\Blog@my');
     Router::any('blog/scheduled', 'Modules\\Blog\\Controllers\\Blog@scheduled');
     Router::any('blog/scheduled/(:num)', 'Modules\\Blog\\Controllers\\Blog@scheduled');
     Router::any('blog/category/(:any)', 'Modules\\Blog\\Controllers\\Blog@category');
     Router::any('blog/category/(:any)/(:num)', 'Modules\\Blog\\Controllers\\Blog@category');
     Router::any('blog/post/(:any)', 'Modules\\Blog\\Controllers\\Blog@post');
     Router::get('blog/check-for-new-posts/(:num)/(:num)', 'Modules\\Blog\\Controllers\\Blog@checkForNewPosts');
     Router::any('blog/add', 'Modules\\Blog\\Controllers\\Blog@add');
     Router::any('blog/edit/(:num)', 'Modules\\Blog\\Controllers\\Blog@edit');
     Router::any('blog/delete/(:num)', 'Modules\\Blog\\Controllers\\Blog@delete');
     Router::any('blog/search/(:any)', 'Modules\\Blog\\Controllers\\Blog@search');
     Router::any('blog/search/(:any)/(:num)', 'Modules\\Blog\\Controllers\\Blog@search');
     Router::any('blog/comment/add', 'Modules\\Blog\\Controllers\\Blog@commentsAdd');
     Router::any('blog/comment/delete/(:num)', 'Modules\\Blog\\Controllers\\Blog@commentsDelete');
 }
開發者ID:zszymczyk,項目名稱:intranet,代碼行數:22,代碼來源:Blog.php

示例8:

<?php

/**
 * Routes - all standard routes are defined here.
 */
/** Create alias for Router. */
use Core\Router;
use Helpers\Hooks;
/** Define routes. */
Router::any('', 'Controllers\\Home@index');
Router::any('contact', 'Controllers\\Contact@index');
Router::any('portfolio', 'Controllers\\Portfolio@index');
Router::any('painel_contato_usuario', 'Controllers\\PainelContatoUsuario@ListUser');
Router::get('edit_contato_usuario/(:num)', 'Controllers\\PainelContatoUsuario@GetUser');
Router::post('edit_contato_usuario/(:num)', 'Controllers\\PainelContatoUsuario@PostUser');
Router::get('insert-blog', 'Controllers\\PainelContatoUsuario@insert');
Router::get('blog', 'Controllers\\Blog@list');
//Router::any('edit_contato_usuario/(:num)', 'Controllers\PainelContatoUsuario@EditUser');
//Router::any('edit_contato_usuario/(:num)', 'Controllers\PainelContatoUsuario@DeleteUser');
/** Module routes. */
$hooks = Hooks::get();
$hooks->run('routes');
/** If no route found. */
Router::error('Core\\Error@index');
/** Turn on old style routing. */
Router::$fallback = false;
/** Execute matched routes. */
Router::dispatch();
開發者ID:JrzenonDev,項目名稱:simple_mvc_framework_landing_page,代碼行數:28,代碼來源:routes.php

示例9:

<?php

/**
 * Routes - all standard routes are defined here.
 *
 * @author David Carr - dave@daveismyname.com
 * @version 2.2
 * @date updated Sept 19, 2015
 */
/** Create alias for Router. */
use Core\Router;
use Helpers\Hooks;
/** Define routes. */
Router::any('', 'Controllers\\Entradas@entradas');
Router::any('/entradas/add', 'Controllers\\Entradas@add');
Router::any('/entradas/edit/(:any)', 'Controllers\\Entradas@edit');
Router::any('/entradas/delete/(:any)', 'Controllers\\Entradas@delete');
Router::any('/api', 'Controllers\\Api@api');
Router::any('/api/entradas', 'Controllers\\Api@entradas');
/** Module routes. */
$hooks = Hooks::get();
$hooks->run('routes');
/** If no route found. */
Router::error('Core\\Error@index');
/** Turn on old style routing. */
Router::$fallback = false;
/** Execute matched routes. */
Router::dispatch();
開發者ID:davidcm86,項目名稱:simplemvcframework,代碼行數:28,代碼來源:routes.php

示例10:

Router::any('/ajax/getOptionsPreus', 'Controllers\\AdminController@getOptionsPreus');
Router::any('/admin/editaComanda/(:num)', 'Controllers\\AdminController@home');
Router::any('/ajax/PrintDocument', 'Controllers\\AdminController@PrintDocument');
Router::any('/ajax/getEspectaclesAndSessionsByMes', 'Controllers\\AdminController@getEspectaclesAndSessionsByMes');
Router::any('/ajax/getSessionsByDates', 'Controllers\\AdminController@getSessionsByDates');
//Funció per a la gestió de comandes
Router::any('/ajax/doComandaUpdate', 'Controllers\\AdminController@doComandaUpdate');
//Funcions per a la gestió d'espectacles
Router::any('/ajax/getSessioToEdit', 'Controllers\\AdminController@getSessioToEdit');
Router::any('/ajax/saveSessioFromEdit', 'Controllers\\AdminController@saveSessioFromEdit');
Router::any('/ajax/deleteSessioFromEdit', 'Controllers\\AdminController@deleteSessioFromEdit');
Router::any('/ajax/saveConfig', 'Controllers\\AdminController@saveConfig');
Router::any('/ajax/loadConfig', 'Controllers\\AdminController@loadConfig');
Router::any('/ajax/getPreuStructure', 'Controllers\\AdminController@getPreuStructure');
Router::any('/ajax/getAllUsersExcel', 'Controllers\\AdminController@getAllUsersExcel');
Router::any('/ajax/getExcelComandes', 'Controllers\\AdminController@getExcelComandes');
Router::any('/admin/teatres', 'Controllers\\AdminController@teatresTemplate');
Router::any('/admin/espectacles', 'Controllers\\AdminController@espectaclesTemplate');
Router::any('/admin/usuaris', 'Controllers\\AdminController@usuarisTemplate');
Router::any('/admin/comandes', 'Controllers\\AdminController@comandesTemplate');
Router::any('/admin/estadistiques', 'Controllers\\AdminController@estadistiquesTemplate');
Router::any('/admin/configuracio', 'Controllers\\AdminController@configuracioTemplate');
/** Module routes. */
$hooks = Hooks::get();
$hooks->run('routes');
/** If no route found. */
Router::error('Core\\Error@index');
/** Turn on old style routing. */
Router::$fallback = false;
/** Execute matched routes. */
Router::dispatch();
開發者ID:nagiro,項目名稱:Entrades,代碼行數:31,代碼來源:routes.php

示例11:

}
//initiate config
new Core\Config();
//create alias for Router
use Core\Router;
use Helpers\Hooks;
//define routes
Router::any('', 'Controllers\\Landing@index');
Router::any('register', 'Controllers\\Landing@register');
Router::any('login', 'Controllers\\Landing@login');
Router::any('about', 'Controllers\\Landing@about');
Router::any('logout', 'Controllers\\Landing@logout');
Router::any('activate/(:num)/(:any)', 'Controllers\\Landing@activate');
Router::any('teacher', 'Controllers\\TeacherDashboard@index');
Router::any('teacher/compose', 'Controllers\\TeacherDashboard@compose');
Router::any('teacher/login', 'Controllers\\TeacherAuth@login');
Router::any('teacher/new-group', 'Controllers\\TeacherDashboard@newGroup');
Router::any('teacher/submit-group', 'Controllers\\TeacherDashboard@submitGroup');
Router::any('teacher/new-group-2', 'Controllers\\TeacherDashboard@newGroup2');
Router::any('teacher/group/(:num)', 'Controllers\\TeacherDashboard@groupProfile');
Router::any('teacher/course-upload', 'Controllers\\TeacherDashboard@uploadCourse');
//Router::any('drop', 'Controllers\TeacherDashboard@drop');
//module routes
$hooks = Hooks::get();
$hooks->run('routes');
//if no route found
Router::error('Core\\Error@index');
//turn on old style routing
Router::$fallback = false;
//execute matched routes
Router::dispatch();
開發者ID:umihnea,項目名稱:e-learning.inkdrop,代碼行數:31,代碼來源:index.php

示例12:

Router::any('rests/update', 'Controllers\\Rests@update_restaurant');
Router::any('rests/update_all', 'Controllers\\Rests@update_all');
Router::any('rests', 'Controllers\\Rests@index');
Router::any('rest/(:num)/delivery_report', 'Controllers\\Rests@delivery_report');
Router::any('delivery_report/(:num)', 'Controllers\\Rests@delivery_report');
Router::any('delivery/(:num)', 'Controllers\\Rests@delivery_report');
Router::any('dishes/parse/(:num)', 'Controllers\\Rests@parse');
Router::any('dishes/parse_all', 'Controllers\\Rests@parse_all');
Router::any('ping', 'Controllers\\Rests@ping');
Router::any('login', 'Controllers\\Auth@login');
Router::any('register', 'Controllers\\Auth@register');
Router::any('logout', 'Controllers\\Auth@logout');
Router::any('user/dishes', 'Controllers\\User@dishes');
Router::any('user/rand_dish', 'Controllers\\User@rand_dish');
Router::any('favorite/(:num)/(:num)', 'Controllers\\User@manage_favorite');
Router::any('favorite/(:num)', 'Controllers\\User@manage_favorite');
Router::any('search', 'Controllers\\Search@search_post');
Router::any('search/(:any)', 'Controllers\\Search@search');
Router::any('advanced_search', 'Controllers\\Search@advanced_search');
Router::any('json/search', 'Controllers\\Json@search');
Router::any('json/all_dishes', 'Controllers\\Json@all_dishes');
Router::any('', 'Controllers\\Welcome@index');
//module routes
$hooks = Hooks::get();
$hooks->run('routes');
//if no route found
Router::error('Core\\Error@index');
//turn on old style routing
Router::$fallback = false;
//execute matched routes
Router::dispatch();
開發者ID:Zed3,項目名稱:foodie,代碼行數:31,代碼來源:index.php

示例13:

//initiate config
new Core\Config();
//create alias for Router
use Core\Router;
use Helpers\Hooks;
//define routes
Router::any('', 'Controllers\\Pages@index');
Router::any('/', 'Controllers\\Pages@index');
Router::any('/home', 'Controllers\\Pages@index');
Router::any('/thunder', 'Controllers\\Thunder@index');
Router::any('/thunder/getLightning', 'Controllers\\Thunder@getLightning');
Router::any('/about', 'Controllers\\Pages@about');
Router::any('/adsb', 'Controllers\\Pages@adsb');
Router::any('/contact', 'Controllers\\Contacts@index');
Router::any('/contact/messageSend', 'Controllers\\Contacts@messageSend');
Router::any('/forecast', 'Controllers\\Forecast@index');
Router::any('/graphics', 'Controllers\\Graphics@index');
Router::any('/graphics/searchSend', 'Controllers\\Graphics@searchSend');
Router::any('/historic', 'Controllers\\Historic@index');
Router::any('/historic/searchSend', 'Controllers\\Historic@searchSend');
Router::any('/api', 'Controllers\\Api@index');
Router::any('/api/arduinoFetcher', 'Controllers\\Api@arduinoFetcher');
//module routes
$hooks = Hooks::get();
$hooks->run('routes');
//if no route found
Router::error('Core\\Error@index');
//turn on old style routing
Router::$fallback = false;
//execute matched routes
Router::dispatch();
開發者ID:XxP1asmaxX,項目名稱:MeteoColmar,代碼行數:31,代碼來源:index.php

示例14: routes

 public function routes()
 {
     Router::any("search", 'Modules\\Search\\Controllers\\Main@index');
     Router::any("start", 'Modules\\Search\\Controllers\\Main@start');
     Router::any('process_livesearch', 'Modules\\Search\\Controllers\\Main@process_livesearch');
 }
開發者ID:geomorillo,項目名稱:Search,代碼行數:6,代碼來源:Main.php

示例15:

<?php

/**
 * Routes - all standard routes are defined here.
 *
 * @author David Carr - dave@daveismyname.com
 * @version 2.2
 * @date updated Sept 19, 2015
 */
/** Create alias for Router. */
use Core\Router;
use Helpers\Hooks;
Router::any('', 'Controllers\\Main@index');
Router::any('login', 'Controllers\\Main@authenticate');
Router::any('logout', 'Controllers\\Main@logout');
Router::any('secured', 'Controllers\\Main@secured');
/** Module routes. */
$hooks = Hooks::get();
$hooks->run('routes');
/** If no route found. */
Router::error('Core\\Error@index');
/** Turn on old style routing. */
Router::$fallback = false;
/** Execute matched routes. */
Router::dispatch();
開發者ID:geomorillo,項目名稱:Auth,代碼行數:25,代碼來源:routes.php


注:本文中的core\Router::any方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。