Rumah  >  Artikel  >  php教程  >  php cms门户网站模版

php cms门户网站模版

PHP中文网
PHP中文网asal
2016-05-23 16:38:531682semak imbas

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          顶端

                   

                   

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:PHP读取网卡MAC地址Artikel seterusnya:自定义对称 加密和解密