Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 CakePHP 中有一个名为 OverviewComponent.php 的组件文件
在那个组件中,我有 2 个函数(公共函数 A 和公共函数 B)
我想在公共函数 B 中调用公共函数 A
这可能吗?
是的
在公共函数 B 中,您应该像这样调用函数 a:
$this->a();