I am very new to cakephp.
i've been using cake for two hours now so far and i ran into a slight problem
this has probably been mentioned before i noticed a previous post regarding
$this->modelClass.

i read the tutorial on pagination: http://wiki.cakephp.org/tutorials:pagination

my situation: table called subscribers, controller =>SubscribersController
my problem:
#$this->order = $this->modelClass.'.'.$this->sortBy.'
'.strtoupper($this->direction);
modelClass returns subscriber, which would be correct because
get_class would return subscriber and it breaks my query because order
becomes subscriber.created DESC
instead of subscribers.created DESC

my soln was to hardcode
$this->order = 'subscribers.'.$this->sortBy.' '.strtoupper($this->direction);

but i am assuming i missed something because hardcoding isnt a
solution in the programming world.

Just curious about what i did wrong?

even just a link to url or someone telling me where to go search would help.

Thanks in advance guys

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to