On Wed, Jun 27, 2012 at 1:05 PM, baur79 <[email protected]> wrote: > i'm about how to run function in > class GrmShell extend AppShell > > public function main() { > $this->worker = new gearmanworker() > $this->worker->addFunction("func", "func_my"); > } > > public function func_my() { > // run logic > } >
Ummm.... I have lost you here... You have to start the worker and let it run. When ever a worker receives a job it will run. Have you tried running gearman examples without cakePHP? Tarique -- ============================================================= PHP for E-Biz: http://sanisoft.com ============================================================= -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
