>  기사  >  php教程  >  php cms门户网站模版

php cms门户网站模版

PHP中文网
PHP中文网원래의
2016-05-23 16:38:531682검색

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으로 문의하세요.