GithubHelp home page GithubHelp logo

auto-crud-generator-codeigniter-4-'s People

Contributors

alexlancer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-crud-generator-codeigniter-4-'s Issues

Delete button on listing pages

I think you need a delete button in the listing pages. I myself added it to the crud_core file.

Line: 1168

Change this line:
$table .= '<td class="text-center"><a href="' . $this->base . '/' . $this->table . '/edit/' . $item->{$primary_key} . '" class="btn btn-success btn-sm">Edit</a></td>';

To:
$table .= '<td class="text-center"><a href="' . $this->base . '/' . $this->table . '/edit/' . $item->{$primary_key} . '" class="btn btn-success btn-sm">Edit</a>'; $table .= '<a onclick="return confirm(\'Are you sure you want to delete this record?\')" class="btn btn-danger btn-sm ml-2" href="' . $this->base . '/' . $this->table . '/delete/' . $item->{$primary_key} . '">Delete</a>'; $table .= '</td>';

I wanted to add for those who want to do.

Help Wanted

How To Add Dynamic Row have An Different color in the list of module

helpp

how with database

hashing hashes field instead of value

In Crud_core.php, if field needs to be hashed the field name is hashed instead of the field value. Can be fixed by replacing
$post[$hashIt] = password_hash($hashIt, PASSWORD_DEFAULT);
with
$post[$hashIt] = password_hash($post[$hashIt], PASSWORD_DEFAULT);
on line 288

Error.... Need your help please

Undefined variable: affected

APPPATH/Libraries/Crud_core.php at line 398

391 $insertedFilesAffectedRows = false;
392 if ($filesData) {
393 foreach ($filesData as $fileDataKey => $fileDataOptions) {
394 $insertedFilesAffectedRows = $this->filesHandler($fileDataKey, $fileDataOptions);
395 }
396 }
397
398 if ($insertedFilesAffectedRows || $affected || $toDelete || $toInsert)
399 $this->flash('success', 'Successfully Updated');
400 else
401 $this->flash('warning', 'The record was not updated or no changes were made');
402
403 return ['redirect' => $this->base . '/' . $this->table . '/edit/' . $this->id];
404 } else {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.