Re: Moving data from a controller to a view after doing some queries

2008-03-25 Thread jonknee
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

Re: Moving data from a controller to a view after doing some queries

2008-03-25 Thread George C
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

Re: Moving data from a controller to a view after doing some queries

2008-03-25 Thread Chris Hartjes
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()); >

Moving data from a controller to a view after doing some queries

2008-03-24 Thread George C
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