hakeryk2 Posted November 9, 2017 Share Posted November 9, 2017 Hi folks, I am wondering if using in .tpl files code that will break mvc rules, something like this <strong>{Product::getProductCategories($product->id|intval)}</strong> instead of proper method like passing those values into smarty variable is affecting performance? Link to comment Share on other sites More sharing options...
bellini13 Posted November 10, 2017 Share Posted November 10, 2017 Its not so much a performance issue, its just poor programming to use PHP directly inside of a smarty template. In fact, using PHP inside of smarty is likely disabled. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now