Does anyone know of a CRUD class/function/whatever that's not attached to a whole library or framework? I just want something I can stick in a page and make my life easier with ... and CRUD isn't exacly a wheel I feel like reinventing.
Thanks!
--Rob
Simple CRUD class/system?
Moderator: General Moderators
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
Re: Simple CRUD class/system?
The first step to getting responses is to use clear, unambiguous language, and avoiding acronyms that not everyone knows.RobertPaul wrote:Does anyone know of a CRUD class/function/whatever that's not attached to a whole library or framework? I just want something I can stick in a page and make my life easier with ... and CRUD isn't exacly a wheel I feel like reinventing.
In this case, I had never heard the acronym CRUD, despite being in computing for over a decade now, and using those functions for just as long:
CRUD — Create, Retrieve, Update, and Delete, the basic functions of a database in computing.
However, to answer your question, there are huge numbers of frameworks in php you can use, or alternatively, patterns if you prefer a more object oriented approach.
Get googling!
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
Re: Simple CRUD class/system?
Sorry about that. I figured that as much of a web-based thing PHP is and as much of a web-based thing CRUD is that most people would know what it was.Roja wrote:avoiding acronyms that not everyone knows.
I have indeed gone Googling, but everything I've come across was attahced to a framework. Extracting just that functionality from it (as I wouldn't really need nor want the rest) would be a task, to say the least. I am still searching around, but I figured it couldn't hurt to ask here what with the pool of knowledge that comes with having 17,000 users...Roja wrote:However, to answer your question, there are huge numbers of frameworks in php you can use, or alternatively, patterns if you prefer a more object oriented approach.
Get googling!
Re: Simple CRUD class/system?
No problem. I think most people will know what CRUD is - if they don't they can always ask.RobertPaul wrote:Sorry about that.
Have a look at pear
I´m wondering how to stick "CRUD" into a site. It is a shortcut of four words. You need a library or a toolkit to achieve that functionality.
I dont excactly know, but it belongs to the active record pattern of the rails world.
I recommend some nice libraries which can help to achieve the active record functionality in php:
PEAR::DB_Dataobject_Formbuilder (based on DB_Dataobject, HTML_Quickform and HTML_Table)
PEAR::Structures_Datagrid
Regards
Jens
I dont excactly know, but it belongs to the active record pattern of the rails world.
I recommend some nice libraries which can help to achieve the active record functionality in php:
PEAR::DB_Dataobject_Formbuilder (based on DB_Dataobject, HTML_Quickform and HTML_Table)
PEAR::Structures_Datagrid
Regards
Jens