Cakephp Blog Tutorial Part 12 - Baking Comments
Uploader Comments (andrewperk)
Video Responses
All Comments (15)
-
so I was having trouble "CRUDing" comments, most likely due to a mistake with me running through the bake process... anyways, I ran "cake bake all" and it works flawlessly... is there a downside to this? is it a bad practice to do this?
-
Hey, I've followed the entire tutorial, but after baking, tut_blog2 didn't work until I've moved all the files & folders into /app folder, which I've created and the rest of the folders & files remained were copied into /tut_blog2 folder.
In the video I see that there is no /app folder as you said.
So, this works properly on my side if all the baked files are moved in the /app folder or the tut_blog2 doesn't work at all
-
@andrewperk Thanks so much for the reply... I'll try that later... I'll get back to you regarding the results later... Thanks man...
-
wonderful work
-
Thanks Andrew, another great tutorial, It is because of your videos that I got started with Cakephp. But I have a request if you are so inclined to to indulge me. Would you post instructions on how to remove the drop-down feature on the comments add view? I can foresee on an actual working blog where you have HUNDREDS of posts if not thousands having to find the post you want to comment on from a drop-down list to be a bit tiresome.
Anyway, Good job and thanks again!
-
now i know how to bake, thanks andrew!
Yeah I just want to say your really cool again Andrew thanks for posting these Ever thought of doing one for Code Igniter? your cakephp tuts are phenomenal
iputahitonyou 7 months ago
@iputahitonyou You're welcome. I have thought of doing Codeigniter tutorials but CI is covered pretty well already. They have great video tutorials on the CI website, Nettuts has done a great screencast series on CI, as well as many video tutorials on Youtube. I plan on making more Cake tutorials. I'm also thinking of doing some Ruby on Rails ones from a windows developer perspective, mainly on getting things to work.
andrewperk 7 months ago
Hi Andrew, I am a total newbie to cakephp, mvc, and frameworks. How am I gonna add some comments to my post the same way as youtube does. I mean the post and comment share the same page. Am I gonna scaffold the comments too???
PhantomHitman07 9 months ago
@PhantomHitman07 You could bake the comments out and then modify things. I'll give you a few tips. You would take the add view code for comments and place it on the view page for a single post. Change the comments add action to redirect to the post that was commented on. To display the comments for that post on the posts view page you should be able to access the posts related comments via the $post['Comment'] array passed to your view. Try some of that out and see how it works.
andrewperk 9 months ago
@ kwixson and @jhonnydan
I'm glad you guys found it helpful.
andrewperk 1 year ago