Welcome Guest, Not a member yet? Register   Sign In
'Hello World' problem
#1

[eluser]george++[/eluser]
Hi Igniters!
I decided to play with the CodeIgniter because it looks very interesting. I've set up without problem the framework and I've followed the 'Hello World' video tutorial without problem up to the point where you can echo the 'Hello World' message.
But I am not able to continue to the next stage in which you load the blog_view view. My web browser shows an empty page. What I am doing wrong?

Thanks in advance!
#2

[eluser]parham90[/eluser]
Hello,

Would you please paste us your code so we can better assist you?

Thanks.
#3

[eluser]george++[/eluser]
Thank you for your reply.
Please note that I am working in localhost using the WampServer

Code for blog.php file:
Code:
<?php

class Blog extends Controller
{
    function index()
    {
        this->load->view('blog_view');
    }
}

?>

Code for blog_view.php file:
Code:
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>My First Heading</h1>
&lt;/body&gt;
&lt;/html&gt;
#4

[eluser]WanWizard[/eluser]
Ehh... 'this' must be '$this'?
#5

[eluser]george++[/eluser]
Oops! shame on me!
Sorry guys, I am totally new not only in the CodeIgniter but also in the PHP
It works know.




Theme © iAndrew 2016 - Forum software by © MyBB