links, you can specify 'admin' => 0, 'manager' => 0 so that, no matter
who is logged in, the same method is used.
Alternatively, you can simply fetch the list along with whatever other
data you're dealing with (ie. through model assoc.) and create a
regular select element. Then use JS to turn the list into a local data
set, create a regular text input and use that for your suggest widget.
The jquery.autocomplete plugin can use local data, for example.
http://docs.jquery.com/Plugins/Autocomplete
On Jan 23, 10:11 pm, "Dave" <make.cake.b...@gmail.com> wrote:
> How would you build a function to get a country list for a form for auto
> suggest? Where would you put it? What would you call it?
>
> Basically the js calls the url / function but not sure where to put it.
> Ideally in app_controller so it can be called from anywhere but it has to be
> accessed via different admin routing also.
>
> I have my logged in user so they have a routing prefix manager so i need a
> manager_countries function?
>
> Any help would be great.
>
> Thanks
>
> Dave
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment