hello world in codeigniter
First of all you need to copy the downloaded codeigniter files into the xampp->htdocs. Then simply follow the steps below :
- Navigate to application->views->welcome_message.php
- Remove all the waste contents and just type hello world inside the body tag.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<body>
hello world
</body>
</html>
- go to your browser and search http://localhost/CodeIgniter/
- note that, instead of CodeIgniter in the link, you just paste the filename of your codeigniter folder and hit enter.
You now just printed a hello world in codeigniter.
⇐Prev
Next⇒
Comments
Post a Comment