Create dynamic controller and model - to reduce code , follow below way that reduce your time to right each time new function in model ***** calling function from controller ***** $table="tablename"; $alias='*'; $joinArgument=array ( array('tableName'=>'yourtablename', 'joinCondition'=>'firsttable.column = secondtable.column', 'joinType'=>'LEFT' ), ); $where=array('column1'=>'value'); $data=$this->commonmodel->getData($alias,$table,$where,$joinArgument); ************ code for model function getData($alias='*',$table,$where='',$join='',$orderBy='',$groupby='',$limit='') { $this->db->selec
Posts
Showing posts from November, 2015
- Get link
- Other Apps
Paypal Integration in Codeigniter <form name="paypalFrm" id="paypalFrm_<?php echo $subscribe[$i]->subscriptionpackageID;?>" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_ext-enter"> <input type="hidden" name="redirect_cmd" value="_xclick"> //useful to get your custom variable back in response <input type="hidden" name="return" value="<?php echo base_url('clinic/paid');?>"> //set url name where you can check for your response <input type="hidden" name="cancel_return" value="<