Yii Framework Forum: Awegen Extension - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Awegen Extension Rate Topic: -----

#1 User is offline   Diego Felix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 03-December 13

Posted 28 December 2013 - 08:33 AM

I tried to generate the CRUD, but when I clicked "Preview", I received a page with this text:

render('index', array( 'dataProvider' => $dataProvider, )); } public function actionView($id) { $this->render('view', array( 'model' => $this->loadModel($id), )); } public function actionCreate() { $model = new TpContato; if (isset($_POST['TpContato'])) { $model->setAttributes($_POST['TpContato']); try { if($model->save()) { if (isset($_GET['returnUrl'])) { $this->redirect($_GET['returnUrl']); } else { $this->redirect(array('view','id'=>$model->

What's wrong?

There is no problem with models code generation.

Application log, last trace:
Querying SQL: SHOW CREATE TABLE `tp_contato`
in /home/bill/workspace/testdrive/index.php (13)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users