All too often guilty of the same myself :o)
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
hi there, I have some problems doing my first cake and adding some
validation methods on my own.
It would be great if someone in here might give me a good start and
help me to do my first steps ...
I am using 2 models linked with each other
lodgings : id, roomnumber, amountofbeds, ...
The data is accessible via $this-data. If you debug it you'll see the shape of
the array so you check values within it (something like
$this-data['Model']['field']. Your custom validation function should return
either true or false. If it returns false, your validation error should be set
for
Hi Jeremy,
thank you, might I ask if I got the point:
.. (something like $this-data['Model']['field']. ..
my database table is namedbooking_positions
my php file fot the model named booking_position.php
so I have to use $this-data['booking_positions']['amountofadult'] ?
TNX
Michael
On
Probably - it sounds right. Debug $this-data and check.
Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573
On 23 Feb 2010, at 08:47, mivogt-LU wrote:
Hi Jeremy,
thank you, might I ask if I got the point:
.. (something like
Great it works. Thank u so much, Jeremy!!
It took me hours for try and error with no result - now the solution
is easy and clear and logical :)
Think I 'll never forget the mistake and the right way.
Thank u again.
Michael
On 23 Feb., 09:54, Jeremy Burns jeremybu...@me.com wrote:
Probably - it
Your data should have been available at:
$this-data['BookingPosition']['amountofadult']
not
$this-data['booking_positions']['amountofadult']
Just clarifying this in case other newbies read this post and get
confused.
Paul.
Check out the new CakePHP Questions site http://cakeqs.org and help
Good spot Paul - I replied too quickly!
Jeremy Burns
jeremybu...@me.com
On 23 Feb 2010, at 09:21, WebbedIT wrote:
Your data should have been available at:
$this-data['BookingPosition']['amountofadult']
not
$this-data['booking_positions']['amountofadult']
Just clarifying this in case