On Wed, Nov 17, 2010 at 3:16 PM, Xavier <[email protected]> wrote: > Hi, > I just started working with Cakephp. When I call http://localhost/Items > I get the default page with an Error as page's title and no error or > warning. Any Ideas or pointers? > > > APP\controllers\items_controller.php > <?php > > class ItemsController extends AppController { > var $name = 'Items'; > > function index() { > > echo "we enter the controller"; > $this->pageTitle = 'Novatem'; > $this->layout = 'default'; > } > > }
Do you have debug set to > 0? Also, you shouldn't echo from inside a controller method unless that's the only thing you're sending to the client (eg an AJAX response). 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 [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
