How to Create a Config Variables Loader in CodeIgniter


If you’ve been using CodeIgniter or another MVC framework for any length of time, you’ve probably started to realize the advantage of abstracting data and logic from presentation. But efficiency is not without its drawbacks, and in the case of CodeIgniter, one of these drawbacks is the need to constantly bounce variables out of your controllers so that they are available in your views.

Full Screencast

Related Posts
  • Code
    Android SDK
    Common Entry Points for Android Applications5d7z4 preview image@2x
    In this tutorial, we will provide an overview of common entry points for Android applications. These entry points will focus on ensuring that your application maximizes its utility to the user.Read More…
  • Code
    Mobile Development The Need for Speed7d4d1 preview image@2x
    As mobile developers, we need to make sure that our apps are fast and performant. In this post, we take a look at, a service that monitor your app's performance and tells you exactly how you can improve it.Read More…
  • Game Development
    How to Fund Your Indie GameHow to fund your indie game
    Developing a game can require a huge amount of effort—and as if that weren't enough, most indie game studios aren't exactly flush with financial resources. Thus, most development teams are resigned to seek outside funding sources. Thankfully, raising startup funds isn't quite the mission impossible it was back in the dial-up age. In this article, I'll explain how to get the funds you need.Read More…
  • Music & Audio
    Audio Production
    Filters and You: FIR FiltersFir
    Welcome back! Last time we took a look at the various types of IIR filters, what makes them different, and how to use each type. In this tutorial we are going to shift focus from IIR to FIR. Don't know the difference? Fret not! We are going to look at just what a FIR filter is, how they differ from IIR, and how to use them. Ready? Read on!Read More…
  • Crafts & DIY
    Crochet Fundamentals: How to do Chain StitchChainstitchpreview
    No matter what crochet project you want to start, chances are it all begins with one simple technique; the chain stitch! If you’ve always wanted to learn how to crochet, follow our series of Crochet Fundamentals. This tutorial uses US crochet terminology, with the Australian and UK term in brackets. Stitches include chain (ch)[ch].Read More…
  • Design & Illustration
    Photoshop for Web Designers - A Free Course on Tuts+ PremiumCs6 course preview retina
    Whether you’ve been doing web design for years or you’re new to the field, one of the more powerful tools that you can use is Adobe Photoshop. But no matter what your experience level is, there are so many different tips and tricks out there for marrying the web with Photoshop that it can get daunting. Guess what? Fear no more, because we at Tuts+ Premium have a course that can help you optimize your web design workflow. It’s called Photoshop for Web Designers, and the best part? It’s free.Read More…