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
} 

On Wednesday, June 27, 2012 10:28:04 AM UTC+6, Dr. Tarique Sani wrote:
>
> On Tue, Jun 26, 2012 at 9:13 PM, baur79 <bau...@gmail.com> wrote: 
> > but how to run the function by 
> > $worker->addFunction("func", "func_my"); 
>
> Something like 
>
> $this->worker = new gearmanworker() 
>
> then 
>
> $this->worker->addFunction("func", "func_my"); 
>
> Of course presuming that somewhere you have already added the servers 
>
> 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to