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 = secondtab...
Posts
Showing posts from 2015
- Get link
- X
- 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 ...
- Get link
- X
- Other Apps
Simple login with facebook ->first download required file from below link https://www.dropbox.com/s/1k4gg6lwdvs3vxy/fb.zip?dl=0 ->create fb button <a href="<?php echo base_url('fb/fbconfig.php');?>"><button class="btn btn-primary" type="button">Login With Facebook</button></a> in FB/ fb config file set App key and App secret ********* how to get app key and App secret go to https://developers.facebook.com/quickstarts/?platform=web From my app option select add new App select platform for which you want to add your App you get your api key and secret key as below from setting menu please set your app domain here i ma using for localhost From App detail optin set your Application detail ****** you can do what you want after checking successful login if(isse...
- Get link
- X
- Other Apps
Upload Image using web service in php -> First check for all valid parameter which you are passing Here is my code for checking valid request if(isset($_REQUEST["uploadMediaRequest"]) && trim($_REQUEST["uploadMediaRequest"]) != '') -> i am passing 3 parameters 1) media name 2) type 3) userId or name $Path= your path + your media name like $mediaPath= "upload/chat/".$username."/".$mediaType."/"; if (!file_exists($mediaPath)) { $oldmask = umask(0); ...