const TYPE_RENT = 1;
const TYPE_SALE = 2;
const TYPE_DEFAULT = 1;
const PRICE_SALE = 1;
const PRICE_PER_HOUR = 2;
const PRICE_PER_DAY = 3;
const PRICE_PER_WEEK = 4;
const PRICE_PER_MONTH = 5;
if($all){
return array(
...
self::PRICE_PER_TEST => tt('Price per test', 'apartments'),
)
}
$urls = array(
...
Apartment::TYPE_TEST => $this->createUrl('/apartments/backend/main/'.$this->action->id,
array('id' => $model->isNewRecord? '': $model->id, 'type' => Apartment::TYPE_TEST)),
)
ALTER TABLE `re_dev_apartment_reference_values` ADD `for_test` TINYINT( 1 ) NOT NULL DEFAULT '1' AFTER `for_sale`;
$data = SearchForm::apTypes();
Вернуться в Вопросы и помощь по изменениям
Сейчас этот форум просматривают: Google [Bot] и гости: 2