Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Does not run Hello world
#11

[eluser]Dam1an[/eluser]
I just tried his original, with the funny quotes, and it gives a parse error
Code:
Parse error: parse error, expecting `','' or `';'' in C:\xampp\htdocs\project_trackr\controllers\blog.php on line 6
so thats either not the problem or he neglected to mention the error
#12

[eluser]codeman[/eluser]
Still Nothing Guys,

Here is my code and URL I am using

Code:
<?php
class Blog extends controller{

   function __construct(){
        parent::Controller();
    }
  
   function index(){
          echo "hello world";
    }

}
?>

and I am using http://My IP/CodeIgniter/index.php/blog/

I have PHP 5 running on my local Host and PHP 5 is working fine

Please help me,
Thanks,
#13

[eluser]Dam1an[/eluser]
Put an echo in your constructor, see if it even gets that far
#14

[eluser]jdfwarrior[/eluser]
Did you move the app or system folders around? If you just take the system folder and drop it in the root with the index.php it should just work. Are you getting an error? What is it doing? "its not working" doesnt exactly tell us much about whats going on.
#15

[eluser]codeman[/eluser]
NO echo is not working either and here is my path

/root/Codeigniter/System/Controllers/Blog.php

I am not getting any error - it shows blank page with nothing - just white page, sometimes i feel errors are better than no error problems

I am not sure what ami doing wrong - i am following simple instruction form the code igniter website

why is it this complicated, By the way great help - you guys are fast in replyinh - unsually great
#16

[eluser]jdfwarrior[/eluser]
put it in system/app/controllers
#17

[eluser]codeman[/eluser]
Yes thats where my blog.php file is
#18

[eluser]jdfwarrior[/eluser]
no theres a difference. In the system folder, there should be an application folder, inside of that is a controllers folder. It should be there. You didnt have application in the path for your blogs.php file earlier
#19

[eluser]codeman[/eluser]
oops sorry - ya it is there, my bad, so path is also right,

My code is also right, and my PHP 5 is working fine so what is the problem
#20

[eluser]jdfwarrior[/eluser]
How did you confirm php was working? phpinfo()?
where is the index.php located? root?




Theme © iAndrew 2016 - Forum software by © MyBB