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

getConfigVariable() error #286

Closed
ncmendes opened this issue Sep 8, 2016 · 2 comments
Closed

getConfigVariable() error #286

ncmendes opened this issue Sep 8, 2016 · 2 comments

Comments

@ncmendes
Copy link

@ncmendes ncmendes commented Sep 8, 2016

From version 3.1.28 to 3.1.30 I get this error:

File:
\sysplugins\smarty_internal_extension_handler.php

Line:
85

Message:
property 'config_variable' does not exist.

Example code (that have been running ok for ages):

$site->view->configLoad('language.conf', $site->language->active);
$int_phrase001 = $site->view->getConfigVariable('phrase001');

uwetews added a commit that referenced this issue Sep 8, 2016
@uwetews

This comment has been minimized.

Copy link
Contributor

@uwetews uwetews commented Sep 8, 2016

Please note that the official documented api method is getConfigVars().
see http://www.smarty.net/docs/en/api.get.config.vars.tpl

however I implemented a wrapper for the removed method getConfigVariable().
This is fixed in the master branch

@uwetews uwetews closed this Sep 9, 2016
@ncmendes

This comment has been minimized.

Copy link
Author

@ncmendes ncmendes commented Sep 12, 2016

I missed that I was not using the official api method even after having consulting the docs and not noticing it. With getConfigVars() everything is working as expected again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.