Re: THTML files not working
Hey guys. Thanks all for the help. I think I need to follow grant's advice. At least I appreciate the general area from which my problems are issuing! All the best BN --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
Hi guys. Well, php is running fine. I get the welcome screen from Cake okay. Here's the url: http://192.168.0.2/app/views/posts/index Using just http://192.168.0.2/app gives you the Cake welcome screen Maybe it's some other url I should be using. Controller/action pair you say? I don't mind cranky if you can put up with thick! CHeers BN --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
On 10/25/06, barry_normal [EMAIL PROTECTED] wrote: Hi guys. Well, php is running fine. I get the welcome screen from Cake okay. Here's the url: http://192.168.0.2/app/views/posts/index Well, here's part of your problem. The URL should be http://192.168.0.2/app/posts/index Again, I stress, you NEVER access the views directly. It's always host/controller/action/optional-id In this case, 'host' is http://192.168.0.2/app Hope that helps. /me goes back to being cranky about writing XML parsers for XML feeds that won't follow their own documentation on what content is presented -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
RE: THTML files not working
I'm a noob and have a suggestion, get the eval copy of Nusphere's php ed , hit a page then step through the code in the debugger, I didn't really understand the controller/view mapping until today, when I stepped through the code and figured out how cake looks for your request, maps it to a controller then figures out your action, and what an action is... Its helped me a bunch. Grant. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hartjes Sent: Wednesday, October 25, 2006 11:54 AM To: cake-php@googlegroups.com Subject: Re: THTML files not working On 10/25/06, barry_normal [EMAIL PROTECTED] wrote: Hi guys. Well, php is running fine. I get the welcome screen from Cake okay. Here's the url: http://192.168.0.2/app/views/posts/index Well, here's part of your problem. The URL should be http://192.168.0.2/app/posts/index Again, I stress, you NEVER access the views directly. It's always host/controller/action/optional-id In this case, 'host' is http://192.168.0.2/app Hope that helps. /me goes back to being cranky about writing XML parsers for XML feeds that won't follow their own documentation on what content is presented -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
Thanks Ryan, If I do that though I just get a 404 page. Add .thtml to the file name and I get a window full of code... Does that make sense? Cheers BN --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
Hello Ryan, Sorry if this turns up twice. It doesn't seem to work first time though.. Anyway. If I do as you suggest, I get a 404 but then, add .thtml to the end of the url and hey presto I get a page full of code. No idea what's going on here. Any help would be great. BN --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
On 10/24/06, barry_normal [EMAIL PROTECTED] wrote: No idea what's going on here. Any help would be great. BN (cranky programmer wakes up to find thread, prepares to answer) First of all, I don't see anywhere in the blog tutorial where you are supposed to be viewing the thtml files. The thtml files are what Cake uses to display the view. You never, EVER link directly to the thtml files. In Cake, you always look at the URL that consists of a controller/action pair. It's a fundamental part of the whole Model-View-Controller paradigm that Cake uses. Controllers grab data from Models and display the results in Views. That's a gross simplification of course. Having said that, can you please tell us what URL you are actually looking at? Once we see that, then we will have a much better idea of how to fix the problem you are running into. Hope that helps and that I wasn't too cranky for you. -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
On 24-Oct-2006, at 05:16, barry_normal wrote: Hello Ryan, Sorry if this turns up twice. It doesn't seem to work first time though.. Anyway. If I do as you suggest, I get a 404 but then, add .thtml to the end of the url and hey presto I get a page full of code. No idea what's going on here. Any help would be great. BN You have, of course, confirmed that PHP is actually installed and working on your system? scott lewis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: THTML files not working
You shouldn't be browsing to .thtml files; .thtml files go in your views folders and are accessed via the file name w/out the .thtml extension - for example: e:\www\project\app\views\pages\test.thtml is viewed by browsing to http://localhost/project/app/webroot/pages/test or site.com/pages/test --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---