php - How to insert url link inside <a hreif> in yii 1 -
i have following code:
<?php return array( ulogt::update =>' <div> <a href="#link">navigate</a> </div>' ?>
this code locates in class called links.php. need navigate ('viewform', array('model'=>$this->loadjson($id)),
when user presses navigate button. not know how insert code instead of #link
. when tried insert
yii::app()->createurl( '/????/???/viewform', // link array( 'id'=> 1 // data sent ) )
it did not work. code appeared in browser. how can it?
Comments
Post a Comment