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 …

Continue reading

How to remove controller name from the URL in CodeIgniter

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 …

Continue reading

How to load view as data in CodeIgniter

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 …

Continue reading

How to use remap method in CodeIgniter

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 …

Continue reading

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 …

Continue reading

How to check a HTML element exists and empty in jQuery

In this tutorial I will show you how to check a HTML element exists and empty using jQuery. Some times we need to check if the DIV is exists or not to add some conditional content. This tutorial will be helpful. For example we have following DIV: If you want to check HTML element is exists or not, you can use the length property of the jQuery object. Now if …

Continue reading

How to remove index.php from URL in CodeIgniter

How to remove index.php from URL in CodeIgniter

If we need a clean URL in CodeIgniter. We need to remove index.php from url in CodeIgniter. So in this tutorial I will show you, how to remove index.php from URL in CodeIgniter. In default you will get index.php in url in CodeIgniter. like :- Codeigniter provide easy way for url rewrite functionality to get clean url or remove index.php from url in codeigniter. So we will follow some steps …

Continue reading