This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Model_Admin extends CI_Model{ | |
public function insertDataToDatabase($tableName, $data) | |
{ | |
$this->db->insert($tableName, $data); | |
} | |
public function updateDataInDatabase($column, $tableName, $data, $id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// iterate through multidimensional arrays | |
// two level deep | |
$array = array( 'levelone-key1' => 'levelone-value1', | |
'levelone-key2' => array('sublevel-key' => 'sublevel-value'), | |
'levelone-key3' => 'levelone-value3', | |
); | |
function twoLevelArray($array) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Atom bracket-matcher | |
----------------------- | |
atom-text-editor::shadow .bracket-matcher .region { | |
border: 1px solid rgba(222, 149, 54, 0.6); | |
border-radius: 3px; | |
background-color: rgba(255, 217, 0, 0.3); | |
z-index: 100; | |
} |