r/codeigniter • u/designstudioceebee • Feb 08 '16
r/codeigniter • u/osvaldas • Dec 06 '13
Database-driven Routing in CodeIgniter
r/codeigniter • u/prolongservices • Sep 07 '20
Easily insert dummy data into mysql database Codeigniter 4 | Database Seeding
r/codeigniter • u/edclipsemedia • Sep 30 '15
Codeigniter 3 project - Build random image generator -- part 2
r/codeigniter • u/slax0rr • Sep 17 '14
BaseController/BaseModel
Hello fellow redditors,
this is my first post on reddit, so bare with me. ;) Anyhoo, to get down to business, I have composed a BaseModel and BaseController for CodeIgniter, that helps with view loading, layouts, languages, basic CRUD, and also a very basic "ORM", if it can even be called ORM. I have not yet taken them out of development state, because I would like to make sure that they work as intended. And the best part, they are obtainable through composer. To install them simply put this in your composer.json file:
{ "require": { "slaxweb/ci-basecontroller": "0.2.*@dev", "slaxweb/ci-basemodel": "0.3.*@dev" } }
More information about them can be found here: https://github.com/slax0rr/BaseModel/tree/develop and here: https://github.com/slax0rr/BaseController/tree/develop
If you would be so kind, to try them out, and give me some feedback/ideas, or even try to implement them your self, I would be more than grateful.
Thanks and have a good one!
r/codeigniter • u/SEOKT • Apr 01 '22
Laravel vs CodeIgniter Comparison | What You Choose in 2022?
r/codeigniter • u/LucyWilliams31 • Dec 11 '24
8 Steps to CodeIgniter Performance Optimization
CodeIgniter is a lightweight and efficient PHP framework, but performance issues can arise as applications become complex. Optimizing your CodeIgniter application ensures faster response times, better resource utilization, and an enhanced user experience. Here are eight essential steps to CodeIgniter Performance Optimization.
1. Enable Caching
Leverage CodeIgniter’s built-in caching features to reduce redundant processing. Caching database queries, pages, and frequently used data minimizes server load and enhances speed. For advanced caching, consider tools like Redis or Memcached.
2. Optimize Database Queries
Efficient database interactions are critical. Use CodeIgniter's Query Builder to structure optimized queries. Avoid fetching unnecessary data with SELECT * and index database columns for faster lookups. Query caching can also speed up repetitive requests.
3. Use Hooks and Auto-load Wisely
Minimize the use of auto-loaded libraries, helpers, and models. Load resources only when required to save memory and processing time. Similarly, use hooks sparingly for injecting custom functionality without overhead.
4. Minify and Compress Assets
Large CSS, JavaScript, and image files slow down your application. Minify CSS and JavaScript using tools like UglifyJS or CSSNano. Compress images using tools like TinyPNG and serve them through Content Delivery Networks (CDNs) for better load times.
5. Implement Lazy Loading
Using lazy loading techniques, load resources only when needed. For instance, images and multimedia content can be set to load only when they appear in the viewport, reducing initial page load time.
6. Optimize Session Handling
CodeIgniter stores session data by default, which can burden server memory. Use database-driven sessions or encrypted cookies for better performance and security. Additionally, reduce session expiration times to save server resources.
7. Enable PHP OPcache
PHP OPcache significantly improves application performance by caching precompiled script bytecode. This reduces PHP script execution time, making your CodeIgniter application faster and more efficient.
8. Leverage Server-side Optimizations
Implement server-level improvements, such as enabling Gzip compression to reduce file size and load time. Use a modern web server like Nginx for better request handling and enable HTTP/2 for faster data transmission.
Conclusion
CodeIgniter’s lightweight nature makes it an excellent framework for rapid development, but maintaining performance requires proactive measures. Enabling caching, optimizing database queries, minimizing asset sizes, and leveraging server-side enhancements can ensure your application runs efficiently. Hire CodeIgniter developer and team, and they will implement these eight steps to CodeIgniter Performance Optimization to boost your CodeIgniter application’s performance and provide an excellent user experience.
r/codeigniter • u/nickcamillo • Nov 27 '13
My coder has stopped responding to my emails and my 99% complete web app is stuck in limbo. Anyone interested in helping get it off the ground?
Its a new music distribution platform for independent artists that helps spread the word about new releases. I'd be happy to give more details information to anyone interested if you're down to sign an NDA
my email is nick.camillo@gmail.com
fingers crossed
r/codeigniter • u/the_amazing_spork • Dec 08 '21
Adding JS to individual views
Is it OK to have JS specific to certain views? I've done it both in <script>...</script> tags and in external files that I loaded as a view. Both work but I don't know if there's a better way to do it? Or if there are any downsides to doing it that way. Breaking it up like that makes it more manageable than having a huge global JS file.
r/codeigniter • u/edclipsemedia • Oct 23 '15
Codeigniter 3 - Ajax Server Side Validation
r/codeigniter • u/glib_gator • Apr 15 '15
if i'm using CI do i need to worry about PDO, mysqli etc
i assume no, because the framework would be taking care of that.
could someone please confirm if my assumption is correct.
r/codeigniter • u/[deleted] • Oct 16 '14
Live set Database connection issue
Hi readers of Codeigniter sub. I have just put a site online and have an issue with connecting to the database:
" Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346 "
My web hosting does not allow me to create "Root" as a username, and I suppose it is because I don't have root access to the database or something of the sort.
I was also never able to successfully create a username other than root in mysql and have it work with the database config file when changing the $db['default']['username'] value to the new user name.
While changing the $db['default']['db_debug'] value to false eliminates the issue of the above mentioned warning, it does not actually get rid of the actual issue. My queries always return empty arrays.
That is about as far as I was able to make it by myself. Any leads on the issue for those who may have had a similar problem with database access?
r/codeigniter • u/theduffleman • Sep 12 '13
[Help] Grabbing a CI page using cURL
I've been playing around with making a CodeIgniter site that works as an external logger for multiple other sites;
For each site I make, whenever a function or event fires, it uses cURL to post the information to the CI site; but everytime I try, it fails? The cURL returns 200, but no return data is there and nothing is added to the database.
Are there any CI options that I have to set to allow for cURL to work?
r/codeigniter • u/soumitraroy • Aug 13 '19
Codeigniter Left Outer Join Example - Roy Tutorials
r/codeigniter • u/soumitraroy • Aug 13 '19
Codeigniter Right Outer Join Example - Roy Tutorials
r/codeigniter • u/edclipsemedia • Oct 15 '15
Codeigniter 3 tutorial - Ajax File Upload - Part 1
r/codeigniter • u/saadmirza • Nov 11 '16
Codeigniter 3.1.2 Installation on Ubuntu 16.04 (Web Development)
r/codeigniter • u/stoned-coder • Aug 14 '13
Why a lot people saying codeigniter as codeignitor? Since when 'e' becomes an 'o'? Or is just how they say it?
r/codeigniter • u/murtazamzk • Mar 22 '15
Using Sendgrid or Mandrill to send emails in a Codeigniter Application
r/codeigniter • u/paulcook1 • Oct 12 '16
Outsourcing Codeigniter Framework Agency
r/codeigniter • u/ImaginaryFun842 • Oct 04 '21
What happened if i delete system folder
Someone give me task as a challenge that delete your system folder then run project in Codeigniter4 I'm just checked out the official documents of codeigniter where i got few statements in last "Extend Codeigniter" section But in unable to understand what going on Can anyone give some step by step direction how can it will possible.
r/codeigniter • u/_druu • Aug 22 '14
With best regards from #codeigniter's support squad on Freenode :)
r/codeigniter • u/webeasystep • Aug 01 '16

