MrAnchovy / Kohana_Smarty3

Integration of Smarty v3 with the Kohana PHP Framework
25 stars 13 forks source link

Need to be able to use different file extensions #21

Open ccnicholls opened 9 years ago

ccnicholls commented 9 years ago

I'm trying to integrate Smarty into Dreamweaver (CC 2014) but the .tpl extension is already being used by DW so I need to be able to use a different extension for smarty templates.

If I use a different extension for my smarty templates, the smarty module is unable to find the file.

It would be great if a configuration option could be added to allow different extensions to be used.

samuelecarpene commented 9 years ago

This is not an issue of the code. I think you have to choose another ide o maybe search in google "dreamweaver tpl" i think you can open tpl files. Smarty is using tpl for years so i don't think you can use another extension...

ccnicholls commented 9 years ago

Native smarty allows any file name/extension to be used. Kohana smarty module requires a .tpl extension. See classes/view.php, is_smarty_template()