Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6759843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:59:58+00:00 2026-05-26T13:59:58+00:00

I’m wondering if Code Igniter has something equivalent to a small framework I built,

  • 0

I’m wondering if Code Igniter has something equivalent to a small framework I built, and what it might be called. I built a small framework that creates a list view and edit view for each mysql database table. Below shows an example of code of how I might set up a CMS to manipulate a database table:

// CODE FOR LIST VIEW - http://mysite.com/admin/user.php
// This code will output an html table of records from db table t_user.
// The html table will have controls that allow user to search, delete, and paginate
// You can click on each record to edit the record
<?php
include('class/framework.php');
$template = new ListView();
$template->data_object = new DB($mysql_table_name = 't_user');
$template->setCol($col = 'user_name', $label = 'User Name');
$template->setCol($col = 'email', $label = 'Email'); 
$template->setCol($col = 'last_login', $label = 'Last Time Logged In', $format='Y-m-d H:i:s');
$tempate->run();
?>

// CODE FOR EDIT VIEW - http://mysite.com/admin/user.edit.php
// This code will output an html form that adds, edits, deletes
// and validates a record from t_user
<?php
include('class/framework.php');
$template = new EditView();
$template->data_object = new DB($mysql_table_name = 't_user'):

$f = new Field($col = 'user_id', $type = 'hidden');
$template->field[] = $f;

$f = new Field($col = 'email', $type = 'text');
$f->arr_validate = array('is_email', 'is_required');
$template->field[] = $f;

$f = new Field($col = 'phone', $type = 'text');
$f->arr_validate = array('is_phone', 'is_required');
$template->field[] = $f;

$f = new Field($col = 'password', $type = 'password');
$template->field[] = $f;

$f = new Field($col = 'bio', $type = 'wysiwyg');
$template->field[] = $f;

$f = new Field($col = 'pic', $type = 'image');
$template->field[] = $f;


$template->run();
?>

And that’s it…I don’t have to write a single line of html, css or javascript code. All the validation is done for me as long as I populate $f->arr_validate. The ability to search, sort, paginate, edit, delete etc…is all done with just the code above.

Is there something in Code Igniter that achieves something similar? If there is no such thing out of the box, just say so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:59:59+00:00Added an answer on May 26, 2026 at 1:59 pm

    What you’re looking for is known as a CRUD as opposed to a CMS.

    C – Create
    R – Read
    U – Update
    D – Delete

    I strongly recommend Grocery Crud for this purpose. It’s great and very easy to set up. Incorporates the features you’re looking for such as pagination and search etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need a function that will clean a strings' special characters. I do NOT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.