CakePHP Framework for XAMPP

for run cakephp freamwork on XAMPP server change




xampp/apache/conf/httpd.conf


LoadModule rewrite_module modules/mod_rewrite.so


remove # befor it

for tutorial

http://www.sitepoint.com/application-development-cakephp/

Error: MypostController could not be found. // problem  1

// solution
Error: Create the class MypostController below in file: app\controllers\mypost_controller.php

<?php
class MypostController extends AppController {

var $name = ‘Mypost’;
}
?>

Error: Database table myposts for model Mypost was not found. // problem 2

// solution

create myposts   table in database

Error: The action index is not defined in controller MypostController // problem 3

// solution

Error: Create MypostController::index() in file: app\controllers\mypost_controller.php.

<?php
class MypostController extends AppController {

var $name = ‘Mypost’;

function index() {

}

}
?>

Error: The view for MypostController::index() was not found. // problem 4

// solution

Error: Confirm you have created the file: C:\xampp\htdocs\cakephp\app\views\mypost\index.ctp

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s