$this->paginate['fields'][] = "Model.first_name as example";

OR:

array_push($this->paginate['fields'], 'Model.first_name as example');

On Wed, Oct 7, 2009 at 7:00 PM, Kyle Decot <kdec...@gmail.com> wrote:
>
> I want to append a dynamically created field to my paginated results
> but when I do
>
> $this->paginate['fields'] = "Model.first_name as example";
>
> It only pulls in that field when what I really want is all the fields
> it would normally get, plus this one. Is there a way to do this? Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to