Skip to content

Instantly share code, notes, and snippets.

View as3eem's full-sized avatar
🎯
Learning new stuffs

ASEEM SRIVASTAVA as3eem

🎯
Learning new stuffs
View GitHub Profile
grant permission =>
terminal -> pathToDesiredFolder -> execute this command
sudo chmod -R 755 <folder_name>
@as3eem
as3eem / CompleteModelCodeigniter for MYSQL
Created August 23, 2017 12:21
Ultimate model class to use in codeigniter with all mysql functions (including CRUD) defined
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends CI_Model
{
function __construct() {
parent::__construct();
}
function get_table() {
$table = "service"; //your table name here