Thank You Grant, I will try that.
On Dec 20, 12:19 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> This post is also in reply to your email...
>
> Set your error_reporting in php.ini to E_ALL & ~E_STRICT - you don't
> want to see strict errors everywhere (CakePHP is not PHP5 strict
> compatible, as it has to be PHP4 compatible).
>
> If you can see the default main page by going tohttp://localhost/cake,
> then you will want to go tohttp://localhost/cake/poststo view the
> posts controller.
>
> This is assuming everything is otherwise working. I haven't actually
> followed the blog tutorial, but the basic steps would be:
> 1. Set the right settings in the /app/config/database.php
>
> 2. Set a random string for CAKE_SESSION_STRING in /app/config/core.php
> (otherwise cake may warn you every request - depending on the cake
> version).
>
> 3. Viewhttp://localhost (orhttp://localhost/cake, whatever is
> correct to get to your main cake folder)
>
> 4. Viewhttp://localhost/pages/home- if step 3 above works but this
> one doesn't, then your mod_rewrite is not working.
>
> 5. Create a /app/models/post.php:
> <?php
> class Post extends AppModel
> {
> var $name = 'Post';}
>
> ?>
>
> 6. Create a /app/controllers/posts_controller.php
> <?php
> class PostsController extends AppController
> {
> var $name = 'Posts';
> var $scaffold = true;}
>
> ?>
>
> 7. Now viewhttp://localhost/poststo see the scaffolded pages
>
> From here on, actually create functions in your controller, and
> corresponding view files in /app/views/posts . But if you get this
> far, it's basically all up and running.
>
> On Dec 20, 12:10 pm, indy50 <[EMAIL PROTECTED]> wrote:
>
> > This is from my core.php
>
> > * Set a random string of used in session.
> > *
> > */
> > define('CAKE_SESSION_STRING',
> > 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
>
> > On Dec 17, 6:12 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> > > You shouldn't need to change a single file for Cake to work (to see
> > > the default "cake has been installed" page). For your application to
> > > work, you will need to provide the appropriate database connection
> > > details (/app/config/database.php), and set a unique session key (/app/
> > > config/core.php). There is no need to change any other files, unless
> > > you
> > > - are using a non-standard folder structure
> > > - don't have mod_rewrite enabled
> > > - are using an apache alias rather than setting your document root to
> > > the /app/webroot folder
>
> > > none of which are recommended.
>
> > > On Dec 18, 12:42 am, indy50 <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for your help. I am using cake_1.1.18.5850
>
> > > > I used to have my public_html page just under C: as C:/public_html. I
> > > > never liked having it way down in the Apache folder htdocs as it takes
> > > > too long to go down all those directories.
>
> > > > But I moved it to My Documents so all my files would be there for
> > > > backup ease. I found it worked fine as long as I put the path in
> > > > DocumentRoot in Apache config. I'm thinking of going back to the C:/
> > > > public_html.
>
> > > > I'm going to try that Apache line mentioned.
>
> > > > QUESTION: Since the manual said you didn't really have to mess with
> > > > the configs in cake if you use DocumentRoot, I tried not to change
> > > > anything. But what about DS, Directory Separator or anything like
> > > > that? Do I have to change it to / or \ or other changes in cake?
>
> > > > I really wish there was just one config cake file like Apache
> > > > httpd.conf and php.ini with clear explainations in each. There seems
> > > > to be many places in Cake that may need changed like the cake/index
> > > > cake/app/config/core routes etc... I don't feel confident at all about
> > > > it as it looks like it's all over the place. Once I get it working and
> > > > understand it a little better I'm sure I'll feel better about it.
>
> > > > Thanks- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---