Simple CRUD class/system?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
RobertPaul
Forum Contributor
Posts: 122
Joined: Sun Sep 18, 2005 8:54 pm
Location: OCNY

Simple CRUD class/system?

Post 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
RobertPaul
Forum Contributor
Posts: 122
Joined: Sun Sep 18, 2005 8:54 pm
Location: OCNY

Post by RobertPaul »

I hate to bump, but it's been over a week.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Simple CRUD class/system?

Post 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!
RobertPaul
Forum Contributor
Posts: 122
Joined: Sun Sep 18, 2005 8:54 pm
Location: OCNY

Re: Simple CRUD class/system?

Post 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...
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Post 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
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Re: Simple CRUD class/system?

Post 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.
Jens
Forum Newbie
Posts: 2
Joined: Sat Nov 05, 2005 10:35 am

Have a look at pear

Post 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
Post Reply