Could you point me in the right direction on a class layout?
Posted: Sat Nov 18, 2006 11:56 am
Hello!
I want to learn how to build web apps that are highly scaleable and reuseable.
I started to read that acricle PHP and design patterns on Zend. I do basically unerstand that examples.
Now I'm lokking for some extended examples like that one:
Lets say I want to create a site that should support templates with Smarty Template Engine. It sould also have Multi-Language support and both - temapltes and translations - should be in a MySQL Database.
So we got three main functionalities: Template, Localization, Database
So how sould these be designed? How should they interact? Which classes do I need and how is their inheritance and other relations? How will a "Hello World"-Page source look like? Which include files should there be and where should they be included?
So thats the first questions I have
Now, the framework is up with those features.
Then, lets say, I decide that I do not want to use Smarty anymore, because the designers I have hired have problems implementing their templates, and I want to use a more basic, maybe self made template engine?
What do I have to concern in coding that the plugging-in of that new template engine is as easy as possible?
What if I decide to switch from MySQL to an Oracle DB?
Now, what if I want to add some community features like registering and Login sessions? The Login and Logout sould be possible on every page without leaving the page.
Will it be possible to include that new feature into every page without editing each Page? Is there a common "Page" Class that I have to edit?
I hope you understand my problems and can give me some directions.
Thank you in advance! Greetings from Lower Austria!
PS: Maybe you can contact me on IM or something if you have a clue an want to help me out?
I want to learn how to build web apps that are highly scaleable and reuseable.
I started to read that acricle PHP and design patterns on Zend. I do basically unerstand that examples.
Now I'm lokking for some extended examples like that one:
Lets say I want to create a site that should support templates with Smarty Template Engine. It sould also have Multi-Language support and both - temapltes and translations - should be in a MySQL Database.
So we got three main functionalities: Template, Localization, Database
So how sould these be designed? How should they interact? Which classes do I need and how is their inheritance and other relations? How will a "Hello World"-Page source look like? Which include files should there be and where should they be included?
So thats the first questions I have
Now, the framework is up with those features.
Then, lets say, I decide that I do not want to use Smarty anymore, because the designers I have hired have problems implementing their templates, and I want to use a more basic, maybe self made template engine?
What do I have to concern in coding that the plugging-in of that new template engine is as easy as possible?
What if I decide to switch from MySQL to an Oracle DB?
Now, what if I want to add some community features like registering and Login sessions? The Login and Logout sould be possible on every page without leaving the page.
Will it be possible to include that new feature into every page without editing each Page? Is there a common "Page" Class that I have to edit?
I hope you understand my problems and can give me some directions.
Thank you in advance! Greetings from Lower Austria!
PS: Maybe you can contact me on IM or something if you have a clue an want to help me out?