То неловкое чувство когда любой вопрос перерастает в холивар )))) А кстати как у линукса с килерфичей винды - IE ? В корпоративной среде он многое решает. И все не могу вкусить прелести html 5 из-за него ((((
сильно помогло логгирование в yii-debug-toolbar.
но что странно, почему то отпал поиск кое - где. разные настройки окружения?
и все равно интересно каким инструментом можно включить дебаг в yii
рекурсивным запросом можно выбрать любое дерево любым образом одним запросом - хоть с потомка, хоть с предка. возможно рекурсивный запрос более *дорог*, но когда большое дерево, то имеет смысл уже хранить xml дерево.
public function actionCreate()
{
$model = new Page;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if (isset($_GET['p_parent']))
$model->p_parent = $_GET['p_parent'];
if (isset($_POST['Page']))
{
$model->attributes = $_POST['Page'];
if ($_GET['new'] == 'true')
{
$model->p_id = 0;
}
if ($model->save())
//$this->redirect(array('view','id'=>$model->p_id));
{
Yii::app()->user->setFlash('flash', "Успешное создание.");
$this->redirect(array('index'));
}
}
$this->render('create', array(
'model' => $model,
));
//
}
не канает
Role Object
(
[_new:CActiveRecord:private] => 1
[_attributes:CActiveRecord:private] => Array
(
)
[_related:CActiveRecord:private] => Array
(
)
[_c:CActiveRecord:private] =>
[_pk:CActiveRecord:private] =>
[_alias:CActiveRecord:private] => t
[_errors:CModel:private] => Array
(
)
[_validators:CModel:private] => CList Object
(
[_d:CList:private] => Array
(
[0] => CRequiredValidator Object
(
[requiredValue] =>
[strict] =>
[trim] => 1
[attributes] => Array
(
[0] => name
)
[message] =>
[skipOnError] =>
[on] => Array
(
)
[except] => Array
(
)
[safe] => 1
[enableClientValidation] => 1
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
[1] => CSafeValidator Object
(
[attributes] => Array
(
[0] => comment
)
[message] =>
[skipOnError] =>
[on] => Array
(
)
[except] => Array
(
)
[safe] => 1
[enableClientValidation] => 1
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
[2] => CSafeValidator Object
(
[attributes] => Array
(
[0] => id
[1] => name
[2] => comment
)
[message] =>
[skipOnError] =>
[on] => Array
(
[search] => search
)
[except] => Array
(
)
[safe] => 1
[enableClientValidation] => 1
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
)
[_c:CList:private] => 3
[_r:CList:private] =>
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
[_scenario:CModel:private] => insert
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)