You are here: Re: How far down can requests go? « PHP Programming Language « IT news, forums, messages
Re: How far down can requests go?

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация