Home >Backend Development >PHP Tutorial >ThinkPHP3.2.2举动扩展

ThinkPHP3.2.2举动扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:56:031092browse

ThinkPHP3.2.2行为扩展

http://document.thinkphp.cn/manual_3_2.html#behavior_extend

return array(

? ? 'action_begin'=>array('Home\\Behaviors\\test','Home\\Behaviors\\test1'),//一个标签位可以有多个行为,使用数组即可。

? ? // 如果是3.2.1版本 则需要改成

? ? 'action_begin'=>array('Home\\Behaviors\\testBehavior','Home\\Behaviors\\test1Behavior')

);

?

其结果是3.2.2还是要按3.2.1这样写

?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn