Getting Data In Yii From Two Tables Parallely

Hi

I have two models X and Y. In X model there is function xx() and in Y model there is function yy().

Now in controller




public function actionWork(){

  $a = new X;

  $b = new Y;

  $result1 = $a->xx();

  $result2 = $b->yy();

}



Now this code will process the action in sequential order.

But if I want to process these code in parallel, how will I be able to do that?

Thanks,

Maclein

help yourself

http://phplens.com/phpeverywhere/?q=node/view/254

Thanks for the reply… Surely it will help me…