Welcome Guest, Not a member yet? Register   Sign In
need to understand

hi guys
i am new in ci and i need to understand this portion
why and when i should use this method

function __construct(){


i know how to use this method without ci

i want to know when i use __construct in ci

do i use this method when i load library or helper ?

When you do use a constructor? When you want to have something done when the class instance is constructed. When do you need to call the parent constructor? When your class extends another class that has a constructor.

There's nothing CI about it, it's a standard class constructor.

thanks wan for your help

Theme © iAndrew 2016 - Forum software by © MyBB