Re: Cake3 - Blog Tutorial Part 3 error founds
Ohh, Thanks, But there was not any info to create the table first. On Fri, Mar 27, 2015 at 2:01 PM, José Lorenzo jose@gmail.com wrote: You need to create the categories table first. On Friday, March 27, 2015 at 5:34:46 AM UTC+1, Bayezid Alam wrote: Hi, I am getting below error while executing *bin/cake bake model Categories* Note: i followed all the above things from http://book.cakephp.org/ 3.0/en/tutorials-and-examples/blog/part-three.html ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories Welcome to CakePHP v3.0.0 Console --- App : src Path: /var/www/html/cake3blog/src/ --- One moment while associations are detected. Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist in [/var/www/html/cake3blog/ vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 130] 2015-03-27 04:24:32 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist Stack Trace: #0 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ Database/Schema/Collection.php(96): Cake\Database\Schema\Collection-_reflect('Column', 'categories', Array, Object(Cake\Database\Schema\Table)) #1 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(65): Cake\Database\Schema\Collection-describe('categories', Array) #2 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(422): Cake\Database\Schema\CachedCollection-describe('categories') #3 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(498): Cake\ORM\Table-schema() #4 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(192): Cake\ORM\Table-primaryKey() #5 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(109): Bake\Shell\Task\ModelTask-getAssociations(Object(Cake\ORM\Table)) #6 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(95): Bake\Shell\Task\ModelTask-bake('Categories') #7 [internal function]: Bake\Shell\Task\ModelTask-main('Categories') #8 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(387): call_user_func_array(Array, Array) #9 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(382): Cake\Console\Shell-runCommand(Array, false) #10 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ Console/ShellDispatcher.php(200): Cake\Console\Shell-runCommand(Array, true) #11 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ Console/ShellDispatcher.php(171): Cake\Console\ShellDispatcher- _dispatch() #12 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ Console/ShellDispatcher.php(122): Cake\Console\ShellDispatcher- dispatch() #13 /var/www/html/cake3blog/bin/cake.php(20): Cake\Console\ShellDispatcher::run(Array) #14 {main} -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cake3 - Blog Tutorial Part 3 error founds
You need to create the categories table first. On Friday, March 27, 2015 at 5:34:46 AM UTC+1, Bayezid Alam wrote: Hi, I am getting below error while executing *bin/cake bake model Categories* Note: i followed all the above things from http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-three.html ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories Welcome to CakePHP v3.0.0 Console --- App : src Path: /var/www/html/cake3blog/src/ --- One moment while associations are detected. Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist in [/var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 130] 2015-03-27 04:24:32 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist Stack Trace: #0 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(96): Cake\Database\Schema\Collection-_reflect('Column', 'categories', Array, Object(Cake\Database\Schema\Table)) #1 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(65): Cake\Database\Schema\Collection-describe('categories', Array) #2 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(422): Cake\Database\Schema\CachedCollection-describe('categories') #3 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(498): Cake\ORM\Table-schema() #4 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(192): Cake\ORM\Table-primaryKey() #5 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(109): Bake\Shell\Task\ModelTask-getAssociations(Object(Cake\ORM\Table)) #6 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(95): Bake\Shell\Task\ModelTask-bake('Categories') #7 [internal function]: Bake\Shell\Task\ModelTask-main('Categories') #8 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(387): call_user_func_array(Array, Array) #9 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(382): Cake\Console\Shell-runCommand(Array, false) #10 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(200): Cake\Console\Shell-runCommand(Array, true) #11 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(171): Cake\Console\ShellDispatcher-_dispatch() #12 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(122): Cake\Console\ShellDispatcher-dispatch() #13 /var/www/html/cake3blog/bin/cake.php(20): Cake\Console\ShellDispatcher::run(Array) #14 {main} -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Cake3 - Blog Tutorial Part 3 error founds
Hi, I am getting below error while executing *bin/cake bake model Categories* Note: i followed all the above things from http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-three.html ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories Welcome to CakePHP v3.0.0 Console --- App : src Path: /var/www/html/cake3blog/src/ --- One moment while associations are detected. Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist in [/var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 130] 2015-03-27 04:24:32 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist Stack Trace: #0 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(96): Cake\Database\Schema\Collection-_reflect('Column', 'categories', Array, Object(Cake\Database\Schema\Table)) #1 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(65): Cake\Database\Schema\Collection-describe('categories', Array) #2 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(422): Cake\Database\Schema\CachedCollection-describe('categories') #3 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(498): Cake\ORM\Table-schema() #4 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(192): Cake\ORM\Table-primaryKey() #5 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(109): Bake\Shell\Task\ModelTask-getAssociations(Object(Cake\ORM\Table)) #6 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(95): Bake\Shell\Task\ModelTask-bake('Categories') #7 [internal function]: Bake\Shell\Task\ModelTask-main('Categories') #8 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(387): call_user_func_array(Array, Array) #9 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(382): Cake\Console\Shell-runCommand(Array, false) #10 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(200): Cake\Console\Shell-runCommand(Array, true) #11 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(171): Cake\Console\ShellDispatcher-_dispatch() #12 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(122): Cake\Console\ShellDispatcher-dispatch() #13 /var/www/html/cake3blog/bin/cake.php(20): Cake\Console\ShellDispatcher::run(Array) #14 {main} -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
I highly recommend you to become familiar with basic php http://php.net/manual/en/tutorial.php, http://php.net/manual/en/ and object oriented programming (OOP) in php http://php.net/manual/en/language.oop5.php first. Sure you can learn php and OOP using CakePHP but this will be a very *hard* way. CakePHP makes use of OOP and some so called design patterns like MVC. http://en.wikipedia.org/wiki/Software_design_pattern On Monday, December 1, 2014 4:05:11 AM UTC+1, Lorne Dudley wrote: Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/ en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hello Matt ! I found an excellent site with good working examples at code of a ninja https://www.codeofaninja.com/2012/04/cakephp-2x-crud-tutorial.html The complete source for the application was included with a well described tutorial. I was able to get the application to a fully executable state after one hours work ! I would recommend this to any beginner who wants to see a running example. Regards Lorne On Sunday, November 30, 2014 10:42:57 PM UTC-5, mbingham wrote: Ah! Well in that case, please allow me to suggest *not* CakePHP. For the moment. Do something well-structured and bite-sized like the php course on http://www.codecademy.com/ -- It's free. Then do it once more (because repetition aids learning -- corny but true). *then* go shopping for cakePHP tutorials. Learn a little PHP first (and maybe do the javascript course too!). You'll be glad you did! On Sun, Nov 30, 2014 at 10:05 PM, Lorne Dudley dud...@queensu.ca javascript: wrote: Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en /tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com javascript:. To post to this group, send email to cake...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com
Re: blog tutorial errors
Hello Florian ! Thanks for the references. Regards Lorne On Monday, December 1, 2014 3:04:06 AM UTC-5, Florian Krämer wrote: I highly recommend you to become familiar with basic php http://php.net/manual/en/tutorial.php, http://php.net/manual/en/ and object oriented programming (OOP) in php http://php.net/manual/en/language.oop5.php first. Sure you can learn php and OOP using CakePHP but this will be a very *hard* way. CakePHP makes use of OOP and some so called design patterns like MVC. http://en.wikipedia.org/wiki/Software_design_pattern On Monday, December 1, 2014 4:05:11 AM UTC+1, Lorne Dudley wrote: Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/ en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hi again Matt ! Well I signed up to codecademy and I am not impressed. First, the site references fonts.googleapis.com as part of it's rendering process. The delay for that part is from 45 seconds to one minute. I tried the Build a Professional Website course. Occassional external references to www.google-analytics.com took up to 45 seconds to resolve. So it is not exactly user friendly. But thank you for the effort. I think I will try more from the code of a ninja site. The reference provided by Florian in another reply will be helpful, although I do have a basic understanding of php and javascript. Up to this point in time my website efforts have used raw html and javascript. I am trying to upgrade my skills to the MVC framework level. Regards Lorne On Sunday, November 30, 2014 10:42:57 PM UTC-5, mbingham wrote: Ah! Well in that case, please allow me to suggest *not* CakePHP. For the moment. Do something well-structured and bite-sized like the php course on http://www.codecademy.com/ -- It's free. Then do it once more (because repetition aids learning -- corny but true). *then* go shopping for cakePHP tutorials. Learn a little PHP first (and maybe do the javascript course too!). You'll be glad you did! On Sun, Nov 30, 2014 at 10:05 PM, Lorne Dudley dud...@queensu.ca javascript: wrote: Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en /tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe
Re: blog tutorial errors
Hello John ! Thanks for responding. Arrg ! I just typed in a lengthy reply and it appears to have been lost. So ... repeating (and saving eleswhere), I have made some progress with part one of the tutorial, although I am not happy with some of the flow between screens. In one case I had to back arrow back to a reasonable location rather that the default given. I am currently working to complete the authorization code in part two of the tutorial. I think my major problem is properly interpreting the tutorial and avoiding typos. For example, some of the script neglected to mention that it should be enclosed with ?php tags. It sure would be nice if their was a download of the complete code available. That is what I was hoping for on my first post. I will continue working on part two and when that is completed I will be able to properly document my problems. Regards Lorne On Thursday, November 27, 2014 2:52:06 PM UTC-5, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dudl...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/ en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hi John ! I have the blog tutorial completed so that no errors appear. I am not happy with the way the control passes (or does not pass) between various screens. If you are interested in looking at the code and checking the way the application works I can give you a link to a public repository, There is some sql database setup required that is documented in the installation notes at the repository. Regards Lorne On Thursday, November 27, 2014 2:52:06 PM UTC-5, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca javascript: wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/ en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com javascript:. To post to this group, send email to cake...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Ah! Well in that case, please allow me to suggest *not* CakePHP. For the moment. Do something well-structured and bite-sized like the php course on http://www.codecademy.com/ -- It's free. Then do it once more (because repetition aids learning -- corny but true). *then* go shopping for cakePHP tutorials. Learn a little PHP first (and maybe do the javascript course too!). You'll be glad you did! On Sun, Nov 30, 2014 at 10:05 PM, Lorne Dudley dudl...@queensu.ca wrote: Hello Matt Thanks for the suggestion. Can you give me a link to something simpler ? I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background. As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works. Regards Lorne On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote: Hello Lorne, Might I suggest working on something that is simpler for the moment? Something that doesn't require both core app logic *and* auth code. Back off. Find something that isn't so meaty and ease into it. Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it. Good luck! Matt On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley dud...@queensu.ca wrote: Hello John ! Thanks for responding. My major problem seems to be interpreting the tutorial properly and not making typo errors. The tutorial neglected to mention that ?php tags should enclose some of the samples. I have made some progress since yesterday but still have not got the authorization stuff completely coded. I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work. I will keep working at this and perhaps post later if I encounter more problems. I think there might be some design problems in part one of the tutorial on how the flow between various screens works but I will hold off detailing that problem until I get the authorization part completed. A download of the completed working code sure would have been nice ! Regards Lorne On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote: Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en /tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: blog tutorial errors
Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief? If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
blog tutorial errors
Hello ! I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial. The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected. Does anyone have a properly working example who would be willing to send me copies of the following files ? /app/Config/routes.php /app/view/Posts/edit.ctp /app/view/Posts/add.ctp /app/view/Posts/index.ctp /app/view/Posts/view.ctp /app/Controller-PostsController.php /app/Model/Post.php Regards Lorne Dudley Kingston, Ontario -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Cakephp blog tutorial error
Hi there, I followed this tutorial, everything is working fine apart from the edit method when click the edit link it gives following warning message. I am new to cakephp and php. *Warning* (2): strtolower() expects parameter 1 to be string, array given [*CORE/Cake/Network/CakeRequest.php*, line *471*] Code Context $type = array( (int) 0 = 'post', (int) 1 = 'put' ) $this = object(CakeRequest) { params = array( 'plugin' = null, 'controller' = 'posts', 'action' = 'edit', 'named' = array([maximum depth reached]), 'pass' = array( [maximum depth reached] ) ) data = array() query = array() url = 'posts/edit/2' base = '/cake_2_0' webroot = '/cake_2_0/' here = '/cake_2_0/posts/edit/2' } strtolower - [internal], line ?? CakeRequest::is() - CORE/Cake/Network/CakeRequest.php, line 471 PostsController::edit() - APP/Controller/PostsController.php, line 48 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161 [main] - APP/webroot/index.php, line 92 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
noobie problem with the cake blog tutorial
Hi guys, Setup WAMP on my win8 laptop. Installed cake seemed to go OK. Notes on my blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-installation.html Tried the blog tutorial as detailed in http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html Have listed step by step what I did on my blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-blog-tutorial.html The jist is From http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html At this point, you should be able to point your browser to http://www.example.com/posts/index. You should see your view, correctly formatted with the title and table listing of the posts. So I try http://localhost/cake_2_0/posts/index.and get a page full of errors (See picture below.) Missing Controller PostsController could not be found. Error: Create the class PostsController below in file app\Controller\PostsController.php and I have that already in place (See picture below) Suggestions and assistance welcome. https://lh4.googleusercontent.com/-9S23w7UqnJs/UkzK_8v4-6I/CjI/ujsb-P0dbCs/s1600/ScreenHunter_19+Oct.+03+11.39.jpghttps://lh3.googleusercontent.com/-8OFYyFloLC0/UkyyZ2ATCPI/Cio/pt7d5ABVg4A/s1600/ScreenHunter_17%2BOct.%2B03%2B09.52.jpg -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
noobie- help with cake blog tutorial - Error PostsController could not be found
I am running WAMP server on my windows 8 laptop. I have cake installed and the test screen shows up as OK. There is more detail on that on my personal blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-installation.html I am trying to follow the blog tutorial from the cake web site here: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html The problem I get is that when I try http://localhost/cake_2_0/posts/index I get and get a page full of errors (see below) Error: PostsController could not be found. Error: Create the class PostsController below in file: app\controller\PostsController.php I believe that I have followed the tutorial accurately. Again I have documented it step by step on my blog. Here: http://frankstech.blogspot.com.au/2013/10/cakephp-blog-tutorial.html Any suggestions on what I can do to track this issue down. Thanks in advance. Frank -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: noobie- help with cake blog tutorial - Error PostsController could not be found
You seem to miss php tags in your controller...How comfortable are you with Php On Fri, Oct 4, 2013 at 3:19 AM, Frank Thomson frankt2...@gmail.com wrote: I am running WAMP server on my windows 8 laptop. I have cake installed and the test screen shows up as OK. There is more detail on that on my personal blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-installation.html I am trying to follow the blog tutorial from the cake web site here: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html The problem I get is that when I try http://localhost/cake_2_0/posts/index I get and get a page full of errors (see below) Error: PostsController could not be found. Error: Create the class PostsController below in file: app\controller\PostsController.php I believe that I have followed the tutorial accurately. Again I have documented it step by step on my blog. Here: http://frankstech.blogspot.com.au/2013/10/cakephp-blog-tutorial.html Any suggestions on what I can do to track this issue down. Thanks in advance. Frank -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: noobie problem with the cake blog tutorial
Repeated Post : missing php tags in controller On Thu, Oct 3, 2013 at 7:10 AM, Frank Thomson frankt2...@gmail.com wrote: Hi guys, Setup WAMP on my win8 laptop. Installed cake seemed to go OK. Notes on my blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-installation.html Tried the blog tutorial as detailed in http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html Have listed step by step what I did on my blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-blog-tutorial.html The jist is From http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html At this point, you should be able to point your browser to http://www.example.com/posts/index. You should see your view, correctly formatted with the title and table listing of the posts. So I try http://localhost/cake_2_0/posts/index.and get a page full of errors (See picture below.) Missing Controller PostsController could not be found. Error: Create the class PostsController below in file app\Controller\PostsController.php and I have that already in place (See picture below) Suggestions and assistance welcome. https://lh4.googleusercontent.com/-9S23w7UqnJs/UkzK_8v4-6I/CjI/ujsb-P0dbCs/s1600/ScreenHunter_19+Oct.+03+11.39.jpghttps://lh3.googleusercontent.com/-8OFYyFloLC0/UkyyZ2ATCPI/Cio/pt7d5ABVg4A/s1600/ScreenHunter_17%2BOct.%2B03%2B09.52.jpg -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards Gaurav Matta Blog: http://itfeast.blogspot.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: noobie- help with cake blog tutorial - Error PostsController could not be found
To me it seems like your CakePHP setup is incorrect. What is your document root set to in the Apache config file? I would asume it was set to: C:\wamp\www\cake_2_0\app\webroot That path is the root of your blog application. Also, please show us the tree structure of your app folder. Enjoy, John On Friday, 4 October 2013 00:49:57 UTC+3, Frank Thomson wrote: I am running WAMP server on my windows 8 laptop. I have cake installed and the test screen shows up as OK. There is more detail on that on my personal blog herehttp://frankstech.blogspot.com.au/2013/10/cakephp-installation.html I am trying to follow the blog tutorial from the cake web site here: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html The problem I get is that when I try http://localhost/cake_2_0/posts/index I get and get a page full of errors (see below) Error: PostsController could not be found. Error: Create the class PostsController below in file: app\controller\PostsController.php I believe that I have followed the tutorial accurately. Again I have documented it step by step on my blog. Here: http://frankstech.blogspot.com.au/2013/10/cakephp-blog-tutorial.html Any suggestions on what I can do to track this issue down. Thanks in advance. Frank -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Cakephp blog tutorial, SQL error when INSERTING into posts.
Hi guys, this is my first attempt at CakePHP and so far it seems amazing. I'm not a PHP/DB pro but I am learning. Anyway, I'm familiarizing myself with the framework by creating the blog in the tutorial. So far I've successfully created the table, now I am trying to *INSERT INTO POSTS* exactly as it is in the manual: INSERT INTO posts (title,body,created) VALUES ('The title', 'This is the post body.', NOW()); INSERT INTO posts (title,body,created) VALUES ('A title once again', 'And the post body follows.', NOW()); INSERT INTO posts (title,body,created) VALUES ('Title strikes back', 'This is really exciting! Not.', NOW()); It immediately outputs the following error: Error *SQL query: *INSERThttps://s97211.gridserver.com/.tools/phpMyAdmin/current/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Finsert.htmltoken=dc469536a0bc464e2477613903bf7463 INTO posts( title, body, created ) VALUES ( ’The title’, ’This IShttps://s97211.gridserver.com/.tools/phpMyAdmin/current/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Fcomparison-operators.html%23operator_istoken=dc469536a0bc464e2477613903bf7463 the post body.’, NOWhttps://s97211.gridserver.com/.tools/phpMyAdmin/current/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Fdate-and-time-functions.html%23function_nowtoken=dc469536a0bc464e2477613903bf7463 ( ) ); *MySQL said: *[image: Documentation] https://s97211.gridserver.com/.tools/phpMyAdmin/current/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Ferror-messages-server.htmltoken=dc469536a0bc464e2477613903bf7463#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'title’, ’This is the post body.’, NOW())' at line 2 I am now stuck because I do not see what's wrong here. While my SQL is limited, it looks correct.. can anyone see what could be causing this error? Here's the database info: Apache/2.2.22 Database client version: libmysql - 5.1.66 Thank you for any help!! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp blog tutorial, SQL error when INSERTING into posts.
On Mon, Aug 5, 2013 at 11:51 AM, Greg Sarpy on.const...@gmail.com wrote: (..) I am trying to *INSERT INTO POSTS* exactly as it is in the manual: INSERT INTO posts (title,body,created) VALUES ('The title', 'This is the post body.', NOW()); (..) It immediately outputs the following error: (..) MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'title’, ’This is the post body.’, NOW())' at line 2 I'm not sure about what is going on. But I can suppose the command is using the typographic quotes (“) instead of normal double quotes () to delim text. Did you typed the SQL insert in a Mysql client or just copy- and-paste the command from the cookbook? Additionally, check if this tip can help. http://markmcb.com/2011/11/07/replacing-ae%E2%80%9C-ae%E2%84%A2-aeoe-etc-with-utf-8-characters-in-ruby-on-rails/ Regards. MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandrade -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Wordpress blog archive look like in CakePHP
The CakeDC utils plugin has an Archive components that sounds like what you're trying to do. https://github.com/CakeDC/utils On Tuesday, July 30, 2013 4:19:54 PM UTC-7, Helder Lucas wrote: I'm building and application with cakePHP and I'm trying to achieve something like a Wordpress blog archive. Let's imagine that i have this table in my database: - Posts - id - title - body - created - modified and i want the output something like this: h12013/h1 pPost Title/p pPost Title/p pPost Title/p h12012/h1 pPost Title/p pPost Title/p pPost Title/p etc etc I have searched and tried by myself but unfortunately with no success. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Wordpress blog archive look like in CakePHP
One way to approach this is to use a virtual field ( http://book.cakephp.org/2.0/en/models/virtual-fields.html). In your Post model, create a virtual field called year that gets the year out of the created field. On Tuesday, July 30, 2013 4:19:54 PM UTC-7, Helder Lucas wrote: I'm building and application with cakePHP and I'm trying to achieve something like a Wordpress blog archive. Let's imagine that i have this table in my database: - Posts - id - title - body - created - modified and i want the output something like this: h12013/h1 pPost Title/p pPost Title/p pPost Title/p h12012/h1 pPost Title/p pPost Title/p pPost Title/p etc etc I have searched and tried by myself but unfortunately with no success. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Wordpress blog archive look like in CakePHP
Try creating a virtual field for the year ( http://book.cakephp.org/2.0/en/models/virtual-fields.html) and using the group option in your find method ( http://api.cakephp.org/2.3/class-Model.html#_find). On Tuesday, July 30, 2013 4:19:54 PM UTC-7, Helder Lucas wrote: I'm building and application with cakePHP and I'm trying to achieve something like a Wordpress blog archive. Let's imagine that i have this table in my database: - Posts - id - title - body - created - modified and i want the output something like this: h12013/h1 pPost Title/p pPost Title/p pPost Title/p h12012/h1 pPost Title/p pPost Title/p pPost Title/p etc etc I have searched and tried by myself but unfortunately with no success. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Wordpress blog archive look like in CakePHP
I'm building and application with cakePHP and I'm trying to achieve something like a Wordpress blog archive. Let's imagine that i have this table in my database: - Posts - id - title - body - created - modified and i want the output something like this: h12013/h1 pPost Title/p pPost Title/p pPost Title/p h12012/h1 pPost Title/p pPost Title/p pPost Title/p etc etc I have searched and tried by myself but unfortunately with no success. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: CakePHP 2.3.0 tutorial blog: Model file name and validation problems
On Wed, 27 Feb 2013 14:43:59 + (UTC), Virgo Pärna virgo.pa...@mail.ee wrote: I'm trying to learn CakePHP by doing tutorial blog (but that tutorial is 2.2 - mayby that's the problem) and I'm having two problems. When I name model file as Post.php, then every page outputs model at the top of web page. Like this: class Post extends AppModel { public $validate = array( 'title' = array( 'rule' = 'notEmpty' ), 'body' = array( 'rule' = 'notEmpty' ) ); } class Post extends AppModel { public $validate = array( 'title' = array( 'rule' = 'notEmpty' ), 'body' = array( 'rule' = 'notEmpty' ) ); } Ok, seems that model file needs to have ?php at the first line. This is something that tutorial does not mention at all. And I'm rarely using php, so it's easy to forgot, that php requires beginning tag. -- Virgo Pärna virgo.pa...@mail.ee -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
CakePHP 2.3.0 tutorial blog: Model file name and validation problems
I'm trying to learn CakePHP by doing tutorial blog (but that tutorial is 2.2 - mayby that's the problem) and I'm having two problems. When I name model file as Post.php, then every page outputs model at the top of web page. Like this: class Post extends AppModel { public $validate = array( 'title' = array( 'rule' = 'notEmpty' ), 'body' = array( 'rule' = 'notEmpty' ) ); } class Post extends AppModel { public $validate = array( 'title' = array( 'rule' = 'notEmpty' ), 'body' = array( 'rule' = 'notEmpty' ) ); } Also, when I add new post or delete post, then browser remains on a page, that displays that model source on white background. When I rename model file to post.php, then I don't get that model output and deleting/adding post correcly redirects to index page. But from what I understand, the model file is supposed to be named Post.php. And that output does not depend debug settings. Another problem is, that no matter what is the filename of model, validation is never done. PS: I'm using tutorial from http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html -- Virgo Pärna virgo.pa...@mail.ee -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Nutty, Well... As far as I'm aware of, it functions properly. In the router.php file I can add routes, and they are working allright. domain.com/ goes to the index, domain.com/controller will go to the corresponding controller, or via routes to the controller I've specified. So, it seems to function. Thanks for you help anyway. :) Jorick. Op vrijdag 7 december 2012 10:09:45 UTC+1 schreef nutty het volgende: Hi Jorick, Did you resolved the issue in your index root? Mine is just working fine. Regards, On Sat, Dec 1, 2012 at 9:21 AM, Jorick de Lange jorick...@gmail.comjavascript: wrote: Hi Nutty, Thanks for your link. I followed it, copy+pasted your web.config file, refreshed, but then the index (root/) isn't working. URL Rewriting is, though, 'cause I could acces '/posts/index' without a problem. Thank you anyway! Jorick. Op zaterdag 1 december 2012 01:20:30 UTC+1 schreef nutty het volgende: I had my cakephp running in IIS and it works perfectly for me. see http://jquerydate.blogspot.com On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange jorick...@gmail.comwrote: Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/**CakePHPhttps://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@** googlegroups.com. Visit this group at http://groups.google.com/**group/cake-php?hl=enhttp://groups.google.com/group/cake-php?hl=en . -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?
I have installed and run through the Blog tutorial and am getting the error http://localhost/cakephp-cakephp-b2812f2/posts/index Error: PostsController could not be found The file definitely exists, I have tried the tutorial twice now so must have something wrong. However I cannot find a download of the files from a working installation. Can anyone help me out here? So have a followed the instructions incorrectly or does the example not work? I want to use CakePHP but if I cannot get a simple example working I have little confidence that more complex projects will work reliably. Cheers Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?
If you are using IIS refer here http://jquerydate.blogspot.com. Otherwise cookbook http://book.cakephp.org/2.0/en/index.html is sufficient for your needs. On Tue, Dec 11, 2012 at 1:29 AM, Paul Marriott paulmarrio...@googlemail.com wrote: I have installed and run through the Blog tutorial and am getting the error http://localhost/cakephp-cakephp-b2812f2/posts/index Error: PostsController could not be found The file definitely exists, I have tried the tutorial twice now so must have something wrong. However I cannot find a download of the files from a working installation. Can anyone help me out here? So have a followed the instructions incorrectly or does the example not work? I want to use CakePHP but if I cannot get a simple example working I have little confidence that more complex projects will work reliably. Cheers Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?
Hi Paul, could you please include the contents of your PostsController.php file. Cheers On Tue, Dec 11, 2012 at 1:44 PM, Nathaniel Sumaya nsum...@gmail.com wrote: If you are using IIS refer here http://jquerydate.blogspot.com. Otherwise cookbook http://book.cakephp.org/2.0/en/index.html is sufficient for your needs. On Tue, Dec 11, 2012 at 1:29 AM, Paul Marriott paulmarrio...@googlemail.com wrote: I have installed and run through the Blog tutorial and am getting the error http://localhost/cakephp-cakephp-b2812f2/posts/index Error: PostsController could not be found The file definitely exists, I have tried the tutorial twice now so must have something wrong. However I cannot find a download of the files from a working installation. Can anyone help me out here? So have a followed the instructions incorrectly or does the example not work? I want to use CakePHP but if I cannot get a simple example working I have little confidence that more complex projects will work reliably. Cheers Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?
Em 11/12/2012 00:42, Paul Marriott paulmarrio...@googlemail.com escreveu: I have installed and run through the Blog tutorial and am getting the error http://localhost/cakephp-cakephp-b2812f2/posts/index Error: PostsController could not be found The file definitely exists, I have tried the tutorial twice now so must have something wrong. Are you sure about the CakePHP version? Double check the name of your posts_controller or PostsController file. If you're in doubt, try to generate this file with cake bake. Cheers. MARCELO DE FREITAS ANDRADE Minha alma é maior do que eu. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Jorick, Did you resolved the issue in your index root? Mine is just working fine. Regards, On Sat, Dec 1, 2012 at 9:21 AM, Jorick de Lange jorickdela...@gmail.comwrote: Hi Nutty, Thanks for your link. I followed it, copy+pasted your web.config file, refreshed, but then the index (root/) isn't working. URL Rewriting is, though, 'cause I could acces '/posts/index' without a problem. Thank you anyway! Jorick. Op zaterdag 1 december 2012 01:20:30 UTC+1 schreef nutty het volgende: I had my cakephp running in IIS and it works perfectly for me. see http://jquerydate.blogspot.com On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange jorick...@gmail.comwrote: Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/**CakePHPhttps://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@** googlegroups.com. Visit this group at http://groups.google.com/**group/cake-php?hl=enhttp://groups.google.com/group/cake-php?hl=en . -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Reuben and Cricket, At least, something is working. While I've posted this issue here in the groups I started to backtrace the problem. What I've done now, is import the .htacces in /root/ to my web.config in /root/ AND copy the recommended web.config from the CakePHP book into the web.config in /root/. At least I can see the pages, and use the pretty URLS. But, I'm not there yet. As you can see, at http://dev-ov-ervaringen.nl/ the webpage is loading. At http://dev-ov-ervaringen.nl/index.php the page is loading as well, BUT with errors. The /index.php is situated in root/app/webroot/, if I'm not mistaken, right? Even http://dev-ov-ervaringen.nl/posts/index/ is working (only, I've got a nasty PHP error there. Have to figure out what that's supposed to mean, 'cause it's a litteral copy from the tutorial). What I think, is that I have to add some extra rules to my web.config in /app/ and in app/webroot. But, I don't have a clue yet. I'll keep searching and you informed. Jorick. Op vrijdag 30 november 2012 01:32:47 UTC+1 schreef Reuben het volgende: My guess is there is a problem with the web.config and URL rewrites. The web.config files you have, don't quite look like the recommended web.config at http://book.cakephp.org/2.0/en/installation/advanced-installation.html Unfortunately, I've not played with CakePHP on IIS7 using this method of URL redirect. Actually, it could be a permissions issue. Visiting http://dev.ov-ervaringen.nl/index.php yields an error that looks like CakePHP is correctly determining the controller name (but this one doesn't exist). So if the PostsController was being found, it might not be executable/readable, due to permissions on that file. Regards Reuben Helms On Thursday, 29 November 2012 22:44:38 UTC+10, Jorick de Lange wrote: Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / rewrite rules remove name=Imported Rule 1/ remove name=Imported Rule 2/ rule name=app 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=webroot/ / /rule rule name=app 2 stopProcessing=true
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Oh, what I've forgot to mention: in app/Config/core.php debug is set to 2. Jorick. Op vrijdag 30 november 2012 01:04:24 UTC+1 schreef cricket het volgende: Please define Nothing for us. Also, do you have debug set to 2? On Thu, Nov 29, 2012 at 7:44 AM, Jorick de Lange jorick...@gmail.com javascript: wrote: Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / rewrite rules remove name=Imported Rule 1/ remove name=Imported Rule 2/ rule name=app 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=webroot/ / /rule rule name=app 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/webroot/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer rewrite rules remove name=app 1/ remove name=app 2/ rule name=App Webroot 1 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory ignoreCase=false negate=true / add input={REQUEST_FILENAME} matchType=IsFile ignoreCase=false negate=true / /conditions action type=Rewrite url=index.php appendQueryString=true / /rule /rules /rewrite /system.webServer /configuration --- Is there anyone who is seeing the problem and has the solution to solve it? Thanks in advance, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
OK... So, what I've got now: Working - dev.ov-ervaringen.nl/ - dev.ov-ervaringen.nl/posts/index Not working: - dev.ov-ervaringen.nl/index.php The error (Notice (8): Undefined index: post) in /posts/index was a typo. I removed all the web.config files in /app/ and /app/webroot/, and created one web.config in /root/, which contains the following: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=false match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=false match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule rule name=Imported Rule 5 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory negate=true / add input={REQUEST_FILENAME} matchType=IsFile negate=true / /conditions action type=Rewrite url=index.php?url={R:1} appendQueryString=true / /rule rule name=Imported Rule 6 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=/ / /rule rule name=Imported Rule 7 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=/{R:1} / /rule rule name=Imported Rule 8 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory negate=true / add input={REQUEST_FILENAME} matchType=IsFile negate=true / /conditions action type=Rewrite url=index.php/{R:1} appendQueryString=true / /rule /rules /rewrite /system.webServer /configuration Don't mind the interrupted names: IIS7 doesn't care about names, it'll work from top to bottom. When I had rule 1 and 2 removed, all my CSS markup was gone on every page. But now... How to fix the /index.php problem... :-\ Ciao, Jorick. Op donderdag 29 november 2012 13:44:38 UTC+1 schreef Jorick de Lange het volgende: Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
On Fri, Nov 30, 2012 at 8:51 AM, Jorick de Lange jorickdela...@gmail.com wrote: OK... So, what I've got now: Working - dev.ov-ervaringen.nl/ - dev.ov-ervaringen.nl/posts/index Not working: - dev.ov-ervaringen.nl/index.php You shouldn't add index.php to the URL. The Rewrite Rules work by passing the arguments in the URL to the index.php file, which in turn passes them on to the Dispatcher. It first searches for an actual file under app/webroot, eg. my-static-page.html. If found, it serves it and that's the end of the request. Otherwise, everything else is already going to index.php. Another way of looking at it: index.php and index are two separate things. The latter is named so because the action is to list all records of some model. The former is named so because, historically, web servers would default to listing all of the pages in a given folder if no filename was given in the URL. Eventually, it was possible to set a DefaultDocument name, so that the web server would look for a file with that name and show that instead of listing all the files. Traditionally, this was called index.html, index.php, etc. Cake's app/webroot/index.php could actually be named anything else, as long as the web server was configured for that name as DefaultDocument. I hope I didn't just confuse things even more. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
I had my cakephp running in IIS and it works perfectly for me. see http://jquerydate.blogspot.com On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange jorickdela...@gmail.comwrote: Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Nutty, Thanks for your link. I followed it, copy+pasted your web.config file, refreshed, but then the index (root/) isn't working. URL Rewriting is, though, 'cause I could acces '/posts/index' without a problem. Thank you anyway! Jorick. Op zaterdag 1 december 2012 01:20:30 UTC+1 schreef nutty het volgende: I had my cakephp running in IIS and it works perfectly for me. see http://jquerydate.blogspot.com On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange jorick...@gmail.comjavascript: wrote: Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Thanks and Best Regards, Nathaniel N. Sumaya -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/ for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / rewrite rules remove name=Imported Rule 1/ remove name=Imported Rule 2/ rule name=app 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=webroot/ / /rule rule name=app 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/webroot/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer rewrite rules remove name=app 1/ remove name=app 2/ rule name=App Webroot 1 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory ignoreCase=false negate=true / add input={REQUEST_FILENAME} matchType=IsFile ignoreCase=false negate=true / /conditions action type=Rewrite url=index.php appendQueryString=true / /rule /rules /rewrite /system.webServer /configuration --- Is there anyone who is seeing the problem and has the solution to solve it? Thanks in advance, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Please define Nothing for us. Also, do you have debug set to 2? On Thu, Nov 29, 2012 at 7:44 AM, Jorick de Lange jorickdela...@gmail.com wrote: Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/ for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / rewrite rules remove name=Imported Rule 1/ remove name=Imported Rule 2/ rule name=app 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=webroot/ / /rule rule name=app 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/webroot/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer rewrite rules remove name=app 1/ remove name=app 2/ rule name=App Webroot 1 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory ignoreCase=false negate=true / add input={REQUEST_FILENAME} matchType=IsFile ignoreCase=false negate=true / /conditions action type=Rewrite url=index.php appendQueryString=true / /rule /rules /rewrite /system.webServer /configuration --- Is there anyone who is seeing the problem and has the solution to solve it? Thanks in advance, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
My guess is there is a problem with the web.config and URL rewrites. The web.config files you have, don't quite look like the recommended web.config at http://book.cakephp.org/2.0/en/installation/advanced-installation.html Unfortunately, I've not played with CakePHP on IIS7 using this method of URL redirect. Actually, it could be a permissions issue. Visiting http://dev.ov-ervaringen.nl/index.php yields an error that looks like CakePHP is correctly determining the controller name (but this one doesn't exist). So if the PostsController was being found, it might not be executable/readable, due to permissions on that file. Regards Reuben Helms On Thursday, 29 November 2012 22:44:38 UTC+10, Jorick de Lange wrote: Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); } } in app/Model/Post.php class Post extends AppModel { } in app/View/Posts/index.ctp !-- File: /app/View/Posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['post']['id'])); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? ?php unset($post); ? /table And, my web.config files: in root: ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / defaultDocument files clear / add value=index.htm / add value=index.html / add value=index.php / add value=Default.htm / add value=Default.asp / add value=Default.aspx / /files /defaultDocument rewrite rules rule name=Imported Rule 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=app/webroot/ / /rule rule name=Imported Rule 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=app/webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer directoryBrowse enabled=false / rewrite rules remove name=Imported Rule 1/ remove name=Imported Rule 2/ rule name=app 1 stopProcessing=true match url=^$ ignoreCase=false / action type=Rewrite url=webroot/ / /rule rule name=app 2 stopProcessing=true match url=(.*) ignoreCase=false / action type=Rewrite url=webroot/{R:1} / /rule /rules /rewrite /system.webServer /configuration in app/webroot/ ?xml version=1.0 encoding=UTF-8? configuration system.webServer rewrite rules remove name=app 1/ remove name=app 2/ rule name=App Webroot 1 stopProcessing=true match url=^(.*)$ ignoreCase=false / conditions logicalGrouping=MatchAll add input={REQUEST_FILENAME} matchType=IsDirectory ignoreCase=false negate=true / add input={REQUEST_FILENAME} matchType=IsFile ignoreCase=false negate=true / /conditions action type=Rewrite url=index.php appendQueryString=true / /rule /rules /rewrite /system.webServer /configuration --- Is there anyone who is seeing the problem and has the solution to solve it? Thanks in advance, Jorick. -- Like
Re: view group, photo, blog in foreach statement
solved,... On Friday, November 23, 2012 9:53:16 PM UTC-8, Chris wrote: hi guys,... is there a way of show group, blog, photo,... whichever comes in in notification table I have a view of: ?php $i = 0 ? ?php foreach($notes as $note): ? ?php echo $html-link($groupBannerShow-square($note), '/groups/view/' . $note['Group']['id'], array('escape'=false)) ? ?php echo $html-link($photoShow-square($note), '/photos/show/' . $note['Photo']['id'], array('escape'=false)) ? ?php if($i++ % 1 - 0 == 0): ? div class=clr/div ?php endif ? ?php endforeach ? and how can I do this,...? thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
view group, photo, blog in foreach statement
hi guys,... is there a way of show group, blog, photo,... whichever comes in in notification table I have a view of: ?php $i = 0 ? ?php foreach($notes as $note): ? ?php echo $html-link($groupBannerShow-square($note), '/groups/view/' . $note['Group']['id'], array('escape'=false)) ? ?php echo $html-link($photoShow-square($note), '/photos/show/' . $note['Photo']['id'], array('escape'=false)) ? ?php if($i++ % 1 - 0 == 0): ? div class=clr/div ?php endif ? ?php endforeach ? and how can I do this,...? thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
retrieving blog comments
hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: retrieving blog comments
It would help if you mentioned what the problem was. Also, things you've tried, debugging info, etc. On Mon, Nov 19, 2012 at 3:10 AM, Chris chris...@yahoo.com wrote: hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: retrieving blog comments
hi cricket,... thank you for reply,... I think the problem is with: $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; it's not passing it $this-params['pass'] ,... this is how I call function,... ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? and I can't figure out what to do,... On Monday, November 19, 2012 10:57:51 AM UTC-8, cricket wrote: It would help if you mentioned what the problem was. Also, things you've tried, debugging info, etc. On Mon, Nov 19, 2012 at 3:10 AM, Chris chri...@yahoo.com javascript: wrote: hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript:. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: retrieving blog comments
I don't use Cake's AjaxHelper so can't say much about that. I would log $this-params to see what it has. Also, check $this-request. On Mon, Nov 19, 2012 at 2:54 PM, Chris chris...@yahoo.com wrote: hi cricket,... thank you for reply,... I think the problem is with: $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; it's not passing it $this-params['pass'] ,... this is how I call function,... ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? and I can't figure out what to do,... On Monday, November 19, 2012 10:57:51 AM UTC-8, cricket wrote: It would help if you mentioned what the problem was. Also, things you've tried, debugging info, etc. On Mon, Nov 19, 2012 at 3:10 AM, Chris chri...@yahoo.com wrote: hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: retrieving blog comments
ok, I manage to retrieve comments in a view in show.ctp: div id=comments/div script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/', $blog['Blog']['id']), 'update' = 'comments')); ? /script and controller blog_comments_controller.php: function ajax_show($id = null) { $this-layout = 'ajax'; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id']))); } } now I'm having a problem with pagination,... it takes me to another URL e.g. .../BlogComments/ajax_show/60/page:2 where it should stay on .../blogs/show/chris69m/60 to update div id=comments/div and this is my paginator in a /blog_comments/ajax_show: ?php echo $this-Paginator-options(array('update' = 'comments', 'url'= array('controller' = 'BlogComments', 'action' = 'ajax_show/' . $blog['Blog']['id']) )); ? ?php echo $this-Paginator-numbers(); ? ?php echo $this-Paginator-prev('« Previous', null, null, array('class' = 'disabled')); ? ?php echo $this-Paginator-next('Next »', null, null, array('class' = 'disabled')); ? ?php echo $this-Paginator-counter(); ? it's not updating comments on ?php echo $this-Paginator-options(array('update' = 'comments',... it takes me to another URL e.g. .../BlogComments/ajax_show/60/page:2 how can I do this,... please,...? On Monday, November 19, 2012 12:04:24 PM UTC-8, cricket wrote: I don't use Cake's AjaxHelper so can't say much about that. I would log $this-params to see what it has. Also, check $this-request. On Mon, Nov 19, 2012 at 2:54 PM, Chris chri...@yahoo.com javascript: wrote: hi cricket,... thank you for reply,... I think the problem is with: $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; it's not passing it $this-params['pass'] ,... this is how I call function,... ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? and I can't figure out what to do,... On Monday, November 19, 2012 10:57:51 AM UTC-8, cricket wrote: It would help if you mentioned what the problem was. Also, things you've tried, debugging info, etc. On Mon, Nov 19, 2012 at 3:10 AM, Chris chri...@yahoo.com wrote: hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript:. To unsubscribe from this group, send email to cake-php+u
Re: retrieving blog comments
hi cricket thanks for your help,... thanks for your try,... the problem is solved,... here is what I did,... ?php echo $this-Paginator-options(array('update' = '#comments', 'url'= array('controller' = 'BlogComments', 'action' = 'ajax_show/' . $blog['Blog']['id']) )); ? an at the bottom of the page: ?php echo $this-Js-writeBuffer(); ? On Monday, November 19, 2012 12:04:24 PM UTC-8, cricket wrote: I don't use Cake's AjaxHelper so can't say much about that. I would log $this-params to see what it has. Also, check $this-request. On Mon, Nov 19, 2012 at 2:54 PM, Chris chri...@yahoo.com javascript: wrote: hi cricket,... thank you for reply,... I think the problem is with: $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; it's not passing it $this-params['pass'] ,... this is how I call function,... ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? and I can't figure out what to do,... On Monday, November 19, 2012 10:57:51 AM UTC-8, cricket wrote: It would help if you mentioned what the problem was. Also, things you've tried, debugging info, etc. On Mon, Nov 19, 2012 at 3:10 AM, Chris chri...@yahoo.com wrote: hi guys,... I can't retrieve blog comments on cake 1.3 when it used to work on cake 1.2 can anyone help please,... I call comments ajax page with remoteFunction,... using jQuery: script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'blog_comments', 'action' = 'ajax_show/','blog_id:'.$blog['Blog']['id']), 'update' = 'comments')); ? /script which is similar to Prototype call (I used to have on cake 1.2,... and it's working on 1.2): script new Ajax.Updater(comments, ?php echo $html-url('/blog_comments/ajax_show/blog_id:' . $blog['Blog']['id']) ?, { evalScripts:true, onComplete:function() { $(comments_loading).hide() } }); /script And this is ajax_show function in blog_comments controller: function ajax_show() { $this-layout = 'ajax'; $id = array_key_exists('blog_id', $this-params['pass']) ? $this-params['pass']['blog_id'] : null; if(!($blog = $this-Blog-findById($id))) { die(); } else { $this-set('url_options', array('blog_id' = $id)); $this-set('blog', $blog); $this-set('blog_comments', $this-paginate('BlogComment', array('BlogComment.blog_id' = $blog['Blog']['id'] ))); $this-set('offset', ($this-params['paging']['BlogComment']['page'] - 1) * $this-paginate['limit'] + 1); debug($blog); debug($blog_comments); } } thanks in advance, chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.com. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript:. To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Newbie: Problem with Blog tutorial
Borislav, Explaining why it is unexpected would clarify the misunderstanding - there is no mocking in asking someone to explain themselves. AD -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Newbie: Problem with Blog tutorial
As described in the blog tutorial - Also remove these .htaccess files: /.htaccess/app/.htaccess/app/webroot/.htaccess This will make your URLs look like www.example.com/index.php/controllername/actionname/param rather than www.example.com/controllername/actionname/param. I did the same but still the above mentioned problem exists. My url - *blog.com/index.php/posts/ *works, but the *blog.com/posts/ *shows the error, Url not found on the server TIA Kbajpai -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Newbie: Problem with Blog tutorial
In what way is that unexpected? AD -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Newbie: Problem with Blog tutorial
Like! +1 W dniu sobota, 14 lipca 2012 16:19:38 UTC+2 użytkownik AD7six napisał: In what way is that unexpected? AD -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Newbie: Problem with Blog tutorial
Shame on you *AD7six* and *Piotr Beschel*! This group is for helping people not mocking them! Yes the question is kinda silly, but this doesn't mean that you should mock people. What if you end up asking a question that someone better (in Cake) than you considers silly? Would it be nice to get such replies? This is a community not a forum. Man up! On the qestion: Kunal, *.htaccess* files are Apache configuration files. When the tutorial said *Also remove these .htaccess files* it did so under the *A note on mod_rewite* section. This is to be done if you DO NOT have mod_rewrite working at all or if you use a different webserver than Apache. So you do not need to do this if your application is running on an Apache instance with mod_rewrite enabled. What is mod_rewrite? Well take a look herehttp://www.workingwith.me.uk/articles/scripting/mod_rewrite . How to use pretty urls with Apache and other webservers? Well read thishttp://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess . On your problem: it seems that you've managed to get Cake's built in pretty Urls to work. You are seeing index.php as it is the script being run de facto when you do this: *Configure::write('App.baseUrl', env('SCRIPT_NAME'));* So this is why what you see happens. Try to get mod_rewrite working, it has some advantages. Borislav. On Saturday, 14 July 2012 16:16:12 UTC+3, Kunal Bajpai wrote: As described in the blog tutorial - Also remove these .htaccess files: /.htaccess/app/.htaccess/app/webroot/.htaccess This will make your URLs look like www.example.com/index.php/controllername/actionname/param rather than www.example.com/controllername/actionname/param. I did the same but still the above mentioned problem exists. My url - * blog.com/index.php/posts/ *works, but the *blog.com/posts/ *shows the error, Url not found on the server TIA Kbajpai -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
check this and comment on this blog
check this and comment on this blog http://howididand.blogspot.com/2012/03/cakephp-change-validations-rule-for.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: check this and comment on this blog
On Sunday, 20 May 2012 08:42:24 UTC+2, Milina Udara wrote: check this and comment on this blog If you aren't asking a question, your post isn't appropriate - please do not use this group to try and get visitors to your/a blog AD -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Basic question about Auth and blog tutorial
Hi, I asked this just some days ago, but I am still stuck with this: I have a web project where I want to give the admin a admin area where he can login and add/edit/delete news. The basic code for this I took from the cake book given with the blog tutorial. I having now a problem with the AUTH part: AppController: public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array('controller' = 'posts', 'action' = 'index'), 'logoutRedirect' = array('controller' = 'pages', 'action' = 'display', 'home'), 'authorize' = array('Controller'), 'authError' = 'Bitte loggen Sie sich ein!' ) ); function beforeFilter() { $this-Auth-allow('display'); } public function isAuthorized($user) { if (isset($user['role']) $user['role'] === 'admin') { return true; //Admin can access every action } return false; // The rest don't } The User I added, has the role 'admin' I want all function from the posts controller to be secured by Auth. My major understanding problem is inside the posts controller with this function: public function beforeFilter() { parent::beforeFilter(); $this-Auth-allow('?'); } I don't want to allow any function. But when I remove the function beforeFilter I can't login. I don't get any error messages, I just see the again and again the login form coming up. Even the same when I just remove the $this-Auth-allow line. What is wrong here? I really don't get it Please help me!! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Basic question about Auth and blog tutorial
Hi, i believe because you have the authorize variable set to controller, you need to include an isAuthorized method in each of your controllers. Try putting the following (and removing the beforeFilter) in your Posts controller: function isAuthorized() { return parent::isAuthorized('someuser'); } This inherits and returns the value from isAuthorized in the AppController, you could change $user to pass in directly the role too. I hope that's correct/works as I'm about to implement pretty much the same feature in a web site too! :) Clint Hi, I asked this just some days ago, but I am still stuck with this: I have a web project where I want to give the admin a admin area where he can login and add/edit/delete news. The basic code for this I took from the cake book given with the blog tutorial. I having now a problem with the AUTH part: AppController: public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array('controller' = 'posts', 'action' = 'index'), 'logoutRedirect' = array('controller' = 'pages', 'action' = 'display', 'home'), 'authorize' = array('Controller'), 'authError' = 'Bitte loggen Sie sich ein!' ) ); function beforeFilter() { $this-Auth-allow('display'); } public function isAuthorized($user) { if (isset($user['role']) $user['role'] === 'admin') { return true; //Admin can access every action } return false; // The rest don't } The User I added, has the role 'admin' I want all function from the posts controller to be secured by Auth. My major understanding problem is inside the posts controller with this function: public function beforeFilter() { parent::beforeFilter(); $this-Auth-allow('?'); } I don't want to allow any function. But when I remove the function beforeFilter I can't login. I don't get any error messages, I just see the again and again the login form coming up. Even the same when I just remove the $this-Auth-allow line. What is wrong here? I really don't get it Please help me!! -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Basic question about Auth and blog tutorial
Sorry, this is not changing anything :-( I am still at the same point. I really wonder why, haveing AUTH and a controller with no allowed functions can't be anything special? On 4 Jan., 12:45, Clint ctf...@student.monash.edu wrote: Hi, i believe because you have the authorize variable set to controller, you need to include an isAuthorized method in each of your controllers. Try putting the following (and removing the beforeFilter) in your Posts controller: function isAuthorized() { return parent::isAuthorized('someuser'); } This inherits and returns the value from isAuthorized in the AppController, you could change $user to pass in directly the role too. I hope that's correct/works as I'm about to implement pretty much the same feature in a web site too! :) Clint Hi, I asked this just some days ago, but I am still stuck with this: I have a web project where I want to give the admin a admin area where he can login and add/edit/delete news. The basic code for this I took from the cake book given with the blog tutorial. I having now a problem with the AUTH part: AppController: public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array('controller' = 'posts', 'action' = 'index'), 'logoutRedirect' = array('controller' = 'pages', 'action' = 'display', 'home'), 'authorize' = array('Controller'), 'authError' = 'Bitte loggen Sie sich ein!' ) ); function beforeFilter() { $this-Auth-allow('display'); } public function isAuthorized($user) { if (isset($user['role']) $user['role'] === 'admin') { return true; //Admin can access every action } return false; // The rest don't } The User I added, has the role 'admin' I want all function from the posts controller to be secured by Auth. My major understanding problem is inside the posts controller with this function: public function beforeFilter() { parent::beforeFilter(); $this-Auth-allow('?'); } I don't want to allow any function. But when I remove the function beforeFilter I can't login. I don't get any error messages, I just see the again and again the login form coming up. Even the same when I just remove the $this-Auth-allow line. What is wrong here? I really don't get it Please help me!! -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Basic question about Auth and blog tutorial
OK I found it: I had to remove the beforeFilter from my post controller and needed to change my isAuthorized function within the post controllere to this: public function isAuthorized($user) { if (parent::isAuthorized($user)) { return true; } if (in_array($this-action, array('edit', 'delete'))) { $postId = $this-request-params['pass'][0]; return $this-Post-isOwnedBy($postId, $user['id']); } return false; } Now everything look like working :-) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Assistance with Blog Tutorial
Good evening, Rookie developer, in MVC for 6 months, CakePHP for about 1. My current tests with Cake can be seen at: http://174.129.130.149/items I am experiencing an issue on the drill down. I paste everything into a text doc so I could do a line by line but the issue is eluding me. I can successfully see all items of my table. I can click the link and go from index.ctp to view.ctp. My id passes successfully. No db data shows on view.ctp, but there are no errors. The test var in item 2 below displays. I cast $id as an (int) and did a gettype to test, and it came back as an int. Still no luck? I am assuming I am missing something quite simple, but after three hours of looking at this I obviously do not know what I am looking at. 1. app/Model/Item.php class Item extends AppModel { public $name = 'Item'; } 2. app/Controller/ItemsController.ctp contains the following (index() works like a champ): public function view($id = null) { $this-Item-ItemKey1 = $id; $this-set('item', $this-Item-read()); $this-set('testvar', 'it is set'); } index successfully executes find('all'); 3. app/View/Items/view.ctp contains the line: echo $item['Item'] ['DBField']; and echo $testvar; a. index.ctp does the following: ?php echo $this-Html- link($item['Item']['ItemDescription'], array('controller' = 'Items', 'action' = 'view', $item['Item']['ItemKey1']) ); ? the link works and I go to the correct page, I do a view source and everything is there minus any data from the db. I've tried changing item names to upper case, adding an 's', but each changes throws an error. I thought the issue was the id coming in as a string so I cast to an int, still no dice. R/s, Dave -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Assistance with Blog Tutorial
Your code looks a bit non-standard. What's ItemKey1? And field name are normally lower camel case. Try this (assuming you primary key on the items table is 'id' and your description field is 'item_description'): public function view($id = null) { $this-set( 'item', $this-Item-find( 'first', array('Item.id' = $id) ) ); } Then in your view: ?php echo $this-Html-link( $item['Item']['item_description'], array( 'controller' = 'items', === note the controller is all lower case 'action' = 'view', $item['Item']['id'] ) ); ? Jeremy Burns Class Outfit http://www.classoutfit.com On 4 Dec 2011, at 23:2743, davfergus wrote: Good evening, Rookie developer, in MVC for 6 months, CakePHP for about 1. My current tests with Cake can be seen at: http://174.129.130.149/items I am experiencing an issue on the drill down. I paste everything into a text doc so I could do a line by line but the issue is eluding me. I can successfully see all items of my table. I can click the link and go from index.ctp to view.ctp. My id passes successfully. No db data shows on view.ctp, but there are no errors. The test var in item 2 below displays. I cast $id as an (int) and did a gettype to test, and it came back as an int. Still no luck? I am assuming I am missing something quite simple, but after three hours of looking at this I obviously do not know what I am looking at. 1. app/Model/Item.php class Item extends AppModel { public $name = 'Item'; } 2. app/Controller/ItemsController.ctp contains the following (index() works like a champ): public function view($id = null) { $this-Item-ItemKey1 = $id; $this-set('item', $this-Item-read()); $this-set('testvar', 'it is set'); } index successfully executes find('all'); 3. app/View/Items/view.ctp contains the line: echo $item['Item'] ['DBField']; and echo $testvar; a. index.ctp does the following: ?php echo $this-Html- link($item['Item']['ItemDescription'], array('controller' = 'Items', 'action' = 'view', $item['Item']['ItemKey1']) ); ? the link works and I go to the correct page, I do a view source and everything is there minus any data from the db. I've tried changing item names to upper case, adding an 's', but each changes throws an error. I thought the issue was the id coming in as a string so I cast to an int, still no dice. R/s, Dave -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
Not sure what it is you are struggling with ... if you want to add a comment to a Post then echo a form with a hidden field containing Comment.post_id. If wanting to view a Post and it's comments then: $this-set('post', $this-Post-find('first', array( 'conditions'=array('Post.id'=$id), 'contain'=array('Comment') ))); And then loop through $post['Comment'] in the view showing each comment. You might also want to take a look at CakeDC's comments plugin: https://github.com/CakeDC/comments HTH, Paul. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
Does the blog tutorial not cover all of this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
No, the blog tutorial cover only post. I dont know who to do it On 30 nov, 07:12, phpMagpie p...@webbedit.co.uk wrote: Does the blog tutorial not cover all of this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
I use in the console cake bake all the time. The relation Has Many and Belongs To is Ok. But when create a new comment I must to select the post in a select field and no directly. This way is not elegant and functional. On 29 nov, 16:54, euromark dereurom...@googlemail.com wrote: you shoudnt use scaffolding but bake your code using the bake shell then you probably discover that all your problems are gone On 29 Nov., 16:55, joserafael josecam...@gmail.com wrote: If anything I could do in cakephp is to relate a table of news with commentary. Yes, that is simple but I can not find the solution. When I make the scaffold I have no problem. The hasMany and belongsTo is created in the model. But when I select a comment post via a dropdown menu and it is not functional. The same happens when I add a photo that I use this drop-down menu to find the post to which he belongs. I wish someone would publish a code in order to guide me. Otherwise that's what I put in the controller and in the view that automatically make a comment related to the news. I'll be very grateful. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
please take a lot at the book starting right about here: http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html?highlight=bake On 30 Nov., 17:15, joserafael josecam...@gmail.com wrote: No, the blog tutorial cover only post. I dont know who to do it On 30 nov, 07:12, phpMagpie p...@webbedit.co.uk wrote: Does the blog tutorial not cover all of this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
Thank you euromark but the console not create a nice posts with comments. I need a little code example how to do it. :-) On 30 nov, 12:19, euromark dereurom...@googlemail.com wrote: please take a lot at the book starting right about here:http://book.cakephp.org/2.0/en/console-and-shells/code-generation-wit... On 30 Nov., 17:15, joserafael josecam...@gmail.com wrote: No, the blog tutorial cover only post. I dont know who to do it On 30 nov, 07:12, phpMagpie p...@webbedit.co.uk wrote: Does the blog tutorial not cover all of this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Blog with posts and comments
If anything I could do in cakephp is to relate a table of news with commentary. Yes, that is simple but I can not find the solution. When I make the scaffold I have no problem. The hasMany and belongsTo is created in the model. But when I select a comment post via a dropdown menu and it is not functional. The same happens when I add a photo that I use this drop-down menu to find the post to which he belongs. I wish someone would publish a code in order to guide me. Otherwise that's what I put in the controller and in the view that automatically make a comment related to the news. I'll be very grateful. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog with posts and comments
you shoudnt use scaffolding but bake your code using the bake shell then you probably discover that all your problems are gone On 29 Nov., 16:55, joserafael josecam...@gmail.com wrote: If anything I could do in cakephp is to relate a table of news with commentary. Yes, that is simple but I can not find the solution. When I make the scaffold I have no problem. The hasMany and belongsTo is created in the model. But when I select a comment post via a dropdown menu and it is not functional. The same happens when I add a photo that I use this drop-down menu to find the post to which he belongs. I wish someone would publish a code in order to guide me. Otherwise that's what I put in the controller and in the view that automatically make a comment related to the news. I'll be very grateful. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
cakephp 2.0 Cookbook blog tutorial - problem with autentication component
Hi, I work on the cookbook blog tutorial. A piece of code give me a bug. When I try to access to www.example.com/posts/add , I am forward to the home page. But, when I comment the line (orange highlighted), I can access to the /posts/add page. I think it could be related with the authcomponenthttp://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#AuthComponent . Code (source: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html, section: Authorization (who’s allowed to access what)) public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array('controller' = 'posts', 'action' = 'index'), 'logoutRedirect' = array('controller' = 'pages', 'action' = 'display', 'home'),'authorize' = array('Controller') // Added this line )); public function isAuthorized($user) { if (isset($user['role']) $user['role'] === 'admin') { return true; //Admin can access every action } return false; // The rest don't} * * -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: cakephp 2.0 Cookbook blog tutorial - problem with autentication component
Did you finish the tutorial? In the following lines it is explained how to allow access to post adding and editing. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Following blog auth tutorial and get fatal error
I just followed the blog tutorial (http://book.cakephp.org/2.0/en/ tutorials-and-examples/blog/part-two.html) and now I'm following the next tutorial that adds Authentication (http://book.cakephp.org/2.0/en/ tutorials-and-examples/blog-auth-example/auth.html) Even after copying and pasting the UsersController class, I still get this fatal error: Fatal error: Call to a member function allow() on a non-object in / Users/nate/Sites/cakeblog.local/html/app/Controller/ UsersController.php on line 8 I appreciate the help :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Following blog auth tutorial and get fatal error
Attach 'Auth' component to Users controller or AppController ?php// app/Controller/UsersController.phpclass UsersController extends AppController { public $components = array('Auth'); public function beforeFilter() { ... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Best practice for pending/approved flag for comments in a blog
Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Best practice for pending/approved flag for comments in a blog
You can review CakeDC comments plugin https://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Best practice for pending/approved flag for comments in a blog
Thank you both for the useful help. Regards, Boyan On Thu, Oct 6, 2011 at 3:36 PM, euromark dereurom...@googlemail.com wrote: it seems a simply boolean (tinyint 1) is enough in your case On 6 Okt., 15:14, Zaky Katalan-Ezra procsh...@gmail.com wrote: You can review CakeDC comments pluginhttps://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Best practice for pending/approved flag for comments in a blog
You might want to consider a field for the id of the reviewer, something to indicate their decision (they might decline it) and the time/date of that decision. Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 6 Oct 2011, at 15:08, Boyan Penev wrote: Thank you both for the useful help. Regards, Boyan On Thu, Oct 6, 2011 at 3:36 PM, euromark dereurom...@googlemail.com wrote: it seems a simply boolean (tinyint 1) is enough in your case On 6 Okt., 15:14, Zaky Katalan-Ezra procsh...@gmail.com wrote: You can review CakeDC comments pluginhttps://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Best practice for pending/approved flag for comments in a blog
Have you tried using disqus plugin? It works rather smoothly. On Oct 6, 2011 10:13 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: You might want to consider a field for the id of the reviewer, something to indicate their decision (they might decline it) and the time/date of that decision. Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 6 Oct 2011, at 15:08, Boyan Penev wrote: Thank you both for the useful help. Regards, Boyan On Thu, Oct 6, 2011 at 3:36 PM, euromark dereurom...@googlemail.com wrote: it seems a simply boolean (tinyint 1) is enough in your case On 6 Okt., 15:14, Zaky Katalan-Ezra procsh...@gmail.com wrote: You can review CakeDC comments pluginhttps://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog Tut help
Just use the Helper Html in your Controller. public $helpers = array('Html','Javascript'); On Sep 9, 9:17 am, Jeremy Williams cop...@gmail.com wrote: I did the blog tut on: http://book.cakephp.org/view/1528/Blog; and i have an error: Notice (8): Undefined property: View::$Html [APP\views \posts\index.ctp, line 4] basically i am too new to cakephp to understand what this means or how to fix it. Here is some other information it gives me, hope it can help you help me. h1Blog posts/h1 p?php echo $this-Html-link(Add Post, array('action' = 'add')); ?/p include - APP\views\posts\index.ctp, line 4 View::_render() - CORE\cake\libs\view\view.php, line 718 View::render() - CORE\cake\libs\view\view.php, line 417 Controller::render() - CORE\cake\libs\controller\controller.php, line 861 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 243 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 206 require - APP\webroot\index.php, line 83 [main] - CORE\index.php, line 55 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog Tut help
there are some defaultness just in place of var we can use varchar On Fri, Sep 9, 2011 at 9:09 PM, Sam Sherlock sam.sherl...@gmail.com wrote: I added the code from prev post to your code below. as you add more controllers you'd be better off adding general comps helpers to the app_controller - S On 9 September 2011 16:21, Jeremy Williams cop...@gmail.com wrote: this is my controller. ?php class PostsController extends AppController { var $name = 'Posts'; var $helpers = array( 'Form', 'Html', 'Session' ); var $components = array('Session'); function index() { $this-set('posts', $this-Post-find('all')); } function view($id) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } function add() { if (!(empty($this-data))) { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been saved.'); $this-redirect(array('action' = 'index')); } } } function delete($id) { if ($this-Post-delete($id)) { $this-Session-setFlash('The post with id: ' . $id . ' has been deleted.'); $this-redirect(array('action' = 'index')); } } function edit($id = null) { $this-Post-id = $id; if (empty($this-data)) { $this-data = $this-Post-read(); } else { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been updated.'); $this-redirect(array('action' = 'index')); } } } } ? -- 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Blog Tut help
I did the blog tut on: http://book.cakephp.org/view/1528/Blog; and i have an error: Notice (8): Undefined property: View::$Html [APP\views \posts\index.ctp, line 4] basically i am too new to cakephp to understand what this means or how to fix it. Here is some other information it gives me, hope it can help you help me. h1Blog posts/h1 p?php echo $this-Html-link(Add Post, array('action' = 'add')); ?/p include - APP\views\posts\index.ctp, line 4 View::_render() - CORE\cake\libs\view\view.php, line 718 View::render() - CORE\cake\libs\view\view.php, line 417 Controller::render() - CORE\cake\libs\controller\controller.php, line 861 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 243 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 206 require - APP\webroot\index.php, line 83 [main] - CORE\index.php, line 55 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog Tut help
have you got helpers array in the controller? you may have various helpers in the array. check the app_controller too var $helpers = array( 'Html' ); - S On 9 September 2011 15:17, Jeremy Williams cop...@gmail.com wrote: I did the blog tut on: http://book.cakephp.org/view/1528/Blog; and i have an error: Notice (8): Undefined property: View::$Html [APP\views \posts\index.ctp, line 4] basically i am too new to cakephp to understand what this means or how to fix it. Here is some other information it gives me, hope it can help you help me. h1Blog posts/h1 p?php echo $this-Html-link(Add Post, array('action' = 'add')); ?/p include - APP\views\posts\index.ctp, line 4 View::_render() - CORE\cake\libs\view\view.php, line 718 View::render() - CORE\cake\libs\view\view.php, line 417 Controller::render() - CORE\cake\libs\controller\controller.php, line 861 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 243 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 206 require - APP\webroot\index.php, line 83 [main] - CORE\index.php, line 55 -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog Tut help
this is my controller. ?php class PostsController extends AppController { var $name = 'Posts'; var $components = array('Session'); function index() { $this-set('posts', $this-Post-find('all')); } function view($id) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } function add() { if (!(empty($this-data))) { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been saved.'); $this-redirect(array('action' = 'index')); } } } function delete($id) { if ($this-Post-delete($id)) { $this-Session-setFlash('The post with id: ' . $id . ' has been deleted.'); $this-redirect(array('action' = 'index')); } } function edit($id = null) { $this-Post-id = $id; if (empty($this-data)) { $this-data = $this-Post-read(); } else { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been updated.'); $this-redirect(array('action' = 'index')); } } } } ? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog Tut help
I added the code from prev post to your code below. as you add more controllers you'd be better off adding general comps helpers to the app_controller - S On 9 September 2011 16:21, Jeremy Williams cop...@gmail.com wrote: this is my controller. ?php class PostsController extends AppController { var $name = 'Posts'; var $helpers = array( 'Form', 'Html', 'Session' ); var $components = array('Session'); function index() { $this-set('posts', $this-Post-find('all')); } function view($id) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } function add() { if (!(empty($this-data))) { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been saved.'); $this-redirect(array('action' = 'index')); } } } function delete($id) { if ($this-Post-delete($id)) { $this-Session-setFlash('The post with id: ' . $id . ' has been deleted.'); $this-redirect(array('action' = 'index')); } } function edit($id = null) { $this-Post-id = $id; if (empty($this-data)) { $this-data = $this-Post-read(); } else { if ($this-Post-save($this-data)) { $this-Session-setFlash('Your post has been updated.'); $this-redirect(array('action' = 'index')); } } } } ? -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Is there a CakePHP blog package?
Hi guys! Is there available somewhere a blog app that could be used for free? So I have a base and I can extend what I need. I've looked on the bakery but I din't found anything. What I'm looking for is basically comments moderation and user roles. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Is there a CakePHP blog package?
Have a look at http://croogo.org/ Jeremy Burns Class Outfit http://www.classoutfit.com On 22 Jul 2011, at 10:26, DierRe wrote: Hi guys! Is there available somewhere a blog app that could be used for free? So I have a base and I can extend what I need. I've looked on the bakery but I din't found anything. What I'm looking for is basically comments moderation and user roles. -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Is there a CakePHP blog package?
Perfect, thank you very much Jeremy. On 22 Lug, 11:31, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Have a look athttp://croogo.org/ Jeremy Burns Class Outfit http://www.classoutfit.com On 22 Jul 2011, at 10:26, DierRe wrote: Hi guys! Is there available somewhere a blog app that could be used for free? So I have a base and I can extend what I need. I've looked on the bakery but I din't found anything. What I'm looking for is basically comments moderation and user roles. -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Is there a CakePHP blog package?
Croogo is a CMS codeigniter based, and not a blog system. Just for information. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Is there a CakePHP blog package?
It's based on Cake, not CodeIgniter, and can handle blogs. Jeremy Burns Class Outfit http://www.classoutfit.com On 22 Jul 2011, at 11:12, Fábio Luciano wrote: Croogo is a CMS codeigniter based, and not a blog system. Just for information. -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
blog question
Hi. I am trying to create a blog with cakephp and on the screen where the user enters their post, selects their user name, etc., I would like there to be a list down add the bottom of the screen that lists the tag(s) a user can stick to their blog post. How would I accomplish this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Develop Blog Using CakePHP
hi!, How to develop Blog using 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Develop Blog Using CakePHP
Read the manual: http://book.cakephp.org/view/1528/Blog Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 6 May 2011, at 09:43, Chathu wrote: hi!, How to develop Blog using 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Develop Blog Using CakePHP
http://book.cakephp.org/view/1528/Blog -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/6 Chathu chath...@gmail.com hi!, How to develop Blog using 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog example not working - need edit in View
I think what dalvarez spotted out is exactly why I got into this problem! Thank you! On Mon, Feb 14, 2011 at 5:25 AM, dalvarez dannyalvarez...@gmail.com wrote: I actually ran across the same exact problem. After looking at CakePHP's downloads page on Github, I noticed that 1.3-dev.zip was listed higher than 1.3.7.zip. I think that the confusion lies in the fact that I (and maybe others) mistook this to be a newer version than 1.3.7 and downloaded that version instead. I'm downloading the 1.3.7 version now to try it out. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Blog example not working - need edit in View
I actually ran across the same exact problem. After looking at CakePHP's downloads page on Github, I noticed that 1.3-dev.zip was listed higher than 1.3.7.zip. I think that the confusion lies in the fact that I (and maybe others) mistook this to be a newer version than 1.3.7 and downloaded that version instead. I'm downloading the 1.3.7 version now to try it out. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php