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

http://www.yiiframework.com/doc/guide/1.1/en/topics.url


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -