PHPSOFT SOLUTIONS

PHP Frameworks

how to use Curl in php

cURL is a command-line application for performing requests using a variety of protocols including HTTP. cURL is often used by developers to test Google Data services(cURL is interact with google services), as it supports the HTTP functionality required to interact with the APIs. how to set header Curl in php:-curl_setopt($ch,CURLOPT_HTTPHEADER,array(‘HeaderName: HeaderValue’)); code for post: <?php […]

View Post

phonegap adding plugin to local app

During adding of any phonegap plugin sometime we get an error like this: [Error: Error fetching plugin: Error: git command line is not installed] To avoid this error you need a aproper set up of your phonegap development environment, that includes. 1- node.js installed 2- phonegap installed 3- Platform (Android) SDK installed optional in case […]

View Post

Yii orderable grid

Following Steps : Make sure your database table has a ‘sortOrder’ field. (Optional) Add the ‘sortOrder’ field to your Rules() function in your model Add the ‘actionSort()’ method to your controller to apply the sorting via ajax Add jQuery UI to your view that has the CGridView Setup the jQuery UI Code to work with […]

View Post