In what phase does the object creation happen at CodeIgniter ?
$newObj = new SomeClass();
In which stage this happens ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.