Created
April 21, 2014 12:20
-
-
Save max107/11141230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$criteria = new CDbCriteria(); | |
$criteria->condition = "status IN(1)"; | |
$criteria->mergeWith($model->lang()->children()->getDbCriteria()); | |
$criteria->order = "type ASC, create_time DESC"; | |
Pages::model()->findAll($criteria); |
Author
max107
commented
Apr 21, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment