Problem with Ajax and renderpartial in requested file

Hi there,

i searched for my problem but i havent found an solution yet…

i made an ajaxlogin, once user is logged in i need to reload the order area of my page, to display the payment options. i need to do it with ajax…

My Files:

STORE.JS

its called after login to fire the ajax call and get the content





function load_cart_checkoutarea(mIDx)

{

	var params="action=loadCartCheckoutArea&currentController=store&merchantIDx="+mIDx;

	busy(true);

    $.ajax({    

    type: "POST",

    url: ajax_url,

    data: params,

    dataType: 'json',       

    success: function(data){ 

    	busy(false);      

    	if (data.code==1){

			

			$(".logon-cart-checkoutarea").html(data.details);

			//call afterwards to reenable needed functions (calendar,langugecodes,timepicker and so on...)

			load_cart_checkoutform_functions();

			//load_merchant_payment(mIDx);

			

    	}

    }, 

    error: function(){	        	    	

    	busy(false);

    }		

    });

}



AJAXADMIN.PHP

where the function returns the design




            public function loadCartCheckoutArea()

	    {	

			if ( Yii::app()->request->isAjaxRequest ):    	

	    	ob_start();	

	    	if ( Yii::app()->functions->isClientLogin()):

	 		require_once 'cart-checkout-ajax.php'; 	

	    	$forms = ob_get_contents();

            ob_end_clean();

            $this->code=1;

            $this->details=$forms;

	    	else :

	    	$this->code=2;

	    	endif;	

			endif;    	

	    } 



(cart-checkout-ajax.php is in the folder protected/models/)

Now this works well,

but if i add this code below into the cart-checkout-ajax.php file, my ajax call gives just an error.

How can i solve this? i dont know how to fix that

This is the code wich has to be inside cart-checkout-ajax.php:




        <?php 

	 $this->renderPartial('/front/payment-list',array(

	   'merchant_id'=>$merchant_id,

	   'payment_list'=>FunctionsV3::getMerchantPaymentList($merchant_id)

	 ));

	 ?>



I really need help with this.

i found a solution…