How to Get Current Controller and Method Name in CodeIgniter In this tutorial,we see how to get current controller and method name in Codeigniter application. In some cases we need to get current controller name or current method name. It can do it simply by using $this->route variable of codeigniter. Fetch Current Class Name In Codeigniter
How to Setup Maintenance Mode in Codeigniter 3 Most of the application needs a maintenance mode to indicate the user,the application going through under maintenance. Here is the tutorial to setup the maintenance mode in codeigniter application. CodeIgniter’s Hooks give a feature to modify the core functionality without modifying the core codeIgniter files. We can
How to Remove index.php from URL in CodeIgniter In CodeIgniter we can design URLs human-friendly or seo-friendly. By default in codeigniter, the index.php is added with the URLs. But we remove the index.php from the URL using .htaccess.
Image Upload In Codeigniter With Watermark This tutorial will show you how to upload an image and watermark the image using Codeigniter. The Watermarking feature requires the GD/GD2 library. Codeigniter image upload library allows us to do image watermark in two ways with small configurations changes. 1. Text watermark.(wm_text) Codeigniter text watermark message will be
Sending email with gmail smtp with codeigniter email library Using SMTP server is always a good idea to send email from the codeigniter. while sending email without smtp(mail()), it may chance to deliver email to the spam folder. To avoid this issue SMTP is an better way to send an email. CodeIgniter have a inbulit
Sometimes we occured with the below issue at the end of the page A PHP Error was encountered Severity: Warning Message: touch(): Unable to create file 2;/home/sessions/intranet_sessionn6cti57kfphajiq1husmhdksjl0ju53q because No such file or directory Filename: drivers/Session_files_driver.php Line Number: 248 Backtrace: A PHP Error was encountered Severity: Warning Message: Unknown: Failed to write session data (user). Please
Generally we use one database for application but some times we need to use multiple database. Codeigniter give the option to connect multiple database in application. This tutorial gives idea about how you can connect and use multiple databases in CodeIgniter Application.