Size of my model is very large |
Hi,
i made a var_dump of my model object and it is very large. I see things like the mysql connection with pasword and username. Is this correct or is it a mistake in my model? PHP Code: class Test_model extends Model {
It is correct.
var_dump() will include any instance properties, many of which are injected dependencies. These are all references though so your actual memory size of a Model is still quiet small.
|
Welcome Guest, Not a member yet? Register Sign In |