当前位置: 首页>>代码示例>>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;未经允许,请勿转载。