Hey guys,
I would be surprised to find a solution to this, but here it goes.
basically what I want to do is, get a list result from find while
still being able to translate the resulting data with : __('word')
Didn't catch that now did you? I don't blame you.. here's some code
to clear it up:
In my Holiday Controller:
----------------------------------
// Simple, just populating an array with holiday names then sending it
to my view //
$oneHolidays = $this->OneIvrHoliday->OneHoliday->find('list');
$this->set(compact('oneHolidays'));
----------------------------------
In my add.ctp
----------------------------------
//I'm populating my dropdown list with the array I got from my
controller, but I my Internationalization to translate them
echo $form->select('holiday_id', $oneHolidays, null, null, false);
----------------------------------
Is this even possible?
Does anyone have any better advice?
I'm pretty sure I'm just complicating things
Thanks in advance for any help provided
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---