【问题标题】:how to get all the controllers that get hits using debug eclipse mars cakephp如何使用调试 eclipse mars cakephp 获取所有命中的控制器
【发布时间】:2015-10-22 02:53:34
【问题描述】:

我想获取在调试过程中被命中的所有控制器。我试图通过在索引函数上放置一个调试点来进行调试,尽管它没有被命中。然后我在调度程序控制器上放置一个调试点并它也不起作用。我想获取相互连接的控制器列表。

【问题讨论】:

  • 如果您的应用同时使用多个控制器,则您的操作根本上是错误的...

标签: php eclipse debugging cakephp


【解决方案1】:

只需将此代码放入您的 app_controller 中,您就会看到神奇之处

function beforeFilter() {    
        $siteConfig = array();
        //put this code 
        $this->log("ACL : Controller - ".$this->params['controller']. " Action - ".$this->params['action'], 'debug');
        }

【讨论】:

    猜你喜欢
    • 2016-06-02
    • 1970-01-01
    • 2015-05-25
    • 1970-01-01
    • 2015-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多