Yii Framework Forum: Getting Data In Yii From Two Tables Parallely - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Getting Data In Yii From Two Tables Parallely Rate Topic: -----

#1 User is offline   Maclein 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 25-April 12

Posted 13 January 2013 - 10:53 PM

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
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,086
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 14 January 2013 - 01:05 AM

help yourself

http://phplens.com/p...q=node/view/254
0

#3 User is offline   Maclein 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 25-April 12

Posted 14 January 2013 - 04:16 AM

View Postalirz23, on 14 January 2013 - 01:05 AM, said:



Thanks for the reply.... Surely it will help me...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users