Ok, this should be simple…In my addon controller I am putting some XML into a php variable
if ( !defined('AREA') ) { die('Access denied'); }
Then in the corresponding smarty template file for the controller I want to display the XML
if ($mode == 'getfeature') {
$feature_id=$_REQUEST['feature_id'];
$product_id=0;
$feature_type='S';
$get_images = false;
$vars = fn_get_product_feature_variants($feature_id, $product_id, $feature_type, $get_images,$lang_code = CART_LANGUAGE);
$xml=serialize_object($vars,'product_feature');
$xml = str_replace('
$xml = str_replace('
$view->assign('xml', $xml);
$status == CONTROLLER_STATUS_OK;
}
however, I think the $view->assign is automatically htmlencoding my xml. Is there another way to do this so my XML remains unchanged?
OR
is there a controller status I can return to stop cs-cart from proceeding and then I could just echo the XML myself?
OR some other way I haven’t thought of?
Thanks,
Scott