CMS-MS on Rails Sorta
Posted: Thu Jul 13, 2006 1:35 pm
Looking around the forums I see a number of people are asking for some kind framework, rails, php cake solution in CMS-MS.
I have just completed version .01 of what I call 'rcrud' -> "Robs CRUD"
It is a php class that works off of a adodblite link and a table name. Its basic and works with text and textarea forms fields for now... stay tuned.
The class is not specific to CMS-MS and maybe works in other libs/projects. CMS-MS is my target.
To Use:
1. Download http://www.hlounge.net/rcrud ( site will improve )
2. Unpack to your module directory, one file rcrud.inc.php ( always will be one file nothing more )
3. require at the top of your module before the class dec:
4. Create a Crud Object ( inside the default admin action for your module ):
5. Optional configure: Read the inc file on how to do more. The code is ~clean~ and documented. Documentation and more features in version .02
6. Run the rcrud object
7. Browse to your admin area and module area and run the function/action that calls the 'go' method.
BAM You now have a primitive table manager Create/Add, Report/Show, Update/Edit, Delete.
I will be using this to make mods in the future and will be updating.
DISCLAIMER: Do not use this on the front end of the site, its insecure for the moment use only in the backend module admin area and make sure that the back end user has some sort of permissions for that module. Rcrud does not do authetication... yet...
I have just completed version .01 of what I call 'rcrud' -> "Robs CRUD"
It is a php class that works off of a adodblite link and a table name. Its basic and works with text and textarea forms fields for now... stay tuned.
The class is not specific to CMS-MS and maybe works in other libs/projects. CMS-MS is my target.
To Use:
1. Download http://www.hlounge.net/rcrud ( site will improve )
2. Unpack to your module directory, one file rcrud.inc.php ( always will be one file nothing more )
3. require at the top of your module before the class dec:
Code: Select all
require_once( 'rcrud.inc.php' );
Code: Select all
$co = new rcrud( $this->cms->db , 'module_table_name' );
Code: Select all
$co->fields['news_id']['visible_in_add'] = false;
$co->setVisibleInListAll( false );
$co->fields['news_title']['visibile_in_list'] = true;
...
Code: Select all
$co->go();
BAM You now have a primitive table manager Create/Add, Report/Show, Update/Edit, Delete.
I will be using this to make mods in the future and will be updating.
DISCLAIMER: Do not use this on the front end of the site, its insecure for the moment use only in the backend module admin area and make sure that the back end user has some sort of permissions for that module. Rcrud does not do authetication... yet...