CodeIgniter Forums
simple code! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: simple code! (/showthread.php?tid=25006)



simple code! - El Forum - 11-27-2009

[eluser]joeizang[/eluser]
ssloxing,

why don't you just do the proper thing and use a view instead of echoing?

Code:
class Blog extends Controller
{
   function Blog()
   {
     parent::Controller();
   }
  
   function index()
   {
     $this->load->view('viewfile');
   }
}

and then in your view just put what you want to a regular html file and save as php or an empty file and echo what you want!! :-)