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
{$smarty.cookies.username} in 5.0.0 rc2 #931
Comments
Well, the PHP docs state: "For functions and constants, PHP will fall back to global functions or constants if a namespaced function or constant does not exist." and the units indicatie this works perfectly. Somehow, it seems you have not loaded the 'functions.php' file, even though it is defined in composer.json autoload.files. |
Thanks for your reply. Acutaly I don't use composer, because it's not an option for the project I'm working. I think it would be good if you post instructions on how to include Smarty without composer, because I believe there are more cases like mine.
I'll do a little more research here... |
can you explain why using composer is not an option? |
The whole problem was that functions.php was not loaded. |
But you cannot explain why using composer is not an option? |
Smarty 5.0.0 rc2, php 8.2.13
In template :
{$smarty.cookies.username} or
{$smarty.request.page}
Throws error:
'Call to undefined function Smarty\Compile\smarty_strtolower_ascii()', in file '/Smarty/Compile/SpecialVariableCompiler.php', at line 45
The text was updated successfully, but these errors were encountered: