hello @ all, I am just starting up my very first project with cakephp (current 1.3ß on a new xampp 1.7.3 installation). Setting up db and models worked fine, also baking the main things was quiet ok and worked well.
Now I want to add my extras to the application and sadly I have no idea how to use cake in the correct way to get what I want - so I might need some help in here :) I have a model called booking_positions, refering to a table in database. It has fields like id, lodging_id (refers to lodging model containing number of beds in a room) and 3 fields to geth the number of adult, childs or kids to be in the room. To avoid overbooking I would like to do a check before saving a booking to the db. This for, my idea was, I want to add an IF .. ELSE .. into the controller to check if this->numer_adults + number_kids + number_childs > booking_position- >lodging.id->numberOfbeds Sadly this only produces errors. Please could someone tell me how to access the data posted from the view to the controller inside the controller to do a check for the passed informations? Thanks in advance. CU Michael Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
