Exemplo n.º 1
0
 public function reference1()
 {
     // Берем файл
     $text = Core::getFile('data1.txt');
     $bbClass = new Bb();
     $bbClass->__construct($text);
     // Данные bb
     $data_array = $bbClass->parse('data');
     // Описание bb
     $descrition_array = $bbClass->parse('description_elem');
     //Вывод массивов
     Core::preArray($data_array);
     Core::preArray($descrition_array);
 }
Exemplo n.º 2
0
 public function actionAjaxReqord()
 {
     $val1 = $_POST['p_id'];
     $val2 = $_POST['c_id'];
     $this->widget('ext.OrderlistWidget', array('model' => Bb::model(), 'columns' => array('id', 'num', 'name'), 'class' => 'nx', 'id' => 'id', 'togo' => '##', 'next' => 'next', 'par_id' => $val1, 'cur_id' => $val2, 'par' => 'region_id', 'level' => 1));
     Yii::app()->end();
 }