There is no hard and fast rule for this. You can structure your view files as you like and call $this->load->view()to load different view files for different results in your controller. In my experience, CodeIgniter is very easy to adapt to how you organize your application files.
, , system/application/views : main mobile :
system/
application/
views/
main/
index.php
some_page.php
...
mobile/
index.php
some_page.php
...
, , , , , main mobile , .
, , ...
var $view_type = 'main';
function MyController()
{
parent::Controller();
if ($this->agent->is_mobile())
{
$this->view_type = 'mobile';
}
else
{
$this->view_type = 'main';
}
}
function some_page()
{
$this->load->view($this->view_type . '/some_page');
}
:
, , , CodeIgniter:)