CS-cart addon coding

Hi,

I need a help about cs-cart, i'm coding an addon for the backend, the matter is how to integrate the view into the backend template, because when i call it, the backend disappears. My view could be something like a simple html page called from a menu item.



{capture name=“mainbox”}my text here {/capture}

Thanks.

You forgot to include the essential part ;)

Please try: ```php


{capture name=“mainbox”}

my text here

{/capture}

{include file=“common/mainbox.tpl”

title=ADDON_TITLE

content=$smarty.capture.mainbox

}

<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Hi Valentin, thanks for your reply. This is my controller

```php


if ( !defined('AREA') ) { die('Access denied'); }
if($mode=='view'){

$view->display('addons/docs/views/doc.tpl');
exit;
}
?>

```

Now my view call a blank page, i put my content in doc.tpl with your suggest.

Thanks

Hi Valentin, i applied theses settings but the content does not display, i have a blank page in the backend.

Thanks

I have send you ex for cs-cart 4.x



for 3.x you need to use:


{capture name="mainbox"}
my text here
{/capture}
{include file="common_templates/mainbox.tpl"
title=ADDON_TITLE
content=$smarty.capture.mainbox
}