Welcome Guest, Not a member yet? Register   Sign In
HELP TO NEWBIE PLEASE HELP, Load View Blank
#1

[eluser]itot[/eluser]
Dear Bro and Sis

i'm itot i'm newbie on CI,
i got some problem, i just install the CI and i practice to use CI from the help,
step by step, but problem comes when i try to make view, i already follow the help instruction, to create blogview.php and put it in folder view.
but when i call the view from controller, there's nothing happen just blank page there no error.

my question, where is my mistake, why the page is blank, when i test echo statement hello word in controller, the test is run well

there anyone can help me with this problem

best regards

itot
#2

[eluser]sophistry[/eluser]
@itot welcome to CI.

always post code. you will find better help that way.
#3

[eluser]itot[/eluser]
[quote author="sophistry" date="1222764818"]@itot welcome to CI.

always post code. you will find better help that way.[/quote]


thanks, but could you help me with my problem, please thanks
#4

[eluser]textnotspeech[/eluser]
What he means is, you have to post the code you are speaking of so we can see what's wrong with it. Show us the controller and the view code and we can help, otherwise we're just guessing and that won't help anyone.
#5

[eluser]itot[/eluser]
[quote author="textnotspeech" date="1222768985"]What he means is, you have to post the code you are speaking of so we can see what's wrong with it. Show us the controller and the view code and we can help, otherwise we're just guessing and that won't help anyone.[/quote]

sorry i if i thought is mistake here is my controller :

<?php
class Blog extends Controller {

function Blog()
{
parent::Controller();
}

function index()
{
$this->load->view('blogview');
}

function Comments()
{
echo "Hey Look I Try The New Fucntions ones";
}

}
?>

and this is my views :

<html>
<head>
<title>Welcome TO My first Project Of Code Igniter<title>
</head>
<body>
<h1>Welcome to my project</h1>
&lt;/body&gt;
&lt;/html&gt;


here's my code could any one help me
#6

[eluser]textnotspeech[/eluser]
And you have a view named blogview.php in the views folder? What's that look like?
#7

[eluser]itot[/eluser]
[quote author="textnotspeech" date="1222769985"]And you have a view named blogview.php in the views folder? What's that look like?[/quote]

yes correct, the filename is blogview.php

the file look just like this :

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Welcome TO My first Project Of Code Igniter&lt;title&gt;
&lt;/head&gt;
&lt;body&gt;
<h1>Welcome to my project</h1>
&lt;/body&gt;
&lt;/html&gt;
#8

[eluser]textnotspeech[/eluser]
Sorry, missed that in your other post. and your calling www.yousite.com/blog, correct?
#9

[eluser]itot[/eluser]
[quote author="textnotspeech" date="1222771771"]Sorry, missed that in your other post. and your calling www.yousite.com/blog, correct?[/quote]

yup just like this http://localhost:9090/CodeIgniter/index.php/blog
#10

[eluser]textnotspeech[/eluser]
try this: http://localhost:9090/CodeIgniter/index.php?/blog

I added a question mark although it should work without it, it may be a .htaccess problem.




Theme © iAndrew 2016 - Forum software by © MyBB