Thinkphp5.1 hook

1, call the hook
D: \ phpStudy \ PHPTutorial \ the WWW *** \ App \ API \ the Controller \ contact.php
\ Hook :: the listen ( 'the Login', $ logined);
2, Configure Hook pointing behavior
D: \ phpStudy \ PHPTutorial \ WWW \ ** \ app \ tags.php

<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st
Published 58 original articles · won praise 0 · Views 2760

Guess you like

Origin blog.csdn.net/qq_30439399/article/details/103686961