khushal
(Khushal Fadiya)
January 9, 2014, 9:06am
1
Hello everyone,
I have one table as student which is joined to other table as Exam.
Records displayed in Grid are as follow in Student’s View:
Date(from exam table) stu_name Stu_contact
Now I want to apply sorting in my model criteria based on the exam table date.
But I have not used that date in search() function.
Thanks…
ahmed201
(Rifajas)
January 9, 2014, 6:25pm
2
you can search like this
$criteria->compare('exam.Date',$this->examDate);
in model’s search() method here exam is the name of the relation for exam table defined in relatios() method and $this->examDate is the attribute that holds filter input
leboism
(Ingedata2014)
June 18, 2014, 8:52am
3
This is a great product! I found some more information on this website: medicalexpo.com/medical-manufacturer/examination-table-1061.html