Re: 15 minute Blog Tutorial? Really?
ehm, did you change *function index.php { }* to *function index.ctp{ }* ? it should be * function index{ }* and have app/views/posts/index.ctp greetings. 2010/10/10 Jeff jeffri...@gmail.com Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias cakephpi...@gmail.com wrote: Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran Iglesias cakephpi...@gmail.comhttp://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
sry, typo on my side. function index(){ } ^^ 2010/10/11 Jos Gerrits josgerrit...@gmail.com ehm, did you change *function index.php { }* to *function index.ctp{ }* ? it should be * function index{ }* and have app/views/posts/index.ctp greetings. 2010/10/10 Jeff jeffri...@gmail.com Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias cakephpi...@gmail.com wrote: Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran Iglesias cakephpi...@gmail.comhttp://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
15 minute Blog Tutorial? Really?
Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
it IS index.ctp - my typo on the previous post, but the file actually IS index.ctp and I get the same result when requesting index.ctp instead of index.php On Oct 10, 2:42 pm, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
To check if mod-rewrite is enabled check the main page of your site ( http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff jeffri...@gmail.com wrote: How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
I'm not trying to be argumentative here ... but we're already beyond my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now recall reading about this previously in the docs) IS working fine as I do have the cake image in the upper left corner and CSS is applied to warnings and things checking out OK on the main index page. So ... all the 'file shifters' seem to be doing what they're supposed to do but that still doesn't explain the framework not recognizing files uploaded to the server. Now what? On Oct 10, 3:13 pm, Ma'moon phpir...@gmail.com wrote: To check if mod-rewrite is enabled check the main page of your site (http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff jeffri...@gmail.com wrote: How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to
Re: 15 minute Blog Tutorial? Really?
How are you accessing your site? please post the URL that you are using to access the index page On Sun, Oct 10, 2010 at 4:20 PM, Jeff jeffri...@gmail.com wrote: I'm not trying to be argumentative here ... but we're already beyond my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now recall reading about this previously in the docs) IS working fine as I do have the cake image in the upper left corner and CSS is applied to warnings and things checking out OK on the main index page. So ... all the 'file shifters' seem to be doing what they're supposed to do but that still doesn't explain the framework not recognizing files uploaded to the server. Now what? On Oct 10, 3:13 pm, Ma'moon phpir...@gmail.com wrote: To check if mod-rewrite is enabled check the main page of your site ( http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff jeffri...@gmail.com wrote: How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at
Re: 15 minute Blog Tutorial? Really?
And also please raise the debug level to 2 (edit app/config/core.php file and alter the value of 'debug' to 2) and post the errors that you see in there On Sun, Oct 10, 2010 at 4:20 PM, Jeff jeffri...@gmail.com wrote: I'm not trying to be argumentative here ... but we're already beyond my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now recall reading about this previously in the docs) IS working fine as I do have the cake image in the upper left corner and CSS is applied to warnings and things checking out OK on the main index page. So ... all the 'file shifters' seem to be doing what they're supposed to do but that still doesn't explain the framework not recognizing files uploaded to the server. Now what? On Oct 10, 3:13 pm, Ma'moon phpir...@gmail.com wrote: To check if mod-rewrite is enabled check the main page of your site ( http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff jeffri...@gmail.com wrote: How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor
Re: 15 minute Blog Tutorial? Really?
Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php On Oct 10, 3:38 pm, Ma'moon phpir...@gmail.com wrote: And also please raise the debug level to 2 (edit app/config/core.php file and alter the value of 'debug' to 2) and post the errors that you see in there On Sun, Oct 10, 2010 at 4:20 PM, Jeff jeffri...@gmail.com wrote: I'm not trying to be argumentative here ... but we're already beyond my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now recall reading about this previously in the docs) IS working fine as I do have the cake image in the upper left corner and CSS is applied to warnings and things checking out OK on the main index page. So ... all the 'file shifters' seem to be doing what they're supposed to do but that still doesn't explain the framework not recognizing files uploaded to the server. Now what? On Oct 10, 3:13 pm, Ma'moon phpir...@gmail.com wrote: To check if mod-rewrite is enabled check the main page of your site ( http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff jeffri...@gmail.com wrote: How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, Ma'moon phpir...@gmail.com wrote: Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire renat...@gmail.com wrote: what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. ?php class PostsController extends AppController { var $name = 'Posts'; function index.php() { } } ? Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } } ? So now what? Anyone with help ... please? Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe
Re: 15 minute Blog Tutorial? Really?
Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en
Re: 15 minute Blog Tutorial? Really?
Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias cakephpi...@gmail.com wrote: Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran Iglesias cakephpi...@gmail.comhttp://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en