php - How to send the value of a variable between two views in yii -
suppose, in yii framework if other parameter has sent other file. how can this. if admin.php have send variable update.php. how can this
if update.php
child view inside admin.php
, can follow on admin.php
$this->renderpartial('update', array('param1'=>'value1', 'param2'=>'value2', ...))
(noted example update.php
same folder level admin.php
)
if both of files came 2 different actions, or have own url below
public function actionadmin(){ ...; $this->render('admin');} public function actionupdate(){ ...; $this->render('update');}
you have treat query string
admin.php
example:
<?php echo chtml::link('go update',array( 'controller/update', 'param1'=>'value1', 'param2'=>'value2', ...)); ?>
more yii url managger , querystring
Comments
Post a Comment