can't acess my helloworld.php file

Problems with the Windows version of XAMPP, questions, comments, and anything related.

can't acess my helloworld.php file

Postby kwokwai » 22. March 2010 11:57

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
kwokwai
 
Posts: 3
Joined: 22. March 2010 05:08

Re: can't acess my helloworld.php file

Postby Nobbie » 22. March 2010 12:11

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.
Nobbie
 
Posts: 8762
Joined: 09. March 2008 13:04

Re: can't acess my helloworld.php file

Postby solat » 24. March 2010 19:10

Definitely a Cake-php issue. You need to look up and understand the structure of Cake applications, and the MVC architecture.
solat
 
Posts: 3
Joined: 23. March 2010 06:19


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 33 guests