1 answer
0 votes
Form submission / data retrieval
Hello,
I'm trying to figure out how to retrieve data collected in a form. I believe there are two ways:
1) append form values to the URL with controller and action and from that extract the information
2) retrieve the data from a session object (or...
1 answer
0 votes
Complex find query
I have been scratching my head on how to do this for a few days now. Lets say the user enters a date in a form and submits it.. the date is 10/2/10 for example. The database is setup to have a 'checkin' and 'checkout' date fields already...
1 answer
0 votes
Calculated Values
Good Evening
So...I know this quite a basic question but I can't workout how best to write my controllers action (that is if the controller is the best place). To update a value in a corresponding model.
I have members who have corresponding...
1 answer
0 votes
Whats wrong with my validation?!?!
I'm currently working through the Book CakePHP From Novice to Professional and going along with the source code and I'nm having an issue with the validation area.
I'm not sure if there were changed in validation between 1.2 and 1.3 that would...
0 answers
0 votes
Hidden fields in view?
My scenario is as follows:
action 'search':
- returns view 'search' with a form where you can input an address
- when posted to, the action performs a geocode and returns the 'search' view again, which now (because a $serachResults var is set) shows...
0 answers
0 votes
why on earth (or maybe bakery) can't I use eval along with view helpers and elements?
<----code----
<?php
eval(<<<EOD
echo $this->Html->link(__('START UP COMPANY', true), array('controller' => 'pages','action' =>... 1 answer
0 votes
Behavior settings ¿overwritten? between models
I'm using a self made sluggable behavior that, well, generates slugs. I have attached it to Article and Tag models (Article HABTM Tag).
When saving an article, in its beforeValidate method tags are saved/fetched to build a Tag array and perform...






