Re: Installation into subdirectory - "Missing Controller" errors
Hi Dardo, Thanks for the response. On your recommendation I've upgraded to Cake 1.2, and it does make things easier. This error, I'm afraid, was an embarrassingly simple mistake. The webserver response was exactly right; the files were missing. When I imported the project into Eclipse I accidentally made a *copy* of the source, so all my changes were written to a different location! Many thanks. I'll be more meticulous about things next time. Kind regards, Matt. On Mar 27, 8:06 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > It should be printing in that error page the route to where it is > expecting the file and the class name, double check both. > > If you are starting with cake, I recommend you start with cake 1.2 > (http://book.cakephp.org) it is far better, and you will find more > documentation, code, and people using it. > > On Thu, Mar 27, 2008 at 4:16 PM, Matt <[EMAIL PROTECTED]> wrote: > > > Hi Group, > > > I'm new to Cake and struggling to get my first app installed. I've > > been following the blog tutorial at [1], but with one subtle > > difference in my setup: I've installed Cake into a subdirectory. > > > I dumped everything from the zip into /webroot/cake, fired my browser > > and navigated tohttp://localhost/cake. The css was missing, and so I > > modified my .htaccess to look like this: > > > > >RewriteEngine on > >RewriteBase /cake/ > >RewriteRule^$ app/webroot/[L] > >RewriteRule(.*) app/webroot/$1 [L] > > > > > Cake told me it could connect to the database, and I pressed on with > > the tutorial. Unfortunately, when I get to "Now you should be able to > > point your browser tohttp://www.example.com/posts/index"; (modified > > accordingly tohttp://localhost/cake/posts/index), I get: > > > "Missing controller. > > You are seeing this error because controller PostsController could not > > be found." > > > But PostsController is definitely there, and correct ;-) > > > I have no idea where to go from here. My guess is that the app > > directory is not where Cake is expecting it to be, but I can't find > > any clues as to where it's actually looking. > > > What am I doing wrong? > > > Many thanks, > > Matt. > > > [1]http://manual.cakephp.org/appendix/blog_tutorial --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Installation into subdirectory - "Missing Controller" errors
It should be printing in that error page the route to where it is expecting the file and the class name, double check both. If you are starting with cake, I recommend you start with cake 1.2 ( http://book.cakephp.org ) it is far better, and you will find more documentation, code, and people using it. On Thu, Mar 27, 2008 at 4:16 PM, Matt <[EMAIL PROTECTED]> wrote: > > Hi Group, > > I'm new to Cake and struggling to get my first app installed. I've > been following the blog tutorial at [1], but with one subtle > difference in my setup: I've installed Cake into a subdirectory. > > I dumped everything from the zip into /webroot/cake, fired my browser > and navigated to http://localhost/cake. The css was missing, and so I > modified my .htaccess to look like this: > > >RewriteEngine on >RewriteBase /cake/ >RewriteRule^$ app/webroot/[L] >RewriteRule(.*) app/webroot/$1 [L] > > > Cake told me it could connect to the database, and I pressed on with > the tutorial. Unfortunately, when I get to "Now you should be able to > point your browser to http://www.example.com/posts/index"; (modified > accordingly to http://localhost/cake/posts/index), I get: > > "Missing controller. > You are seeing this error because controller PostsController could not > be found." > > But PostsController is definitely there, and correct ;-) > > I have no idea where to go from here. My guess is that the app > directory is not where Cake is expecting it to be, but I can't find > any clues as to where it's actually looking. > > What am I doing wrong? > > Many thanks, > Matt. > > > [1] http://manual.cakephp.org/appendix/blog_tutorial > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Installation into subdirectory - "Missing Controller" errors
Hi Group, I'm new to Cake and struggling to get my first app installed. I've been following the blog tutorial at [1], but with one subtle difference in my setup: I've installed Cake into a subdirectory. I dumped everything from the zip into /webroot/cake, fired my browser and navigated to http://localhost/cake. The css was missing, and so I modified my .htaccess to look like this: RewriteEngine on RewriteBase /cake/ RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] Cake told me it could connect to the database, and I pressed on with the tutorial. Unfortunately, when I get to "Now you should be able to point your browser to http://www.example.com/posts/index"; (modified accordingly to http://localhost/cake/posts/index), I get: "Missing controller. You are seeing this error because controller PostsController could not be found." But PostsController is definitely there, and correct ;-) I have no idea where to go from here. My guess is that the app directory is not where Cake is expecting it to be, but I can't find any clues as to where it's actually looking. What am I doing wrong? Many thanks, Matt. [1] http://manual.cakephp.org/appendix/blog_tutorial --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---