Saturday, June 4, 2011

Re: Using CakePHP for the first time

Obviously, some of this response is useless to you, as you didn't give an address as he believes and the path you provided was from an error dump...  However, he is of the opinion that you're loading something in the library tree itself, which is clearly sort of correct.  Since (i'm guessing) you don't have a theme in your own tree, you're loading the theme from the library (the fallback choice).  Hopefully, you're not pointing at your cake tree directly.  Maybe take a moment to be sure you aren't (IE he's right about this being a problem if you are). 
I still suspect you have some sort of incorrectly defined (path) constant, even if it isn't one of the ones I thought it was.

M

On Sat, Jun 4, 2011 at 1:05 PM, kdubya <kenwinans@winanstech.com> wrote:
In the error message you gave, it looks like you entered the address
of the view file (home.ctp) directly - this is incorrect for an
application built with CakePHP. It should have been something like:
http://localhost/<name-of-application>/home

Note: there is no .ctp extension. CakePHP knows where to find the .ctp
file (if you have configured the app correctly).

It also looks like you tried to access the home.ctp in CakePHP core
path. This also is not correct. If you are modifying files under cake/
libs you are making your changes in the wrong place. All files you
modify should be under app/ e.g.
C:\Users\Public\public_html\<name-of-application>\app\views
\<controller-name>\home.ctp
(assuming that you Document_root in your Apache httpd.conf file is C:
\Users\Public\public_html\

Go back to the Book on the CakePHP site and read it from the
beginning:
http://book.cakephp.org/

Also, I highly recommend you follow the blog tutorial:
http://book.cakephp.org/#!/view/1528/Blog

Use the resources that have been provided to get off on the right
foot.

Good luck,
Ken

--
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

--
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: