Welcome Guest, Not a member yet? Register   Sign In
log page views in database where?
#2

[eluser]xwero[/eluser]
You could extend the controller

Code:
class MY_Controller extends Controller
{
   function MY_Controller()
    {
       parent::Controller();
       $url = $this->uri->uri_string();
       // database insert
    }

}

And every controller you create should insert an url in your database.

I saw somewhere on the forum you should extend the normal controllers from the MY_Controller class but i think that is not necessary because the extended class functionality should be loaded instead of the parent class. Or am i wrong about this?


Messages In This Thread
log page views in database where? - by El Forum - 08-29-2007, 05:08 AM
log page views in database where? - by El Forum - 08-29-2007, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB