Welcome Guest, Not a member yet? Register   Sign In
Problem with 'Hello World'
#5

[eluser]ammtar[/eluser]
[quote author="tomcode" date="1312405070"]Since CI 2.0, You need to extend CI_Controller instead of Controller

Code:
class Site extends CI_Controller
{
    function index()
    {
       echo "Hello World";
    }
}

edit: Use the user guide bundled with the distribution, a lot of tutorials available still refer to CI 1.* versions, CI 2.* has some fundamental changes[/quote]

yup... that's it...

thanks.


Messages In This Thread
Problem with 'Hello World' - by El Forum - 08-03-2011, 09:21 AM
Problem with 'Hello World' - by El Forum - 08-03-2011, 09:35 AM
Problem with 'Hello World' - by El Forum - 08-03-2011, 09:57 AM
Problem with 'Hello World' - by El Forum - 08-03-2011, 11:17 AM
Problem with 'Hello World' - by El Forum - 08-03-2011, 11:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB