Yii Newbie here, 이전에 CKEditor TextArea 내부에서 만든 뷰를 렌더링하려면 어쨌든 궁금합니다.Yii : CKEditor 텍스트 영역 내에서의 렌더링
값 속성 내부에서 렌더링을 시도했지만 불행히도 작동하지 않았습니다.
이렇게 할 방법이 있습니까? 또는 별도의 함수를 만들고 페이지를 텍스트 영역으로 출력해야합니까?
팁, 조언 또는 조언을 크게 듣습니다 !! 당신이 model
및 attribute
속성을 지정하면 value
속성을 사용하지 않는 당신
<?php
$this->widget('application.extension.CKEditor.TheCKEditorWidget', array(
'model' => $model,
'attribute' => 'body',
'value' => //rendered page,
'height' => '400px',
'width' => '800px',
'toolbarSet' => 'Full',
'ckeditor' => Yii::app()->basePath . '/../ckeditor/ckeditor.php',
'ckBasePath' => Yii::app()->baseUrl . '/ckeditor/',
'css' => Yii::app()->baseUrl . '/css/index.css',
)); ?>
는 –