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