Welcome Guest, Not a member yet? Register   Sign In
Hello World problem for beginner
#13

[eluser]Rabbi[/eluser]
At last, i solved it. :-)

Everything is OK in CodeIgniter.
But some tutorials or user_guide isn't showing everything correct for Windows user. This is not fair!

The following thread help me 50%.
http://ellislab.com/forums/viewthread/80402/

The correct link is: (for those who are using php on Windows)
http://localhost/ci/index.php?hello/index/Bangladesh

Generic format for the windows user is:
http://localhost/ci/index.php?controller...m2/....etc

where, ci="CodeIgniter"....folder's name.

Controller's Code:
Code:
<?php
class Hello extends Controller{
    function Hello(){
        parent::Controller();
    }
    function index($name) {  
        $data['name'] = $name;  
        $this->load->view('show_name',$data);
    }
}
?>

View's Code:
Code:
<html>
    <body>
        Hello, <?=$name?>!
    </body>
</html>


Messages In This Thread
Hello World problem for beginner - by El Forum - 06-01-2008, 01:11 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:15 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:20 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:31 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:38 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:40 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:44 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:47 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:02 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:08 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:21 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:29 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:44 PM
Hello World problem for beginner - by El Forum - 06-01-2008, 07:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB