how to start

Hi community,

just having a first contact to cake.

I tried an example from a magazin and cannot get it startet.

I extracted the cakePHP files to //localhost/test/ in a way, that the folder /app/ appears directly under ...test/...

/test/index.php in says,

Mysql OK

temp OK

etc

PHP5 ist working and can access mysql.

Following the example I created the mysql tables jobs und companies with id and company_id in jobs, changed salt, filled in the database configuration etc.

I created the 2 models under /test/app/models/job.php and ... company.php

I created the 2 controllers /test/app/controllers/jobs_controller.php and comp.. with scaffold.

Now I should be able to access the companies over localhost/test/companies, the article says. Apache answers Error 404 File not found, which I understand, because the file localhost/test/companies/index.php does not exist. Is there anything else, I have to do, to create these files or is there a basibc misunderstanding? The article says nothing and I cannot anything out of the tutorial etc.

In addition:

The site test/index.php looks a little different to what the magazin says. Instead of green bars the following warning shows:

Warning: strtotime() [http://php.net/function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_...........................

Is there anyone, who can give me a hint?

Thanks in advance and

All the best Michael

Asked by michaelbeecken, on 1/3/10

2 Answers

sounds like you dont have modRewrite working, when using cakephp you will never see index.php in the url when its set up correctly

when you go to localhost/test/ you should see the green bars

make sure that you have all the .htaccess files set up and in the right place, you can just copy them from the zip file you downloaded. if it is still not working you will need to play with your apache setup

Answered by dogmatic69on 1/3/10

Thank you very much! Now erything is green and it works all properly.

Michael

michaelbeecken - on 2/3/10

<< comments | comments >>

maybe you didn't have modrewrite modulu..

open httpd.conf and remove # in loadModule modrewrite. restart apache and going to http://localhost/test/companies/index

good luck..

Answered by janontelon 2/3/10

Thank you very much! Now erything is green and it works all properly.

Michael

michaelbeecken - on 2/3/10

<< comments | comments >>
<< previous next >>

Rating

0

Viewed

171 times

Last Activity

on 2/3/10