In what phase does the object creation happen at CodeIgniter ?
$newObj = new SomeClass();
In which stage this happens ?
In what phase does the object creation happen at CodeIgniter ?
$newObj = new SomeClass();
In which stage this happens ?
As the previous answer said, it happens when control reaches the statement. If the statement is in a view file it would happen then but it would be unusual to be creating objects in a view. It's more likely that you'd have that in a controller. Since the controller typically loads the view as a final step, the object would be created before loading the view.