I. There should not be a case where you have to load so many models in a
single controller. As all objects in OOP, it is good that controllers be
delegated *only one specific task*, not 2, not 3 and not 25...
Are you sure that there is no way that you can extract so functionality
and move it t
Looking at this you have the User model and for example UserStatusPost
model, I would assume that the user_status_posts table has a field
'user_id'.
If that's the case, why would you not use that model by calling
$this->User->UserStatusPost? I guess the same would apply to most of the
other models
That is A LOT of models to load and there is almost certainly a better way of
cracking your nut. What are you trying to achieve?
On 30 Jun 2014, at 08:33, 'Chris' via CakePHP wrote:
> hi guys,.. I'm using to many cross tables in a controller,... and getting
> memory error not enough bites,...
hi guys,.. I'm using to many cross tables in a controller,... and getting
memory error not enough bites,...
var $uses = array('User', 'Friend', 'FriendRequest',
'UserInvisiblePoint', 'UserStatusPost', 'StatusLike', 'StatusNotification',
'ZodiacType', 'Point', 'ProfileComment', 'Gift', 'Guest