i did try something like this in view/skn/post/index.php, but does not work.
//controller : PostController //view : index.php //arrive here using using PostController. skn/post/index //i want to create URL that redirect to skn/comment/index //but i think this way is wrong $url_comment_index = Yii::app()->createUrl('skn/comment/index'); $this->menu=array( array('label'=>'Create Post','url'=>array('create')), //work fine to skn/post/create array('label'=>'Manage Post','url'=>array('admin')), //work fine to skn/post/admin array('label'=>'Approve Comments','url'=>array($url_comment_index)), //url_comment_index does not work. return a wrong URL );
its a blog application i create base on Yii Blog Example. but i want a different way redirecting app to 'Approve Comment'.
below is my folder directory
Yii Folder : protected ------views ------layouts ------site ------skn ------comment ------index.php ------post ------create.php ------admin.php ------index.php
any help would be appreciete.
This post has been edited by cassiopeia: 16 April 2013 - 01:42 PM