Help with updating to 3.0 |
Hello dear users.
The help with the codeigniter updating to 3.0 is necessary Screenshots of mistakes: http://prntscr.com/65d7a9 http://prntscr.com/65d7hw http://prntscr.com/65d7rb I didn't understand documentation, the weak level of English. A sort from Russia. The big gratitude who will undertake to help me! Forgive for English
(02-15-2015, 05:37 AM)MattafixTM Wrote: Hello dear users. Nobody wants to download your code.. Provide some in here and surely people will help.
I'm not sure how much it's going to help if you're having trouble understanding the PHP errors themselves, but I'll attempt the first couple of items:
Quote:Message: Declaration of Siteconfig:: save() should be compatible with that of MY_Model:: save() This shouldn't have anything to do with the upgrade from CI 2 to 3. This implies that you changed something in MY_Model's save() method (like the number/type of arguments) without making the equivalent changes in Siteconfig's save() method. Quote:Message: Undefined property: CI_DB_mysqli_driver:: $ar_orderbyIn this case, your MY_Model is referencing a private property in the mysqli driver for Active Record. Since Active Record has changed to Query Builder, the name of the property also changed. Since the property was private and the visibility indicators have been added to the code, it is no longer accessible. You're going to have to rewrite your MY_Model so that it no longer depends on the availability of this property.
Don't have a lot about this, if you can help please. I would be very grateful.
PHP Code: <?php Siteconfig PHP Code: <?php
Hi there
Your model got error with the first error function __Construct() { // Call the CI_Model constructor parent::__construct(); } change __Construct to __construct() as I think you need class name to be Upper in first letter not the function per CI 3.0 Try that fix then you should see the list gets less errors then go further
(02-22-2015, 11:06 PM)dbui Wrote: Hi thereThat's not the point.
MY_Model:
Quote:public function save($data, $id = NULL) {Siteconfig: Quote:public function save($key, $value) { The second one has to be compatible with the first, meaning Siteconfig:ave() must have a default value on the second argument. The comment made by dbui earlier about the name of the __construct method should be addressed as well. |
Welcome Guest, Not a member yet? Register Sign In |