Hi,

I can't seem to import a plugin model when running controller from the
cron_dispatcher.  Here is a simple test result.

ver: 1.3.2
cron_dispatcher: http://tricks.cakephp.in.th/comland-line-and-cronjob

1. running from web ......... [WORKS]
2. running testA function WITHOUT model import from cmd line.........
[WORKS]
3. running testB function WITH model import from cmd line.........
[FAILED] - No errors given

code:
-----------
class CronsController extends PluginAppController {

        var $uses = array();


        function testA()
        {
                echo 'Working';
                die;
        }


        function testB()
        {
                App::import('Model', 'Plugin.Report');
                $report = new Report();

                echo 'Working';
                die;
        }

}

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to