Skip to content

Instantly share code, notes, and snippets.

@allyraza
Created August 10, 2012 17:03
Show Gist options
  • Save allyraza/3315658 to your computer and use it in GitHub Desktop.
Save allyraza/3315658 to your computer and use it in GitHub Desktop.
// controller
public function actionAjaxU() {
echo "Hello";
}
// view
<?php $this->pageTitle=Yii::app()->name; ?>
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
<?php echo CHtml::ajaxLink ("&raquo",
array('/ajaxU'),
array(
'update' => '#result',
),
array("id" => 'send-link-'.uniqid(), "live"=>false)
); ?>
<div id="result">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment