Here some codes that you can try
$models=User::model()->findAll(array( 'select'=>'*, rand() as rand', 'limit'=>24, 'order'=>'rand', ) );
From above code we can see that we fetch the table user using criteria. This codes give you a way to select all data with random position of order.
You can try that..
Great Work, after reading this post I felt comfortable with this post thank you very much.
ReplyDeletePlease Click Here For More Information About Any Course or Training Institute all over the world
https://www.calfre.com/USA/Texas/Houston/Big-Data-Hadoop-Training/listing
Big Data Hadoop Training in Houston