Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>CI-CRUD SnippetNew to Visual Studio Code? Get it now.
CI-CRUD Snippet

CI-CRUD Snippet

Rohit Chouhan

|
11,897 installs
| (2) | Free
A snippet for Codeigniter 4, to catch insert, update, delete code with AJAX also.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generate complete dynamic select,insert,update,delete normally, and with ajax using this great snippet.

If you are using Ajax, please embed JQuery inside your <head> tag.

<script src="https://code.jquery.com/jquery-3.6.0.js"></script>

Usage (Database Connection)

Syntax Description
$ci-conn Create db connection

Usage (Insert, Update, Delete)

Syntax Description
$ci-ajax Ajax Code
$ci-insert Insert Code
$ci-insert-ajax Insert Code for Ajax
$ci-update Update Code
$ci-update-ajax Update Code for Ajax
$ci-delete Delete Code
$ci-delete-ajax Delete Code for Ajax

Usage (Select)

Syntax Description
$ci-select Retreving data
$ci-select-single Retreving Single Row data
$ci-column Retreving Specific Column data
$ci-where Retreving data with Where claus
$ci-like Retreving data with Like claus
$ci-count Row count from Table

Functions (Select)

Syntax Description
$ci-selectMax Retreving Max Value
$ci-selectMin Retreving Min Value
$ci-selectAvg Retreving Avg Value
$ci-selectSum Retreving Sum Value
$ci-selectCount Retreving Count Value

Input/Output

title

Hi there 👋

I' working in world's four firm Organization , Deloitte. Love to solve problem and develop new things.

  • 🌱 Skills: UI Design, Web Development, Software Developer
  • 💬 Ask me anything: Facebook
  • 📫 How to reach me: me@rohitchouhan.com
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft