XML in a smarty template without htmlencoding....

Ok, this should be simple…In my addon controller I am putting some XML into a php variable

if ( !defined('AREA') ) { die('Access denied'); }

if ($mode == 'getfeature') {
$get_images = false;
$vars = fn_get_product_feature_variants($feature_id, $product_id, $feature_type, $get_images,$lang_code = CART_LANGUAGE);
$xml = str_replace('','',$xml);
$xml = str_replace('
$view->assign('xml', $xml);
Then in the corresponding smarty template file for the controller I want to display the XML

{$xml}however, I think the $view->assign is automatically htmlencoding my xml. Is there another way to do this so my XML remains unchanged?


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?



I don’t know if this will work but it’s worked on most of my projects:


Thanks Sno,

It works great!