08-12-2009, 02:44 PM
[eluser]fariad22[/eluser]
I am new to codeignitor but a great wish to use it. I have made this code as my first program of codeignitor:
<?php
class HelloWorld extends Controller {
//intializer function
function HelloWord ()
{
parent:Controller();
}
function index()
{
$data['title'] = "My first application created with Code Ignitor";
$data['message'] = "Hello World!!!";
//load this to view
$this->load->view('helloworld', $data);
}
}
?>
I saved this file in "application/view" folder but i don't know how to keep this code in one file or have to made separate file for html to show data on visitors browser
Welcome for complete lesson... for the begning...
I am new to codeignitor but a great wish to use it. I have made this code as my first program of codeignitor:
<?php
class HelloWorld extends Controller {
//intializer function
function HelloWord ()
{
parent:Controller();
}
function index()
{
$data['title'] = "My first application created with Code Ignitor";
$data['message'] = "Hello World!!!";
//load this to view
$this->load->view('helloworld', $data);
}
}
?>
I saved this file in "application/view" folder but i don't know how to keep this code in one file or have to made separate file for html to show data on visitors browser
Welcome for complete lesson... for the begning...