ealio Posted October 3, 2013 Share Posted October 3, 2013 Where is Currency class, i can only find CurrencyCore. But i find the code below in Context class: if (is_object($cookie)) { $this->currency = new Currency((int)$cookie->id_currency); $this->language = new Language((int)$cookie->id_lang); $this->country = new Country((int)$cookie->id_country); $this->customer = new CustomerBackwardModule((int)$cookie->id_customer); $this->employee = new Employee((int)$cookie->id_employee); } Link to comment Share on other sites More sharing options...
vekia Posted October 3, 2013 Share Posted October 3, 2013 currency class: classes/Currency.php Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2013 Share Posted October 3, 2013 what are you trying to accomplish? Link to comment Share on other sites More sharing options...
ealio Posted October 4, 2013 Author Share Posted October 4, 2013 currency class: classes/Currency.php It's "class CurrencyCore extends ObjectModel" Link to comment Share on other sites More sharing options...
ealio Posted October 4, 2013 Author Share Posted October 4, 2013 what are you trying to accomplish? I am reading the code of prestashop, just want to know more about its architecture. Link to comment Share on other sites More sharing options...
vekia Posted October 5, 2013 Share Posted October 5, 2013 It's "class CurrencyCore extends ObjectModel" yes, you've got right, but this is currency class Link to comment Share on other sites More sharing options...
ealio Posted October 6, 2013 Author Share Posted October 6, 2013 yes, you've got right, but this is currency class Yeah, i know it should be the subclass of CurrencyCore, but i just confused why i can't find its definition. I guess there gotta be something related with class_index.php. I got some contents in the class_index.php like this below. 'Currency' => '', 'CurrencyCore' => 'classes/Currency.php', Link to comment Share on other sites More sharing options...
trevorgilligan Posted April 1, 2015 Share Posted April 1, 2015 i renamed my Currency.php class and uploaded a new one. i got an error. so i reverted back to Currency.php. all same name, same permssions. im getting Fatal error: Class 'Currency' not found in /var/www/web/shop/classes/Tools.php on line 460 . v frustrating can anyone help please? 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