Welcome Guest, Not a member yet? Register   Sign In
Help me
#1

[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
#2

[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
#3

[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.
#4

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

Code:
class New extends CI_Controller

?
#5

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

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

[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.
#7

[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.
#8

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




Theme © iAndrew 2016 - Forum software by © MyBB