SimplaDeveloper Posted October 10, 2016 Report Share Posted October 10, 2016 А где заданы переменные Smarty, которые используются в шаблонах .tpl ? И вообще, как подлючается Smarty ? В сети нашел только такой способ: // подключаем класс Smartyrequire_once('smarty/Smarty.class.php');// Создаем объект класса$smarty = new Smarty(); В Simpla же нигде подобного не вижу. Quote Link to post Share on other sites
Kosjak76 Posted October 10, 2016 Report Share Posted October 10, 2016 А зачем вам подключать Смарти ЕЩЕ РАЗ?У вас смарти не работает?А переменные задаются в Классах из папки view в основном.В конструкциях вида $this->design->assign('products', $products); Quote Link to post Share on other sites
Solution Kosjak76 Posted October 10, 2016 Solution Report Share Posted October 10, 2016 А подключается Смарти в файле api\Design.php если это вас так интересует Quote Link to post Share on other sites
SimplaDeveloper Posted October 10, 2016 Author Report Share Posted October 10, 2016 А зачем вам подключать Смарти ЕЩЕ РАЗ?У вас смарти не работает?А переменные задаются в Классах из папки view в основном.В конструкциях вида $this->design->assign('products', $products); Работает. Просто разбираюсь Quote Link to post Share on other sites
Maksclub Posted October 10, 2016 Report Share Posted October 10, 2016 Работает. Просто разбираюсь Круто! Я тоже планирую, никак не возьмусь, вы учитесь или взяли просто проект на Симпле и разбираетесь с ним? Quote Link to post Share on other sites
SimplaDeveloper Posted October 12, 2016 Author Report Share Posted October 12, 2016 Круто! Я тоже планирую, никак не возьмусь, вы учитесь или взяли просто проект на Симпле и разбираетесь с ним?Взял магазин на Simpla и разбираюсь в нем Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.