I would recommend that the site where you get your "cakephp lesson" from should be this one http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html
Work through (not copy and paste) the blog tutorial as many times as it takes until you have at least a basic understanding. Your Posts controller should be named PostsController.php http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html Your initial post states that you were accessing the url ' localhost/cakeblog/index.php/posts/hello_world' and you were having some problems with that, as you should. Your stack trace shows '/tut_blog/Posts/hello_world'. It seems to me like things have been shuffled around and re-named a few times in an effort to make things work. Honestly, I would start fresh with the blog tutorial and actually read the book as you go along paying particular attention to important things like MVC principles, folder structure, and naming conventions. Rushing through things and copying/pasting code is only going to get you to where you are right now. My apologies for not being able to help more but I really do recommend going through the blog tutorial again. http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html On Wed, Apr 11, 2012 at 6:37 AM, INTERNET DATA CENTRE <[email protected]>wrote: > But the cakephp lesson where from i got this shows same file name and it > works good there. I have even tried with that file name also. > > > On Wed, Apr 11, 2012 at 4:05 PM, Ed Propsner <[email protected]> wrote: > >> The file should be named PostsController.php >> http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html >> >> >> On Wed, Apr 11, 2012 at 6:24 AM, INTERNET DATA CENTRE >> <[email protected]>wrote: >> >>> do you mean to say file name >>> file name Posts_controller >>> code >>> <php >>> class PostsController extends AppController { >>> var $name = 'Posts'; >>> function hello_world() { >>> } >>> >>> } >>> >>> >>> >>> On 4/11/12, CrotchFrog <[email protected]> wrote: >>> > Sorry, I just realized it was the PostsController and not the Post >>> Model >>> > that was not being found. You sure you have the PostsController.php and >>> > it's not misspelled or anything like that? >>> > >>> > On Wednesday, April 11, 2012 4:27:52 AM UTC-4, CrotchFrog wrote: >>> >> >>> >> No, there is no need to delete it. >>> >> Is "*Error: **PostsController* could not be found" the only error you >>> >> are getting? >>> >> Your default view loaded ok? >>> >> >>> >> On Wednesday, April 11, 2012 4:12:27 AM UTC-4, masoodi wrote: >>> >>> >>> >>> THanks for reply >>> >>> >>> >>> There is only one file in Model folder named empty .It does not >>> contain >>> >>> any text or code in it. Shall i delete it , >>> >>> >>> >>> On Wed, Apr 11, 2012 at 1:38 PM, CrotchFrog <[email protected]> >>> wrote: >>> >>> >>> >>>> Delete the contents of the Model folder. >>> >>>> >>> >>>> >>> >>>> On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote: >>> >>>>> >>> >>>>> There are three folders in it models persistant views which one to >>> >>>>> delete >>> >>>>> >>> >>>>> On Wed, Apr 11, 2012 at 10:59 AM, CrotchFrog >>> >>>>> <[email protected]>wrote: >>> >>>>> >>> >>>>>> Try to empty the cache and see if it helps. >>> >>>>>> /app/tmp/cache/ >>> >>>>>> >>> >>>>>> >>> >>>>>> On Sunday, April 8, 2012 8:02:47 AM UTC-4, masoodi wrote: >>> >>>>>> >>> >>>>>>> Dear friends , >>> >>>>>>> >>> >>>>>>> I am new to cake . I have installed it .Now after >>> installation >>> >>>>>>> >>> >>>>>>> what shall be our first action.i mean to say what have we to do >>> after >>> >>>>>>> >>> >>>>>>> installation.It shows me a blank screen when i try to see my >>> blog. >>> >>>>>>> My database name is cakeBlogs and table name Posts. what shall i >>> do >>> >>>>>>> now to design a website . >>> >>>>>>> >>> >>>>>>> Thanks with regards >>> >>>>>>> Masoodi >>> >>>>>>> >>> >>>>>> -- >>> >>>>>> Our newest site for the community: CakePHP Video Tutorials >>> >>>>>> http://tv.cakephp.org >>> >>>>>> Check out the new CakePHP Questions site http://ask.cakephp.organd >>> >>>>>> help others with their CakePHP related questions. >>> >>>>>> >>> >>>>>> >>> >>>>>> To unsubscribe from this group, send email to >>> >>>>>> cake-php+unsubscribe@**googlegroups.com< >>> cake-php%[email protected]>For >>> >>>>>> more options, visit this group at >>> >>>>>> http://groups.google.com/**group/cake-php< >>> http://groups.google.com/group/cake-php> >>> >>>>>> >>> >>>>> >>> >>>>> >>> >>>>> >>> >>>>> -- >>> >>>>> *Thanks >>> >>>>> Imtiyaz Nabi Masoodi >>> >>>>> Fast track Executive Affiliate >>> >>>>> Booster Club Member* >>> >>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 * >>> >>>>> >>> >>>>> -- >>> >>>> 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 >>> >>>> [email protected] For more options, visit this >>> >>>> group at http://groups.google.com/group/cake-php >>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> *Thanks >>> >>> Imtiyaz Nabi Masoodi >>> >>> Fast track Executive Affiliate >>> >>> Booster Club Member* >>> >>> * ** http://www.earnonlineparttimejobs.com/?id=232501 * >>> >>> >>> >>> >>> > >>> > -- >>> > 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 >>> > [email protected] For more options, visit this >>> group at >>> > http://groups.google.com/group/cake-php >>> > >>> >>> >>> -- >>> *Thanks >>> Imtiyaz Nabi Masoodi >>> Fast track Executive Affiliate >>> Booster Club Member* >>> * ** http://www.earnonlineparttimejobs.com/?id=232501 * >>> >>> -- >>> 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 >>> [email protected] 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 >> [email protected] For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > > > -- > *Thanks > Imtiyaz Nabi Masoodi > Fast track Executive Affiliate > Booster Club Member* > * ** http://www.earnonlineparttimejobs.com/?id=232501 * > > -- > 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 > [email protected] 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
