![]() |
$this->load->view('ad.html') does not work? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: $this->load->view('ad.html') does not work? (/showthread.php?tid=14263) Pages:
1
2
|
$this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]sexy22[/eluser] hello,everyone! I have a problem. I am using CI 1.7.0 now. In my Controller,have below Code: function userLogin() but $this->load->view('ad_index.html'); and $this->load->view('ad_sign.html') does not work,each here, it shows a blank page i do not know what i am wrong? $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]bitist[/eluser] Instead of $this->load->view('ad_sign.html') you should use $this->load->view('ad_sign') Check this page $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]sexy22[/eluser] [quote author="devpedia" date="1230223521"]Instead of $this->load->view('ad_sign.html') you should use $this->load->view('ad_sign') Check this page[/quote] because my files is .html,so that i must use ad_sign.html if you are using ad_sign.php , $this->load->view('ad_sign') is ok thanks! $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]bitist[/eluser] You're right, you have to use $this->load->view(‘ad_sign.html’) in case of .html extension. What happen if you change the view file name to $this->load->view(‘ad_sign_test.html’) ? Do you get any error? $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]sexy22[/eluser] [quote author="devpedia" date="1230229502"]You're right, you have to use $this->load->view(‘ad_sign.html’) in case of .html extension. What happen if you change the view file name to $this->load->view(‘ad_sign_test.html’) ? Do you get any error?[/quote] Thank you! i tried it just now,but does not work,only a blank page,none of any error! $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]bitist[/eluser] For some reason the error reporting is not working on your script. You have one point to follow, check the log file which is located under system/logs directory. $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]mamen[/eluser] why you don't change to .php ?? that's simple right ![]() $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]Thorpe Obazee[/eluser] I thought I was dreaming but I thought I saw this post and answered it before I slept last night. turned out I wasn't http://ellislab.com/forums/viewthread/100660/ $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]sexy22[/eluser] [quote author="mamen" date="1230250233"]why you don't change to .php ?? that's simple right ![]() asa The .php is working in server,as to view files,i prefer to use .html $this->load->view('ad.html') does not work? - El Forum - 12-25-2008 [eluser]sexy22[/eluser] [quote author="Chamyto" date="1230272434"]I thought I was dreaming but I thought I saw this post and answered it before I slept last night. turned out I wasn't http://ellislab.com/forums/viewthread/100660/[/quote] thanks! .html is ok,i am always using it now! |