Welcome Guest, Not a member yet? Register   Sign In
Extend core libraries to detect the request file type and load applicable view
#4

[eluser]xwero[/eluser]
Why not use /blogs, /blogs/xml, /blogs/pdf if the only task is to serve a different file type. In your controller you do
Code:
// fetch data
$type = $this->uri->segment(2);
switch($type)
{
   case 'xml': break;
   case 'pdf': break;
   case FALSE: break;
}


Messages In This Thread
Extend core libraries to detect the request file type and load applicable view - by El Forum - 03-27-2008, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB