|
Posted by Peter Fox on 01/25/06 02:03
Following on from bryan's message. . .
>lets say I have file, index.php that includes a file logic.class.php,
>and inside of index.php i initialize the class, $logic = new logic;
>now, lets say that the $logic object inside the class file uses ANOTHER
>class, $template = new template; for templating it and lets say the
>TEMPLATE object users ANOTHER class...my question is does it matter how
>far down you go inside the files? will they all still work fine? Is
>there a limit? Is this just bad design? Need some input.
>
I've got down to 9 deep and no problem.
Of course it isn't 'bad design' - but it might be!
Objects are /really handy/ but occasionally you can over do things.
--
PETER FOX Not the same since the porcelain business went down the pan
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
[Back to original message]
|