You could also vastly simplify that controller if you had a field for
first_name and a field for last_name. No crazy foreach() loops and
what not, your entire controller could simply be:
data){
$this->set('data', $this->Client-
>findAll(array('Client.first_name LIKE "%' . $this->dat
Thank you sir, you are a saint!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
On Mon, Mar 24, 2008 at 9:46 PM, George C <[EMAIL PROTECTED]> wrote:
>
> Looking at the index function that bake created for me, I see the
> cryptic:
>
> function index() {
> $this->Client->recursive = 0;
> $this->set('clients', $this->paginate());
>
Hello! It seems like my lack of knowledge of MVC is once again
holding me back. I'm attempting to develop some code that searches
for users in the database and shows ones who's first or last names
match. So, I have a function in my controller:
function findsomeone() {
i