Problem with 'Hello World' |
[eluser]ammtar[/eluser]
This is my first contact with framework. with CI too, of course. I downloaded CI, unpacked in MAMP, started first tutorial, "Hello World" - and got white screen!?!?!?!? No error but the screen, view source as well, is empty. Not so promising beginning :-( 1. unpacked zip and renamed to ci 2. moved ci to htdocs (MAMP) 3. in "controllers" created file "site.php", as said in tutorial 4. Code: class Site extends Controller 5. open browser: localhost/ci I'm getting "Welcome to CodeIgniter" message 6. opening localhost/ci/index.php/site/index, as it said in tutorial, and - nothing. Empty page. View source is empty too. If my version of CI and version of CI used in the video tutorial are not "compatible" where to find correct on? What I supposed to do before? Thanks for any help. Afan
[eluser]tomcode[/eluser]
Since CI 2.0, You need to extend CI_Controller instead of Controller Code: class Site extends CI_Controller 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
[eluser]danmontgomery[/eluser]
or use http://ellislab.com/codeigniter/user-guide/toc.html, which is up to date.
[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 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. |
Welcome Guest, Not a member yet? Register Sign In |