• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

I Like Kill Nerds

The blog of Australian Front End / Aurelia Javascript Developer & brewing aficionado Dwayne Charrington // Aurelia.io Core Team member.

  • Home
  • Aurelia 2
  • Aurelia 1
  • About
  • Aurelia 2 Consulting/Freelance Work

WordPress Like Templating And Theming For Codeigniter

Codeigniter · August 17, 2011

If there is one thing that I could name besides the extensible plugin system that I love about WordPress it would have to be the theming and templating system. Most of my projects consist of using WordPress or Codeigniter, and one thing that I find myself wishing Codeigniter had was a template and theming library that worked similarly to how WordPress works.

WordPress works on the premise of the following files’ header, footer, sidebar and index page as well as the existence of a style.css file that defines the themes meta info such as the name, description, author and descriptive tags. If Codeigniter had something like this in the form of a library, that would be awesome.

This leads me to my next point, I’m going to slowly develop a library for Codeigniter that does this. Many will argue Phil’s template library or Colin Williams template libraries are sufficiently good enough, and for many it probably is, but I personally find them to be too involved and not as simplistic as WordPress.

I’m wanting to do a near 1:1 port of the WordPress theming system, right down to the ability to have page specific templates which would basically mean if you have a controller called auth and a method in that controller called login, the controller by default (unless otherwise specified) would load the view login inside of a folder called auth in the current theme folder. A few frameworks already have something similar to this.

I’ve set up a Github project if anyone else would like to contribute, which can be found here. Any thoughts on this would be appreciated.

Dwayne

Leave a Reply Cancel reply

3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Hiren Danecha
Hiren Danecha
11 years ago

how to do a themeing in codeigniter

0
jack
jack
11 years ago

why don’t you work on ignitedpress, it would be such an awesome tool. theme’ing is such a pain in codeigniter currently.

if you need sponsorship/funding, email me, i can organize that

0
Dwayne
Dwayne
Author
11 years ago

Hey Jack,

I would love to work on IgnitedPress, but I’ve been so busy of late. Gotta pay the bills, haha. I will resume work on it though.

0

Primary Sidebar

Popular

  • I Joined Truth Social Using a VPN and Editing Some HTML to Bypass the Phone Verification
  • Testing Event Listeners In Jest (Without Using A Library)
  • How To Get The Hash of A File In Node.js
  • Thoughts on the Flipper Zero
  • Waiting for an Element to Exist With JavaScript
  • How To Paginate An Array In Javascript
  • How To Mock uuid In Jest
  • How To Decompile And Compile Android APK's On A Mac Using Apktool
  • How To Get Last 4 Digits of A Credit Card Number in Javascript
  • Wild Natural Deodorant Review

Recent Comments

  • CJ on Microsoft Modern Wireless Headset Review
  • Dwayne on Microsoft Modern Wireless Headset Review
  • CJ on Microsoft Modern Wireless Headset Review
  • john on Microsoft Modern Wireless Headset Review
  • Dwayne on Why You Should Be Using globalThis Instead of Window In Your Javascript Code

Copyright © 2023 · Dwayne Charrington · Log in

wpDiscuz