CodeIgniter Forums
Help me - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Help me (/showthread.php?tid=41576)



Help me - El Forum - 05-11-2011

[eluser]Faitas[/eluser]
Hello, I'm a new guy in this forum. I live in Lithuania, so I can speak with grammatical errors and I'm very sorry.

So, I heard about CodeIgniter and I downloaded this. I tried to install CodeIgniter, but CodeIgniter doesn't work. I writed a code in application/contollers in file name new.php:
Code:
class New extends Contoller
{  
   function index()
   {
      echo "Hello word";
   }
}

Then I went in http://localhost/ci/index.php/New/, but I didn't see anything. I tried a link: http://localhost/ci/index.php/New/index.php, but I didn't see anything.

Help me, please! Smile


Help me - El Forum - 05-11-2011

[eluser]cideveloper[/eluser]
Try changing to this

Code:
class New extends CI_Contoller
{  
   function index()
   {
      echo "Hello word";
   }
}

then go to http://localhost/ci/index.php/new


Help me - El Forum - 05-11-2011

[eluser]Rok Biderman[/eluser]
Is your Welcome controller (the file already inside controllers folder) working ok? Besides, since CI 2.0.0, you have to

Code:
class New extends CI_Contoller

as the naming have changed.


Help me - El Forum - 05-11-2011

[eluser]Krumpet[/eluser]
I too am new to CI, but shouldn't it be...

Code:
class New extends CI_Controller

?


Help me - El Forum - 05-11-2011

[eluser]danmontgomery[/eluser]
You can't name a class "New".

http://www.php.net/manual/en/reserved.keywords.php


Help me - El Forum - 05-12-2011

[eluser]Faitas[/eluser]
It's don't work. I tried with Blog and then went to http://localhost/ci/index.php/blog, but it's don't work. Please, help me.


Help me - El Forum - 05-12-2011

[eluser]Rok Biderman[/eluser]
[quote author="Coccodrillo" date="1305153774"]Is your Welcome controller (the file already inside controllers folder) working ok?[/quote]

I like quoting myself, lol.


Help me - El Forum - 05-12-2011

[eluser]Faitas[/eluser]
I'm sorry. Smile In my controllers folder are blog.php and index.html files. http://clip2net.com/s/VXiY