I have no experience in this, but a custom data source might be the
way to go.

On Sep 15, 4:53 pm, iFeghali <igor.fegh...@gmail.com> wrote:
> Hello Brian,
>
> Thank you for your reply. Yes, that could be an alternative but it
> would require lots and lots of changes. I am not talking about only
> one single "select", but all the places in the application that refers
> to a "User" (there are many of them). Anyway I am curious to know
> whether I can foo "find('list')" to gather its values from the final
> array (returned by "afterFind") instead of the database.
>
> Best,
> ~IF.
>
> On Sep 15, 9:29 am, brian <bally.z...@gmail.com> wrote:
>
> > You could just create the select list yourself, using a loop, rather
> > than have FormHelper do it. Just make sure the name attribute is as
> > Cake expects it to be.
>
> > On Tue, Sep 15, 2009 at 8:00 AM, iFeghali <igor.fegh...@gmail.com> wrote:
>
> > > Hello All,
>
> > > I just got stuck with a little issue that I would appreciate any help.
> > > I have got a Model that is partially stored in a database, and the
> > > other attributes are gathered in the "afterFind" time. For instance,
> > > given a model "User" the username is in the database but all the user
> > > data (full name and etc.) are on NIS. So when I query the user
> > > database I got only the usernames but when afterFind is triggered it
> > > loads the data off NIS for all of them.
>
> > > Given that I want to keep things that way (that is, what is in NIS
> > > should be kept in NIS only) how would I make the displayField of User
> > > point to a "field" that is generated only in afterFind (like full
> > > name) ?
>
> > > Best,
> > > ~IF.
>
>
--~--~---------~--~----~------------~-------~--~----~
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