Re: File Not Found When Trying To Scaffold
Because WAMP ships with mod_rewrite disabled this is becoming a real FAQ for new users. What about making a small change to the trunk .htaccess to include something like the following: IfModule !mod_rewrite.c SetEnv CAKEPHP_NOMODREWRITE 1 /IfModule and then in core.php doing something like: if(env('CAKEPHP_NOMODREWRITE')) { define ('BASE_URL', env('SCRIPT_NAME')); } This would basically make the cake pretty url's on by default and save people having this problem (and having to answer it all the time). Thoughts? j. On 6/9/06, AD7six [EMAIL PROTECTED] wrote: Hi TheMaab, You need to enable Mod_rewrite (windows with apache has no problems using mod_rewrite) OR change your config to use cake pretty urls. At the moment you are using mod_rewrite urls (which is the default) without mod_rewrite enabled, which isn´t going to work. To enable mod_rewrite you need to make some changes to your httpd.conf, and ensure that the .htaccess files are in place. here's a url that´s useful for just about any problem: http://www.cakephp.org/search/index/mod_rewrite. Be wary of accepting info in the wiki as gospel (it´s primarily user written), the manual is where the most accurate info is to be found. I´m sure that you´ll find the solution in either the manual or the wiki or the google group (as it's a pretty common topic to have been discussed ;) ) Cheers, AD7six --~--~-~--~~~---~--~~ 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: File Not Found When Trying To Scaffold
I like that idea, not that that matters ;). only problem is that not all installations permit .htaccess files, which is something else to check for. Might be worth submitting an enhancement ticket to see if one of the core bakers picks it up. Cheers, AD7six --~--~-~--~~~---~--~~ 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: File Not Found When Trying To Scaffold
what does the error message say, and does the file exist? Cheers, AD7six --~--~-~--~~~---~--~~ 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: File Not Found When Trying To Scaffold
Hi theMaab, Having read your message again, If you are getting a standard 404 - File not found error message, you probably need to either enable mod_rewrite or switch to using cake pretty urls. If this is the case there are instructions at http://manual.cakephp.org/chapter/3 section 4 . If you are getting a cake error (an actual web page that says Missing controller You are seeing this error because controller AsdfController could not be found. or something similar) What is the error message. Cheers, AD7six --~--~-~--~~~---~--~~ 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: File Not Found When Trying To Scaffold
Hello AD7six, I'm running Apache on Windows (with WAMP). I did a quick test and mod_rewrite is not working, I didn't think it did in windows. But, I did have Cake up and running w/ WAMP before. And I didn't have to do anything special to get it working then. That is why I assumed something else was wrong. When trying to goto: http://localhost:/onthetee/fees/ (my controller and model is called fees/fee) I get the message in my browser: The requested URL /onthetee/fees was not found on this server. Thanks for your help, really appreciated, theMaab --~--~-~--~~~---~--~~ 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: File Not Found When Trying To Scaffold
BTW, the error is a 404 Not Found in browser title, but does not say 404 in the body --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---