$widgetData = array('criteria' => $criteria);
$count = Yii::app()->db->createCommand('SELECT COUNT(id) FROM {{apartment}} WHERE active <> '.Apartment::STATUS_DRAFT)->queryScalar();
$widgetData = array('criteria' => $criteria, 'count' => $count);
$widgetData = array('criteria' => $page->page->getCriteriaForAdList());
$count = Yii::app()->db->createCommand('SELECT COUNT(id) FROM {{apartment}} WHERE active <> '.Apartment::STATUS_DRAFT)->queryScalar();
$widgetData = array('criteria' => $page->page->getCriteriaForAdList(), 'count' => $count);
$widgetData = array('criteria' => $page->page->getCriteriaForAdList(), 'count' => $count);
$widgetData = array('criteria' => $page->page->getCriteriaForAdList(), 'count' => 1);
$maxID = Yii::app()->db->createCommand('SELECT MAX(id) FROM {{apartment}}')->queryScalar();
Вернуться в Вопросы и помощь по изменениям
Сейчас этот форум просматривают: Google [Bot] и гости: 5