CodeIgniter v1.7.2 Released - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: CodeIgniter v1.7.2 Released (/showthread.php?tid=22500) |
CodeIgniter v1.7.2 Released - El Forum - 09-16-2009 [eluser]Derek Jones[/eluser] You can either modify the code as you stated above, or build the query manually for now. CodeIgniter v1.7.2 Released - El Forum - 09-16-2009 [eluser]ELRafael[/eluser] Thanks in system/database/DB_active_rec.php, line 613 Code: function like($field, $match = '', $side = 'both', $escape = TRUE) in system/database/DB_active_rec.php, line 697 and 710 L: 619 Code: function _like($field, $match = '', $type = 'AND ', $side = 'both', $not = '', $escape = TRUE) Code: if ($escape === TRUE) My code: Code: $this->db->like('title', $title, 'before', FALSE); IMHO CodeIgniter is a great job. But I believe that you should pay more attention when put a change like this. "Or I write the SQL Query and don't use Active Record or I can't use wildcards in Active Record". I know 99% the escape is an amazing feature. But in this case, didn't result :-S CodeIgniter v1.7.2 Released - El Forum - 09-16-2009 [eluser]Derek Allard[/eluser] Rafael, active record cannot be everything to everyone. Like all tools in CI, it is meant to help you out, but it can't read your mind. If you have a non-standard query, or a situation with special needs, CI provides you with the ability to run queries. At any rate, your first instinct that maybe this thread isn't the best place to discuss it is probably right, if you want to add more about Active Record or any shortcomings you perceive, please feel free to start a new thread so the community can discuss. Thanks for the kind words! CodeIgniter v1.7.2 Released - El Forum - 09-17-2009 [eluser]dbashyal[/eluser] Wow good to know new version available. I am bit late to find out this though Someone who taught me codeigniter was going to move away from CI, which was his favorite, after getting Snow leopard. Hopefully this release will help him to stay with CI. And, hopefully this will solve my current issue 'Mysql server gone away'. Will try this tomorrow morning. CodeIgniter v1.7.2 Released - El Forum - 11-23-2009 [eluser]sihijau[/eluser] i think therese bugs in the cart class, because i try using this library when i insert new item or update cart, the item in shoppingcart is reset to 1 item. exactly like this case my controller code: Code: <?php could anyone help me? sorry if i posted in wrong place :down: |