<?php $my_tree = array( array( 'text' => 'Node 1', 'children' => array( array( 'text' => $Link1, 'children' => array( array( 'text' => "Node 1.1.1", ), ) ), array( 'text' => 'Node 1.2', 'children' => array( array( 'text' => $Link2, ), ) ), ) ), ); ?>
here the links
<?php
$Link1=CHtml::ajaxLink ("Link 1",
CController::createUrl('site/Link1'),
array('update' => '#erg', 'type' => 'POST'));
$Link2=CHtml::ajaxLink ("Link 2",
CController::createUrl('site/Link2'),
array('update' => '#erg', 'type' => 'POST'));
?>
<div id="erg"> <?php echo $erg; ?> </div>
here the controller
// Links
public function actionLink1()
{
$erg="Link1";
$this->render('index', array('erg' =>$erg));
}
so when i press the Link . this works without problems but everytime i got the full site
.
i want just have the String on the Result but i get everytime the full Site
so its look like the Attac....
thanx
Attached File(s)
-
attach.jpg (27.62K)
Number of downloads: 35

Help













