对于 CakePHP 2.3.8
如何在 CronController.php 中调用另一个 Controller 函数
有任何想法吗?
最佳答案
下面是代码:
App::import('Controller', 'Products'); // mention at top
// Instantiation // mention within cron function
$Products = new ProductsController;
// Call a method from
$Products->ControllerFunction();
希望它可以帮助某人!
关于controller - 蛋糕PHP 2.3.8 : Calling Another Controller function in CronController. php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19344988/