Hi,
i am using Cakephp 1.2.0.6311 beta with mssql.
Im trying to use Alias-Names in the findAll()-Method. (eg in SQL:
SELECT name AS text from table). Everytime setting up the field
parameter like array('name AS text') the returned Array-Structure is
unusable. A value would be accessable as:
$data[0][Model][0][Model][0]['text'] instead of $data[0][Model][text]
Fields without an Alias have their right place.
Is there any way to work with aliases and set up the Array structure
correctly? This would be very helpful to encode some json_data and
maybe also for other things. Maybe the defnition in the field array is
wrong. But theres no hint where aliases can be defined on other
points. Is it working with mysql? Cant test it here in Company.
Thanks for your help
Fraed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---