ホームページ  >  記事  >  php教程  >  php cms门户网站模版

php cms门户网站模版

PHP中文网
PHP中文网オリジナル
2016-05-23 16:38:531681ブラウズ

1. [PHP]代码 

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It&#39;s a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get(&#39;/&#39;, &#39;WelcomeController@index&#39;);

Route::get(&#39;home&#39;, &#39;HomeController@index&#39;);

Route::post(&#39;/appconf&#39;, &#39;WelcomeController@appconf&#39;);
Route::get(&#39;/appconf&#39;, &#39;WelcomeController@appconf&#39;);

Route::get(&#39;law&#39;, &#39;WelcomeController@law&#39;);

Route::get(&#39;lawframe&#39;, &#39;WelcomeController@lawframe&#39;);

Route::controllers([
        &#39;auth&#39; => &#39;Auth\AuthController&#39;,
        &#39;password&#39; => &#39;Auth\PasswordController&#39;,
]);

Route::group([&#39;prefix&#39; => &#39;user&#39;, &#39;namespace&#39; => &#39;User&#39;,&#39;middleware&#39;=>&#39;user&#39;], function()
{
  Route::get(&#39;/&#39;, &#39;UserController@index&#39;);
  Route::post(&#39;/&#39;, &#39;UserController@index&#39;);
  Route::get(&#39;/edit/{id}&#39;, &#39;UserController@edit&#39;);
  Route::post(&#39;/edit/{id}&#39;, &#39;UserController@edit&#39;);
  Route::get(&#39;/update/{id}&#39;, &#39;UserController@update&#39;);
  Route::post(&#39;/update/{id}&#39;, &#39;UserController@update&#39;);
  Route::get(&#39;/history/{id}&#39;, &#39;UserController@history&#39;);
  Route::post(&#39;/history/{id}&#39;, &#39;UserController@history&#39;);

  Route::get(&#39;/wealthadd/{id}&#39;, &#39;UserController@wealthadd&#39;);
  Route::post(&#39;/wealthadd/{id}&#39;, &#39;UserController@wealthadd&#39;);

  Route::get(&#39;/dowealthadd/{id}&#39;, &#39;UserController@dowealthadd&#39;);
"app/Http/routes.php" 154L, 5664C                                      1,1          顶端

                   

                   

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。