Hi guys, i'm trying to make a very simple module with cmsms but i'm wondering how the cms works because my first experience is very bad :
Does the desginer have to ask the programmer every time he wants to access to a lang var ? I mean the lang var must be set in the smarty vars to be available in the template ?
Each intern link that the designer wants to make must be "sended" from the programmer with the CreateLink function ?
Thanks
Making a plugin
Re: Making a plugin
You can give the designer access to all your variables.. In your module, do:
..and in your template:
..as long as you're OK with your designer being able to access any function associated with your module.
Code: Select all
$smarty->assign('module', $this);
Code: Select all
{$module->Lang('whatever')}