Page 1 of 1

can't acess my helloworld.php file

PostPosted: 22. March 2010 11:57
by kwokwai
Hi all,

I have setup xampp 1.7.3 for windows in my localhost, and I am able to see the index page: at
http://localhost:8080/

I have also downloaded cakePhp 1.2.6. and unzipped all the files to this directory under XAMPP:
htdocs/cake_1_2/
and I can see all things have been well configured at
http://localhost:8080/cake_1_2/

Your tmp directory is writable.
The FileEngine is being used for caching. To change the config edit APP/config/core.php
Your database configuration file is present.
Cake is able to connect to the database.


Then I have created a helloworld.php file:
Code: Select all
 
<?php
class helloworld extends AppController {
 
 function displaytext() {
       echo "Hello world.";
   }
 }

?>


When I tried to access this URL at
http://localhost:8080/cake_1_2/helloworld.php
, it showed me this error:
Error: Create the class Helloworld.phpController below in file: app\controllers\helloworld.php_controller.php

I have no idea how to slove this problem.

Please kindly help if you could

Re: can't acess my helloworld.php file

PostPosted: 22. March 2010 12:11
by Nobbie
I dont think this is a standard PHP or Xampp Error Message, it seems to be a cake_1_2 error message. You should ask in a corresponding forum.

Re: can't acess my helloworld.php file

PostPosted: 24. March 2010 19:10
by solat
Definitely a Cake-php issue. You need to look up and understand the structure of Cake applications, and the MVC architecture.