Masteries Posted August 24, 2017 Share Posted August 24, 2017 I'm completely new to overrides, should PHP tags be closed when overriding core files? Example: <?php class someController extends someControllerCore { } ?> Or is it not necessary? Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 Our overrides don't have the php closing - the reason. Overrides might be puzzeled together from different sources. So the final close comes from prestashop itself, if it comes. 1 Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 To add one more hint. More than the closing it's important not to use the short opening like <? but the long one <?php. Otherwise code might be not interpreted but instead rendered as text shown to the public. 1 Link to comment Share on other sites More sharing options...
Masteries Posted August 24, 2017 Author Share Posted August 24, 2017 Got it, thanks Scully! 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