Thank you very much for responding.
1) Function loadModule() in protected/controllers/ProjectController.php
public function loadModel()
{
if($this->_model===null)
{
if(isset($_GET['id']))
$this->_model=Project::model()->findbyPk($_GET['id']);
if($this->_model===null)
throw new CHttpException(404,'The requested page does not exist.');
}
return $this->_model;
}
2) Function setFlash() at the end of protected/controllers/ProjectController.php
public function setFlash( $key, $value, $defaultValue = null )
{
Yii::app()->user->setFlash( $key, $value, $defaultValue );
}
3) Function actions() at the end of protected/controllers/ProjectController.php
public function actions()
{
return array(
'view' => 'application.actions.CreateAction',
);
}
4) and 5) With this code in protected/views/project/index.php:
<?php
$this->breadcrumbs=array(
'Projects',
);
$this->menu=array(
array('label'=>'Create Project', 'url'=>array('create')),
array('label'=>'Manage Project', 'url'=>array('admin')),
);
$this->widget( 'ext.EUpdateDialog.EUpdateDialog' );
?>
<h1><?php echo Yii::t('app', 'Projects'); ?></h1>
<?php
echo CHtml::link( 'Create', array( 'create' ),
array(
'class' => 'update-dialog-open-link',
'data-update-dialog-title' => Yii::t( 'app', 'Create a new mix' ),
));
?>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
Just get this dialog (image attached):
What is missing me?
Regards.