Jump to content

how classes should be tied together!


xploita

Recommended Posts

i've been developing a simple framework for my own projects.

the problem is ,i've developed :

A-class for handling the i18n

B-class for handling the errors

C-class that contains the template engine

D-class for manipulating files.

 

the problem is,i have no idea how to manage them all !

-i mean,let's say that i'm creating a new page for a new project. say index.php,should i include the files for all those classes and create instances for all those classes and start working or what ?

-some of those classes depends on each others in a way that confuses me :),the i18n class depends on the errorManager class to handle errors.errorManager class depends on the i18n to translate the error in the proper language! how can this be achieved?

 

any ideas?

Link to comment
https://forums.phpfreaks.com/topic/47961-how-classes-should-be-tied-together/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.