Hi Group,
this is my first post here, so here's a short introduction: As of
late, I have gotten into web programming again after a long break -
during which I'm afraid I forgot a lot of what I once knew. Anyway,
I've started to write a little application for personal use and after
a little playing around with Cakephp 1.1, which I found wonderful
eventually decided to be brave and use 1.2. The lack of documentation
has given me some headache but for the most part that has been
outweighed by the great features, such as paginate() for example.
I'm trying to define an alias for a table column in the $fields var
for the paginate function but it doesn't seem to work out. I'm doing
this:
$this->paginate['fields'] = array('Student.id', 'Student.vorname',
'Student.nachname', ... 'Group.name AS Gruppe');
This is what cakephp does with the last bit:
`Group`.`name AS Gruppe`
How can I use 'AS' with paginate()?
Greets and thanks in advance.
Axl
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---