![]() |
DMZ 1.7.1 (DataMapper OverZealous Edition) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: DMZ 1.7.1 (DataMapper OverZealous Edition) (/showthread.php?tid=28550) |
DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-19-2010 [eluser]danmontgomery[/eluser] [quote author="J Maxwell" date="1282266119"]Has anybody else seen any of the following errors when using DataMapper DMZ with CodeIgniter 2.0? Fatal error: Uncaught exception 'Exception' with message 'Unable to call the method "__constrict" on the class post' in C:\wamp\www\Falcon\application\libraries\datamapper.php:1248 Reading the DataMapper DMZ site it seems like, whilst not officially supported, DMZ might work with 2.0?[/quote] Has nothing to do with CI version, you're calling __constrict instead of __construct in the class 'post'. Probably parent::__constrict() DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-19-2010 [eluser]J Maxwell[/eluser] Oh my. How embarrassing. Thanks for being gentle! DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-19-2010 [eluser]7amza[/eluser] any reply? DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-20-2010 [eluser]WanWizard[/eluser] [quote author="7amza" date="1282270740"]any reply?[/quote] You've created a new thread, so continue there. Also, please remember that we all volunteer to help others, we're not sitting behind a keyboard just waiting for you to ask a question. Patience helps sometimes. And don't forget we could be in a different timezone. When you posted this, I was on my way to get some needed sleep... DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-20-2010 [eluser]7amza[/eluser] Wan , im so sorry for that but really i posted the post here before i created new thread . im sorry . DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-24-2010 [eluser]Atas[/eluser] Hello! Does anybody know how can i do the following with DMZ ? SELECT field_price * 3.90 AS result FROM table WHERE result < 100 Thanks in advance. DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-25-2010 [eluser]Lucas Alves[/eluser] Code: $object->select('field_price * 3.9 as result',FALSE); You can't use WHERE with fields set with AS clause... You can use Code: $object->select('field_price * 3.9 as result',FALSE); DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-25-2010 [eluser]Atas[/eluser] Thanks Lucas. I have other question, sorry... Can i use IF STATMENTS on querys with DMZ? i am reading http://www.overzealous.com/dmz/pages/functions.html but i don't know how can i do that... Thanks in advance... DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-30-2010 [eluser]Lucas Alves[/eluser] I think you can do this using select with escape option set to false too... Can you paste the query ? DMZ 1.7.1 (DataMapper OverZealous Edition) - El Forum - 08-31-2010 [eluser]backstack[/eluser] What would be the best way to include DataMapperExt.php if I'm extending Datamapper itself (as opposed to simply include'ing it on every model)? |