Rhobur Posted August 12, 2016 Share Posted August 12, 2016 Hi, Could someone shed a light of what loadObject function do exactly? I see that it creates an object but how and out of what? I mean when used in a module what does $obj = $this->loadObject(true); do exactly? Link to comment Share on other sites More sharing options...
coeos.pro Posted August 12, 2016 Share Posted August 12, 2016 like https://github.com/PrestaShop/PrestaShop/blob/08fd15ea5d54fcc3993f4fc1f3dfc8962a129415/classes/controller/AdminController.php#L1599-L1625 or https://github.com/PrestaShop/PrestaShop/blob/9a2e47a17a196763e268f95c5b2898ca2b54feff/classes/AdminTab.php#L2187-L2205 1 Link to comment Share on other sites More sharing options...
Rhobur Posted August 14, 2016 Author Share Posted August 14, 2016 what could be the identifier in $_GET? Link to comment Share on other sites More sharing options...
bellini13 Posted August 14, 2016 Share Posted August 14, 2016 typically a number. Let's say you are looking at an Order, the identifier would be the id_order, and the code would attempt to create an Order object using that identifier 1 Link to comment Share on other sites More sharing options...
Rhobur Posted August 15, 2016 Author Share Posted August 15, 2016 Thank you both for you clarifications! Have a great week! 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