Monday, November 28, 2011

AppController loading issue

I have an AppController.php located on /app/Controller and somehow the
inherited controllers are not loading it. Instead, it loads the one
defined on /lib/Cake/Controller. That's how I am testing:

- Create a new controller such as:

<?php
App::uses('AppController', 'Controller');
class ReviewsController extends AppController {
....

- Create /app/Controller/AppController.php with:
echo 'App';
and
/lib/Cake/Controller/AppController.php with:
echo 'Lib';

Whenever I fire up the reviews controller, I only see the Lib message.

Any ideas? I was able to accomplish that just fine in older versions
(1.x)

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: