I have moved my writing to my own site at http://komunitasweb.com
Please see my newest tutorial on CodeIgniter, building simple to do list application
This is my blog about codeigniter framework, php and so
I have moved my writing to my own site at http://komunitasweb.com
Please see my newest tutorial on CodeIgniter, building simple to do list application
* {
margin:0;
padding:0;
}
#message {
margin:10px;
padding:10px;
border:1px solid #e1e1e1;
}
.info {
margin-top:15px;
color:#fff;
background: #237295;
padding:4px;
}
<?php
class Blog extends Controller {
function index() {
$data['title'] = "Yet another blog tutorial";
$data['blogs'] = array();
$this->load->helper('url');
$this->load->view('blog/index', $data);
}
}
?>
<html>
<head>
<title><?= $title ?></title>
<link rel='stylesheet' type='text/css' media='all'
href='<?php echo base_url()."css/style.css"?>' />
</head>
<body>
<div id="message">
<h1>Welcome to CSS layout!</h1>
This style from style.css
<div class="info">Page rendered in {elapsed_time}
seconds</div>
</div>
</body>
</html>
CodeIgniter is installed in four steps:
- Unzip the package.
- Upload the CodeIgniter folders and files to your server. Normally the index.php file will be at your root.
- Open the application/config/config.php file with a text editor and set your base URL.
- If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings.
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworksCodeigniter is one of those frameworks that is influenced by Ruby on Rails. It's offer MVC (Model-View-Controller), great manual, community. It is developed by pMachine, who also create Expression Engine CMS. Actually most of the code was taken from the Expression Engine (CMIIW).