CodeIgniter Forums
Getting errors loading webpage in mobile devices using CI - 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: Getting errors loading webpage in mobile devices using CI (/showthread.php?tid=52609)



Getting errors loading webpage in mobile devices using CI - El Forum - 06-18-2012

[eluser]Unknown[/eluser]
I have been working on a mobile website, at first i was using CI user-agent library to load a different view just for the mobile device, i was getting
Code:
Unable to load the requested file: default.php
error just trying to load site at first. Then i removed it and still kept getting the same error, i have tried on all mobile devices, android, iphone, blackberry.

My controller is like this:
Code:
class Welcome extends CI_Controller {

public function index()
{

      $this->template->set_layout('default')->build('welcome_en');
}
}

this is similar to the following:
Code:
http://ellislab.com/forums/viewthread/212650/

Although i took out the user-agent. To see the rest of my code see my github:
Code:
https://github.com/animetauren/ecuahenivad

Any help would be appreciated. Thnks!

UPDATE: Fixed the error, i needed to create a web dir and set the layout folders inside the web and mobile dir.