Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

What happened to $compiler_class?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
virtualdevl
Smarty n00b


Joined: 28 Mar 2008
Posts: 4

PostPosted: Thu Dec 15, 2011 4:26 pm    Post subject: What happened to $compiler_class? Reply with quote

Hi,

I previously wrote my own custom compiler class and was setting the $compiler_class property in my subclass extending Smarty 2, after upgrading to Smarty 3 it seems now this property is no longer available and I get the following error:

Undefined property: Smarty::$compiler_class

How can I use Smarty 3 and load my custom compiler class? Thanks.
Back to top
View user's profile Send private message
virtualdevl
Smarty n00b


Joined: 28 Mar 2008
Posts: 4

PostPosted: Mon Dec 19, 2011 2:26 pm    Post subject: Reply with quote

Anyone? I've been trying to find a way to override the default smarty compiler class and load my own without having to alter the smarty code base. Any help would be greatly appreciated.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Mon Dec 19, 2011 4:49 pm    Post subject: Reply with quote

Smarty3 has a completely different internal structure as Smarty3 and cause of it's extended features the compiled templates also have a different structure.

So the old Smarty_Compiler.Class.php is gone.

What was the purpose of your Compiler Class? Did you implement a different syntax?

Anyway we currently have no documentation and examples how to integrate other compilers.

I will send you a PM with my email contact. Perhaps you can provide your Smarty2 compiler class and we can work something out.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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