المشاركات

عرض الرسائل ذات التصنيف CodeIgniter Tutorials

How to Create Custom Library in CodeIgniter

صورة
Hi, today let's see how to create custom library in codeigniter . CodeIgniter offers a rich set of libraries and helpers for robust application development. In general, a library is a class file used to group similar functionalities into a single file. Now we can do the same with helper but the libraries have their own object to store relevant data. Below I'll show you how to create your own class libraries in CI. You must store these library files inside the 'application/libraries' folder. This will keep them separate from the native libraries of the framework. CodeIgniter - Create Custom Library: CodeIgniter is a flexible MVC framework and allows you to, Create new custom libraries. Extend existing libraries to include additional functionalities to them. Replace native libraries completely with your own version. I'm going to show you an example where I create a custom library to export the database table as a json string. STEP-1) Create a library named...

How to Resize Image and Create Thumbnail in CodeIgniter

صورة
Hi! Today we will see how to resize image and create thumbnail in codeigniter . This comes handy when you want to resize user avatar or profile images. Generally, shopping sites employ this method. Although they upload large product images, they'll create a thumbnail version of them and lists them in several categories. This will not only save bandwidth but load the page faster and listing more items in a limited space. We are going to see how to do this in codeigniter. CI offers a very useful image manipulation class called image_lib which we are going to use for resizing the image. Using this library you can not only change the size but perform crop, rotate and watermark images. It is compatible with all major image libraries like GD/GD2, ImageMagick and NetPBM and we will use GD2 here. CodeIgniter - Image Resizing and Creating Thumbnail Image: Let's build a CI demo to implement image resizing and the process goes like this. The user uploads images using the upload for...

PHP CodeIgniter Tutorials for Beginners Step By Step: Learn From Scratch

صورة
Hi, Welcome to our PHP CodeIgniter Tutorial Series. These step by step tutorials are intended for beginners who want to start learning php codeigniter from scratch. It will start right away from setting up the codeigniter framework working environment and move on to more advanced topics covering codeigniter framework libraries, helpers and active record class for database communication. Another nice perk with this series is you will get to know about the popular twitter bootstrap css framework while learning. Why You Should Learn CodeIgniter Framework? CodeIgniter Framework is developed by EllisLab and now it is taken by British Columbia Institute of Technology. It is the simplest and light-weight PHP framework which lets you create robust web applications in no time. It is greatly appreciated for its speedy performance and smaller learning curve and suitable for highly scalable applications. And even though php codeigniter framework loosely follows Model-View-Controller pat...