Ajax Validation in Widget scheitert...

//Edit: Ich habe mein Problem inzwischen hier gepostet. Für den unwahrscheinlichen Fall, dass noch jemand hierrauf antworten möchte: Bitte erst vergewissern, dass ich noch keine Lösung gefunden habe.

Guten Morgen,

zunächst mal meine Scripte:

http://www.example.com/index.php?site/index

app/controllers/site/IndexAction.php

[PHP]

class IndexAction extends CAction

{

public function run()


{


	$this->controller->render('index');


}

}

[/PHP]

app/views/site/index.php

[PHP]

<h1 class="alt">Output b4 widget</h1>

<hr />

<?php $this->widget(‘ext.smstrade.ESmsTrade’); ?>

[/PHP]

app/extensions/smstrade/ESmsTrade.php (ESmsTrade extends CWidget)

[PHP]

public function run()

{

&#036;form = &#036;this-&gt;createForm();


&#036;this-&gt;handleForm(&#036;form);

}

// Hier aktiviere ich die ajax Validierung

private function createForm()

{

//...


&#036;form-&gt;activeForm = array('class' =&gt; 'CActiveForm',


			  'id' =&gt; self::ID_FORM,


			  'enableAjaxValidation' =&gt; true);


return &#036;form;

}

private function handleForm($form)

{

&#036;this-&gt;performAjaxValidation(&#036;form);


	


//...[code code code]...


&#036;this-&gt;render('form', array('form' =&gt; &#036;form));

}

private function performAjaxValidation($form)

{

if(isset(&#036;_POST['ajax']) &amp;&amp; &#036;_POST['ajax'] == self::ID_FORM)


{


	echo CActiveForm::validate(&#036;form-&gt;model);


	Yii::app()-&gt;end();


}

}

[/PHP]

So. Wenn jetzt allerdings die Ajax Validierung greift, ist schon der Teil "Output b4 widget" ausgegeben und der zurückgegebene JSON code wird nicht mehr erkannt…

Wie regel ich das am besten? Danke schonmal im vorraus.

Wenn das Konzept falsch ist, ändere ich auch das gerne ab… Aber mit fehlt ein Ansatz :(