Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Class extends

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
EvAlGa
Smarty n00b


Joined: 14 Jun 2015
Posts: 1

PostPosted: Sun Jun 14, 2015 6:35 pm    Post subject: Class extends Reply with quote

Всем доброго времени суток!

Не пойму в чем проблема, сделал все по инструкции 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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jun 15, 2015 3:44 pm    Post subject: Reply with quote

Мой Хрустальный Шар опять перегорел, так что показывайте код.
И не забывайте про тег [code/]
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP