mauroagr Posted October 8, 2018 Share Posted October 8, 2018 Dear, i am making a override from carrier, but in then i will check if the load is from front office, or backoffice. How i can get this information in override? Thanks Mauro Link to comment Share on other sites More sharing options...
datakick Posted October 9, 2018 Share Posted October 9, 2018 You can simply check if _PS_ADMIN_DIR_ is defined. Alternatively, you can look what controller is currently in use - Context::getInstance()->controlller. Can I ask what you are trying to achieve? It seems really strange that the logic override should behave differently for backed/frontend Link to comment Share on other sites More sharing options...
mauroagr Posted October 10, 2018 Author Share Posted October 10, 2018 i solve it....context, the variable controller_type. Thanks Mauro 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