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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -