An open API service indexing awesome lists of open source software.

https://github.com/fauzan1892/php-mvc-codekop

A simple open web project using php mvc frameworks from Codekop
https://github.com/fauzan1892/php-mvc-codekop

php php-pdo

Last synced: 7 months ago
JSON representation

A simple open web project using php mvc frameworks from Codekop

Awesome Lists containing this project

README

          

## Codekop PHP MVC Codekop Version 1.0 ( Beta )
A simple open web project using php mvc frameworks from Codekop

## Starter Apps :
setting base url on index : app/Config/Config.php


$config['base_url'] = "http://".$_SERVER['HTTP_HOST'].preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])).'/';

## Default Controller
setting default controller : app/Config/Routes.php


$routes['DefaultController'] = 'Home::index';

## Setting Database

setting database : app/Config/Database.php


$dbhost_ = 'localhost'; // host your server
$dbname_ = ''; // your database name
$dbuser_ = 'root'; // user your server
$dbpass_ = ''; // pass your server

## Model View Controller
create models in codekop framework on app/Models


create controller in codekop framework on app/Controllers


create views in codekop framework on app/Views :
how to use views in controller example :


// controller
public function index()
{
$data['title'] = 'Selamat datang di codekop php mvc';
$this->show->view('welcome_view', $data);
}

## Contributors

fauzan1892 Github


Fauzan Portfolio Website


Codekop.com