PHP code example of kumaomao / hook
1. Go to this page and download the library: Download kumaomao/hook library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kumaomao / hook example snippets
/**
* 首页跳转
* @RequestMapping("main",methods="get")
*/
public function main(){
//hook main页面
$result = Hook::add('main_view');
if($result->isTrue()){
return $result->run();
}
return view('index/main');
}