[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]wandschrank[/eluser]
Hello DMZ-Users, i have made a quick/small checkbox-multicolumn hack for the "htmlform"-extension. Code: $form_fields = array( 'checkbox_cols' is the new feature. The changes in the htmlforms.php are in the _checkbox function: Code: // renders one or more checkboxes or radio buttons Greetings
[eluser]Alface[/eluser]
Can anyone take a look on my unanswered question? it is here http://ellislab.com/forums/viewreply/695462/
[eluser]Wazzu[/eluser]
Delete several rows I want to delete all students wich are 17 years old. I can't get it with this simple code. It just deletes one by one, instead of deleting all rows. What's wrong? Code: //Set age
[eluser]OverZealous[/eluser]
Wazzu Delete only acts on the top-level item. Search the manual for delete_all - this is what you need.
[eluser]Wazzu[/eluser]
Ok, I see it clearly: http://www.overzealous.com/dmz/pages/deleteall.html Thanks very much
[eluser]Wazzu[/eluser]
Advanced Relationship Hi all. I'm not able to understand how advanced relationships work. I've read user guide and made tests, but I can't understand how field names are used. This is my sample case: - table users(id, name) - table quotes(id, client_id, worker_id) - user model and quote model One user (worker_id) can create a new quote for other user (client_id). 'worker_id' and 'client_id' are in fact ids from users table. How should I make relationships? This is what I've done: Code: class Quote extends DataMapper { Code: class User extends DataMapper { Is that right? And from my controller, how should I populate this? I want to get something like this: Code: <?php Please, help me understanding this relationships. Thanks all
[eluser]OverZealous[/eluser]
@Wazzu Please post in the new forum. DMZ 1.6 has been deprecated for a while now. You are more likely to get answers there.
[eluser]Wazzu[/eluser]
Thanks, Phil. I posted here because of the version I use. I'll post there anyway.
[eluser]7amza[/eluser]
sorry i posted it here the reply is here http://ellislab.com/forums/viewthread/14...80/#789462 |
Welcome Guest, Not a member yet? Register Sign In |