¡@

Home 

php Programming Glossary: cdbcriteria

dependent dropdown box with Yii

http://stackoverflow.com/questions/4283389/dependent-dropdown-box-with-yii

is from the _form view file div class row php country new CDbCriteria country order 'CountryName ASC' echo form dropDownList model.. row php echo form labelEx model 'Country' php country new CDbCriteria country order 'CountryName ASC' php echo form dropDownList.. row php echo form labelEx model 'State' php state new CDbCriteria state order 'StateName ASC' php echo form dropDownList model..

Yii framework: Using data from related Active Record models for searching

http://stackoverflow.com/questions/9031514/yii-framework-using-data-from-related-active-record-models-for-searching

also does not work. http www.yiiframework.com doc api 1.1 CDbCriteria I have order table and user table Order table and User table.. and order has exactly one user. So i am editing following CDbCriterial to include user tables name and email field in to Order tables.. attributes that should not be searched. criteria new CDbCriteria criteria compare 'id' this id criteria compare 'order_create_date'..

yii model search with daterange for time stamp

http://stackoverflow.com/questions/9578629/yii-model-search-with-daterange-for-time-stamp

my model is below public function search criteria new CDbCriteria criteria condition time_up BETWEEN UNIX_TIMESTAMP ' this time_up_from'.. question Try this public function search criteria new CDbCriteria if empty this time_up_from empty this time_up_to criteria condition..