Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tjis plugin supports Smarty 3 up to 3.1.21 #36

Open
alex-shamshurin opened this issue May 8, 2016 · 2 comments
Open

Tjis plugin supports Smarty 3 up to 3.1.21 #36

alex-shamshurin opened this issue May 8, 2016 · 2 comments
Labels

Comments

@alex-shamshurin
Copy link

With 3.1.22 this wiil not work because of afterload changes

@samdark
Copy link
Member

samdark commented May 9, 2016

@salex772 want to make a pull request fixing it?

@cebe cebe added the bug label May 10, 2016
@AleksP
Copy link

AleksP commented Jun 21, 2017

Modify 'ESmartyViewRenderer->init()' FROM:`

        // including Smarty class and registering autoload handler
	require_once('sysplugins/smarty_internal_data.php');
	require_once('Smarty.class.php');

	// need this since Yii autoload handler raises an error if class is not found
	// Yii autoloader needs to be the last in the autoload chain
	spl_autoload_unregister('smartyAutoload');
	Yii::registerAutoloader('smartyAutoload');   

TO:

	// including Smarty class and registering autoload handler
	require_once('sysplugins/smarty_internal_data.php');
	require_once('Smarty.class.php');
        require_once('Autoloader.php');
        Smarty_Autoloader::registerBC(true);

	// need this since Yii autoload handler raises an error if class is not found
	// Yii autoloader needs to be the last in the autoload chain
        // spl_autoload_unregister('smartyAutoload');
        // Yii::registerAutoloader('smartyAutoload');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants