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.
不久前,我从 cake 1.2.6 开始,并喜欢控制器转储功能,因为它向我展示了正在发生的事情,以及在我的应用程序中实例化对象的位置,以及它们的内容。
在 1.3 中,如何找出实例化对象的名称,以及如何获取它们的转储?
如果将以下代码放入 usersController 的函数 index() 中(例如):
echo debug($this);
您可以浏览到“/users”以查看层次结构。