DMZ 1.7.1 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
@modano Are you talking about the HTMLForm extension? I no longer support that extension.
[eluser]modano[/eluser]
no not at all, have a look at my initial post # 482. It didnt work on a big form i am working on, so i made a new form that only had that one textfield, and yet it gave me the error "“The City relationship is required.”" /modano
[eluser]WanWizard[/eluser]
@phil, The function autoload checks hardcoded for models prefixed with CI_, EE_ or MY_. This check fails to work if you use a custom subclass prefix in your config. I propose changing it to Code: $CI =& get_instance();
[eluser]gyo[/eluser]
Hi, I have a "conceptual" issue understanding DataMapper and login handling. It makes sense to me that the login function is inside the 'User' model, but why should DMZ handle the login check automatically through $this->validate->get()? I already have an Auth library which handles logins, I'd rather make an alias to it inside the User model, but still keeping the validation. I hope I made my point clear enough! ![]() Thanks everybody.
[eluser]Wazzu[/eluser]
Order by foreing table field Hi all. I have this two tables: - products (id, name, category_id) - categories (id, name) So I make a list of products this way: Code: $p = new Product(); That way, my list gets ordered by category ID, but not by category name. How should I do it?
[eluser]gyo[/eluser]
Quick guess... could it be that you didn't use order_by for categories? $product->category->order_by('name')->get();
[eluser]Wazzu[/eluser]
[quote author="gyo / suashi" date="1280164044"]$product->category->order_by('name')->get();[/quote] Shouldn't I populate product categories first?
[eluser]gyo[/eluser]
Good to know! ![]() Btw... are you using DMZ for handling logins too?
[eluser]BRK Network[/eluser]
[quote author="gyo / suashi" date="1280168344"]Good to know! ![]() Btw... are you using DMZ for handling logins too?[/quote] Yes, wondering the same thing. I'm unsure about using an Authentication or simple login library along with DMZ - considering the power of DMZ is providing to us. Any real life experiences and/or best practices on authentication, session management and user management with DMZ? Thanks... |
Welcome Guest, Not a member yet? Register Sign In |