|
A Framework of code
index
PHP Framework
|
|
There is a little bit of documentation in here at present :)
This is a rough description of the framework, and the compontents I use
for almost all projects I do. - mostly based on pear.php.net 's work, although there
are a few other choice bits from other developers and of-couse a load
of half usefull stuff from me....
The result of this framework is that 10-20% of the total code
for a project is application specific. giving a huge reduction in code
size, and improving readibilty and maintainability considerably.
It should also be a good set of design criteria for evaluating PHP
projects, primarily from the perspective of a client commisioning a PHP
based project, -
if the code being provided to you does not match, or is similar to this
in design, it is likely that you are wasting your money!!!
|
|
1.Background, History and Overview
|
Whats this all about - arent there half a dozen frameworks
out there
already? or better know as a diatribe of disasters....>>>>Read More
|
2.URL to Object mapping, and config loader (HTML_FlexyFramework)
|
This is a brief introduction to trying to get the current
framework set
up - I've not got alot of time at present to keep documenting it, but
one day this will get finished - The framework It's self, has been
tested, and used on a number of sites, and has proved to be very good
in quickly developing flexible, managable, extendable
sites.>>>>Read More
|
3. Templating (HTML_Template_Flexy)
|
The Manual for this part is now contained in PEAR Manual
Templating and HTML form part of the View of the Model View Controller
Paragam, After experimenting with a few engines and schemes, Smarty and
SimpleTemplate appeared to be some of the better examples, however
neither of these addressed some of the 'real life' issues relating to
the ability to edit the templates in a standard WYSIWYG editor.
Template_Flexy grew out of all those requirements, and obviously should
be as fast as it's competitors (if not faster) due to it's simplicity.
NOTE: Template_Flexy is now called HTML_Template_Flexy and is
available via the pear installer
|
4. Data Modelling (DB_DataObject)
|
The documentation for this part is really inside PEAR Manual
this forms part of the Data Modelling of the Model View Controller, all
the buisness logic is stored within the model.
|
5. Sessions
|
|
Not much to say about sessions,
other than I use $_SESSION['class_name'] so I know who (as in which
class) is supposed to manage the session. DataObjects are sometime
serialized, although you have to be really carefull to manage that fact
that multiple sesssions may or may not alter the class between
login/logout..
|
6. Authentication
|
|
Still experimenting with PEAR Auth.
|
7. Code and Directory Layout and Standards
|
Just use PEAR - It's not worth the hastle creating your own
(been there done that - see phpmole)
|
8. Modules or shared Page components
|
|
Flexy framework has the idea of Modules, however, the mechanism still
needs rethinking,
|
|
|