hi
I'm using the model view controller to develop an application
each class of the controller package (FileController, ArticleController)
has the main controller (Controller) as a member.
The controller has the DbAccess object as a member
which means that when I need to call the a method of the DbAccess from a
controller class, it looks like that :
$this->oController->oDbAccess->fetchArray(...) for example.
Now my question is, is that a problem for the performance of the
application. Should I declare the Controller and the DbAccess as GLOBAL
variables or doesn't it matter ? I prefer to avoid using GLOBAL, I think
it's ugly, but would be happy to use it if it's good for the speed of
the code.
Since php is not fully object oriented, I'm sometimes wondering if
designing it Java or Python style is not a bad idea.
Any comment appreciated !
thanks
.b