|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
EvAlGa Smarty n00b
Joined: 14 Jun 2015 Posts: 1
|
Posted: Sun Jun 14, 2015 6:35 pm Post subject: Class extends |
|
|
Всем доброго времени суток!
Не пойму в чем проблема, сделал все по инструкции http://www.smarty.net/docsv2/ru/installing.smarty.extended.tpl
То есть сделал наследование класса и использую дочерний класс. В итоге получаю ошибку о том что Smarty не может распарсить шаблон:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "main/templates/main/index.tpl" on line 9 "Title: {#title#|capitalize}" unknown modifier "capitalize" <-- thrown in....
Хотя используется стандартный шаблон который идет в коробке.
Без наследования, т.е. при создании объекта напрямую от класса Smarty, такой проблемы нет.
Использую PHP 5.4 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jun 15, 2015 3:44 pm Post subject: |
|
|
Мой Хрустальный Шар опять перегорел, так что показывайте код.
И не забывайте про тег [code/] |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|