> On May 1, 9:36 pm, Jamie <jamie....@gmail.com> wrote:
>
> > I read the whole thread. I'm not sure how that changes my post.
>
> > I was just explaining to the original poster why subfolders didn't
> > automatically work
>
> I would suggest you try and don't assume.
>
> > , why there's no easy way to make them work, and why
> > they work in other frameworks/code designs. Please explain to me the
> > problem you have with my post and maybe we can do something
> > constructive.
>
> > Seriously, what is with you throwing out these sarcastic comments
> > lately? I can pick out more than a few examples over the past little
> > while. Between you and Miles this group is getting a bit hostile.
>
> I'm not being sarcastic - I'm giving you the opportunity to correct
> your mistake. If you /still/ can't see it - try exactly what you've
> said doesn't work before replying.
Fine. Thanks for the opportunity. Glad you're looking out for me. I
made this file:
controllers/test/users.php
And put in this class:
Controllers_Test_Users
And then tried this in AppController::beforeRender:
$test = new Controllers_Test_Users();
And here's what happened:
Fatal error: Class 'Controllers_Test_Users' not found in /Applications/
MAMP/trunk_app/app/app_controller.php on line 5
What a surprise. Oh wait, it's not a surprise.
You can make that naming convention work by adding a simple __autoload
function, just like you'd do in the Zend Framework, but that breaks
most of the Cake class loading since they don't follow the
convention... which was my original point.
I hope what you're pointing out that I'm missing is really obvious,
because I don't see it. Maybe you should just spell it out?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment