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

ThinkPHP3.2.2举动扩展

WBOY
Release: 2016-06-13 11:56:03
Original
1088 people have browsed it

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这样写

?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template