CodeIgniter Forums
HELP TO NEWBIE PLEASE HELP, Load View Blank - 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 TO NEWBIE PLEASE HELP, Load View Blank (/showthread.php?tid=11957)

Pages: 1 2 3


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

[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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

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

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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

[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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

[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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

[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;


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

[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


HELP TO NEWBIE PLEASE HELP, Load View Blank - El Forum - 09-29-2008

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