CodeIgniter Forums
Load View Problem in hosting. In localhost Works Fine. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Load View Problem in hosting. In localhost Works Fine. (/thread-60264.html)



Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-18-2014

[eluser]gmiranda[/eluser]
Hello,

I'm develop a web site in CodeIgniter. In one of my views call anothers views with the footer of the page. The sentence is:

<?php this->load->view(includes/footer);?>

In my localhost it works fine but when I'm deploy the application in an external host don't work. The principal difference between the host and my localhost is the PHP version. I'm use the PHP 5.4 and the host service the version 5.3. I'm call this view too in the call for the Controller and nothing occurs.

If anyone knows if the problem are the PHP version or another problem please write the possible solution.

Best regards and Thanks

Giosvany


Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-18-2014

[eluser]InsiteFX[/eluser]
Code:
<?php $this->load->view('includes/footer'); ?>



Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]gmiranda[/eluser]
InsiteFX,

thanks for your answer but this not a problem. Your are rigth, the code is:

<?php this->load->view('includes/footer'); ?>

I made an error writing the code in the post. If you know another cause is welcome.

Giosvany



Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]Karman de Lange[/eluser]
Does it give you error or simply do nothing?


Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]gmiranda[/eluser]
Karman de Lange

Thanks for your response.
Simply do nothing, I'm verify the error logs and not show any error, but don't show the footer in the page only the contente of this.

Giosvany


Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]noideawhattotypehere[/eluser]
Where is your $ sign before 'this'? What happens if you chain loading views in controller?


Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]Karman de Lange[/eluser]
[quote author="gmiranda" date="1392819468"]Karman de Lange

Thanks for your response.
Simply do nothing, I'm verify the error logs and not show any error, but don't show the footer in the page only the contente of this.

Giosvany[/quote]

if you specify wrong view name. do you then see error (Just trying to debug issue )

L:


Load View Problem in hosting. In localhost Works Fine. - El Forum - 02-19-2014

[eluser]gmiranda[/eluser]
noideawhattotypehere,

I'm try this too. Call the view in the controller and nothing in the host but in localhost it works fine too, the page only show the content of the page, not the load of the other views.

Giosvany