In previous tutorial I have explained how to Get Instagram Access Token Using Client-Side Authentication. Now In this tutorial I will show you how to get self Instagram user ID. Get self Instagram User ID: Click Here to receive Instagram Access Token. Now using this token, you can get self basic details like username, profile pic, bio, etc by following URL: I have created a function getSelfInstaID() to get self instagram user …
Get Instagram Access Token Using Client-Side Authentication
In this tutorial I will show you how to get Instagram access token using Client-Side Authentication (Implicit) for web apps. Instead of handling a code, we receive the access_token as a fragment (#) in the URL. This method is less secure, but allows applications without any server component to receive an access_token. The access token do not specify an expiration time but as per Instagram do not assume access_token is …
Enable image upload option in CKEditor using PHP
In this tutorial I will explain how to enable image upload option in CKEditor using PHP. To enable image upload option in CKEditor, follow steps as explained below. Integrate CKEditor Include following line in your view where you want to use ckeditor and place your ckeditor folder in root folder. Now add class ‘ckeditor’ to the textarea like below: Enable image upload option in ckeditor In ckeditor > config.js file …
How to remove controller name from the URL in CodeIgniter
In this tutorial I will explain how to remove controller name from the URL in CodeIgniter. In recent tutorial How to remove index.php from URL in CodeIgniter, we have explained how to remove index.php from the URL. Now we will remove controller name also from the URL. For example, if our signup page URL is like http://localhost/ci/home/signup here “home” is controller name and “signup” is controller function/method name. Now if …
How to load view as data in CodeIgniter
In this tutorial I will let you know how to load view as data in CodeIgniter. If you want to load a view without sending output data to browser in CodeIgniter this tutorial will help you. Load view output to Browser Load View as data There is a third optional parameter lets you change the behavior of the method so that it returns data as a string rather than sending …
How to use remap method in CodeIgniter
In this tutorial I will explain how to use remap method in CodeIgniter with simple example. CodeIgniter permits you to override which method in the controller gets called through the use of the _remap() method and allow you to define your own method routing rules. Note : If your controller contains a method named _remap(), it will always get called regardless of what your URI contains. For Example: If you …
How to get the last executed MySQL query in CodeIgniter
How to catch events on future elements in jQuery
In this tutorial I will show you how to catch events on future elements in jQuery. For example if we need to add click event on ajax calls loaded elements we need to use on() method of jQuery. Syntax for on() method: $(document).on(event, selector, handler) Example: Also we can replace $(document) with a selector for a static parent of the element. For example, if we have a static div element …