Sunday, September 4, 2016

How to auto load a smarty plugin

Leave a Comment

We have a plugin for a PHP script with Smarty template engine,

It can be used in template files with {plugin_name} but that requires making sure this is on every single template file, the question is:

is there a way to auto-load this plugin whenever the scripts loads?

Script is not open source, but Smarty and it's files (such as Smarty.class.php etc) are not encrypted.

Edit

All I need to do is to auto-load a Smarty Plugin (which has small interaction with database) before template files load, is this possible/achievable with Smarty files only? (script itself in encrypted, but Smarty_Compiler.class.php, Smarty.class.php, Config_File.class.php, and other smarty core functions are open source)

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment