On Tue, Aug 31, 2010 at 10:30 PM, Jerry <[email protected]> wrote: > Hi guys > I am a cakephp newbie and I had trouble to view the files under the > view folder through browser.
The only files you can request directly are those under app/webroot. Consider the view files as portions of a template. They're not supposed to be accessible through a browser. > I used cakephp console to bake model, controller and views. (ex: > Invoices_controller.php for controller, invoice.php for model and a > invoices folders under views folder). According to the tutorial I > read, I can access the invoice view by typing > http://localhost/myProject/invoices > > However, the browser showed the file is not found......I have no idea > how to solve this problem...Any help would be greatly appreciated. > Thanks Open app/config/core.php and set 'debug' to 2. When it's set to 0 (production mode), Cake emits a 404 when an error occurs. Set it to 2 and you'll probably see some error msg. This is probably the most common problem encountered. I think the documentation should include a note about this, in 20pt type, on every page, because it's a huge source of confusion. 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
