Skip to content

a guide project for these people want to learn php, codeigntier and web development

Notifications You must be signed in to change notification settings

musammatsamina/php-codeigniter-tips-tricks

 
 

Repository files navigation

Codeigniter, PHP tips & tricks for developer

This is a list of tips trick & guide for these people want to learn codeigntier, php and web development

  1. [Codeigniter Input for handle PUT & DELETE][1]

Codeigniter JOIN:

$this->db->select('*');
$this->db->from('TableA AS A');// I use aliasing make joins easier
$this->db->join('TableC AS C', 'A.ID = C.TableAId', 'INNER');
$this->db->join('TableB AS B', 'B.ID = C.TableBId', 'INNER');
$result = $this->db->get();

CI update data with update method without using other methods where, limit ...

$CI->db->update('allocation_tabs', $tab_data, array('id' => $tab_id), 1);

CI get data by get_where

    $tab_detail = $CI->db->get_where('table_name', array('id' => $_id), 1)->row();

CodeIgniter plugin for Sublime Text

Donate [1]:https://gist.github.com/phplaw/6305193

About

a guide project for these people want to learn php, codeigntier and web development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.6%
  • PHP 37.7%
  • HTML 13.3%
  • Other 1.4%