Hi All,
Just to let you know I have committed my hackings to the SVN at SourceForge:
https://tsheetx.svn.sourceforge.net/svnroot/tsheetx/branches/timesheet.ng-1.5
It's a bit messy at the moment, but some important features are working:
1. URL - can decide what controller and method to use based on the URL, eg:
http://<your-host>/calendar/
http://<your-host>/calendar/add
2. Database and ORM - this is lifted directly from KohanaPHP, only MySQL
driver is working at the moment, but the ORM seems to be working ok
3. Unit Testing, for an example go to:
http://<your-host>/unit-test/
Please play around, hack, fix, continue etc.
On thing I'm not too keen on is the naming conventions I've come up
with, e.g. Module and Controller is:
Module_ControllerName
Module and Model is:
Module_ModelName
You can have sub directories, e.g:
Core_ORM_Iterator which loads in core/models/ORM/Iterator.php
But this can start to get messy, e.g. model called Calendar_Calendar()
Would be much better to use name spaces, but this is not out till 5.3
(currently at RC1)
http://www.php.net/language.namespaces
As ever, thoughts, suggestions welcome/needed!
Have a great Easter
Rob
|