Page 1 of 1

Simple CRUD class/system?

Posted: Thu Oct 20, 2005 8:34 pm
by RobertPaul
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

Posted: Sat Oct 29, 2005 5:48 pm
by RobertPaul
I hate to bump, but it's been over a week.

Re: Simple CRUD class/system?

Posted: Sat Oct 29, 2005 8:04 pm
by Roja
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.
The first step to getting responses is to use clear, unambiguous language, and avoiding acronyms that not everyone knows.

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!

Re: Simple CRUD class/system?

Posted: Sat Oct 29, 2005 8:52 pm
by RobertPaul
Roja wrote:avoiding acronyms that not everyone knows.
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. :oops:
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!
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...

Posted: Sat Oct 29, 2005 9:41 pm
by sweatje
WACT is going through a pretty major refactoring of it's controller and view architecture right now, but there was a CRUD example in the previous released version here

Re: Simple CRUD class/system?

Posted: Fri Nov 04, 2005 11:16 pm
by McGruff
RobertPaul wrote:Sorry about that.
No problem. I think most people will know what CRUD is - if they don't they can always ask.

Have a look at pear

Posted: Sat Nov 05, 2005 10:47 am
by Jens
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