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

Smarty Template not taking custom functions

 
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 -> General
View previous topic :: View next topic  
Author Message
ssweeney
Smarty n00b


Joined: 20 Oct 2011
Posts: 1

PostPosted: Thu Oct 20, 2011 9:08 pm    Post subject: Smarty Template not taking custom functions Reply with quote

Good Afternoon,

I'm currently using smarty for a project and am trying to us a custom function defined in a global file. The page dies with an error of "unrecognized tag". Upon some research I decided to try a custom plugin function, (thought possibly a global php.ini setting was the issue), no luck. Upon removing the global function from the template just to see if it would run I then got errors from another line with this setup: $variable->something()->else().

To add this is working fine for a coworker on his checkout of the code. It fails to work on the same coworkers home machine. This leads us to believe there must be a global ini setting being missed.

Thoughts?
Back to top
View user's profile Send private message
Code62
Smarty Rookie


Joined: 21 Jun 2011
Posts: 12
Location: Work@Liège.be

PostPosted: Mon Oct 24, 2011 12:56 pm    Post subject: Reply with quote

Is the same smarty version used in both cases ?

with smarty 2, $object->method()->method() doesn't work; it does only since smarty 3
Back to top
View user's profile Send private message Visit poster's website
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 -> General 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