[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) |
[eluser]BrianDHall[/eluser]
Holy cow, I didn't even see you had an htmlform extension that is just what I was wanting, a way to easily and quickly create forms! HTML Form Extension to DMZ I just keep loving this addition to CI more and more, it's fast becoming one of the best things in favor of CI I've seen yet. I'm sorry for people that overlook CI because it supposedly doesn't have ORM, and all the people still doing things the old fashioned way :>
[eluser]OverZealous[/eluser]
DataMapper OverZealous Edition 1.5.2 Update Quote:Core Changes: Quote:Download the Latest Version Here
[eluser]OverZealous[/eluser]
[quote author="BrianDHall" date="1252469241"]I just keep loving this addition to CI more and more, it's fast becoming one of the best things in favor of CI I've seen yet.[/quote] Wow, thanks for the ego-boost! :lol: FYI: you are in the credits for the latest update for finding those _template typos. ;-)
[eluser]BrianDHall[/eluser]
Aww, thanks - I hope I can one day contribute to the project that is helping me so much, but I've much to learn about the power that is already there Oh, and darned if I didn't find another bug...or, well, actually an error in the documentation. On the array extension DMZ says to add 'array' to the extensions list, but this gives me an error - the extension class is actually 'arrayutils', which when used works just fine it seems.
[eluser]OverZealous[/eluser]
[quote author="BrianDHall" date="1252469545"]On the array extension DMZ says to add 'array' to the extensions list, but this gives me an error - the extension class is actually 'arrayutils', which when used works just fine it seems.[/quote] Only in an outdated version. Anything 1.5.0 and newer re-named the extension to array due to a new way of handling classes. It's cleaner. The downloaded copy you have should have come with its own docs. If you want to stick with the older version, you probably should reference those, as the online ones are for the latest release. ;-) Don't forget to read the upgrade instructions when you upgrade, because there are often changes from version-to-version that may adversely affect your code!
[eluser]BrianDHall[/eluser]
Oh, I thought I did have the latest release, whoops Thankies, I'll upgrade now
[eluser]12vunion[/eluser]
Wow, that was a quick turn around on the array[index] feature. Thanks again for the awesome library.
[eluser]12vunion[/eluser]
Correct me if I'm wrong, but I think get_rules are bypassed when an object is called directly from another object. In this example, photo->path should be prefixed because of a get_rule Code: $gallery->set->where('is_public', true)->get(); EDIT: On closer inspection, this has something to do with $set->photo->path trying to call the first object.
[eluser]OverZealous[/eluser]
[quote author="12vunion" date="1252553043"]Correct me if I'm wrong, but I think get_rules are bypassed when an object is called directly from another object.[/quote] Yup, it looks like it only affects the main object. For now, you can do this: Code: $set->photo->all[0]->path; I think I need to consolidate the related and non-related queries, anyways, so I'll fix it eventually. :-) UPDATE: Fixed in the trunk. I went ahead and consolidated the three main get-style query sections (normal, validate->get(), and related get) into a single function that will be easier to maintain in the future.
[eluser]12vunion[/eluser]
Again, you're the man. Any chance of you sending me the update? I didn't see a link to your repo posted anywhere. |
Welcome Guest, Not a member yet? Register Sign In |