ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

What would it take....

October 19, 2011 2:23pm

Subscribe [2]
  • #1 / Oct 19, 2011 2:23pm

    JonoB

    133 posts

    ...for CI to move away from the singleton?

    I know why it has been there. I know why its there now. I know that removing it would involve an (almost) total rewrite. And it would break compatibility.

    But…its just horrible, its outdated, and most importantly a real f*&^ing pain sometimes. I love CI…but the singleton is killing me slowly.

    Am I dreaming when I ask if its ever going to happen?

  • #2 / Oct 19, 2011 3:59pm

    WanWizard

    4475 posts

    If it’s going to be an (almost) total rewrite, would it still be CodeIgniter?

    And if you can live with a total rewrite, what is wrong will all other frameworks out there, that don’t use singletons?

  • #3 / Oct 19, 2011 4:25pm

    JonoB

    133 posts

    Good question, and something that I have wondered myself. I don’t think its insurmountable though, to have a framework that provides a very similar interface (from an end user point of view, it would mainly be a difference in the way classes are loaded), but a somewhat different architecture.

    There is nothing ‘wrong’ with the other frameworks out there…I have taken a good look at Kohana, Fuel, Zend, and a little dabble with Lithium, Symfony and Laravel. All offer something different. And none of them offer the utterly brilliant simplicity that CI does. Could CI still offer this and do away with the singleton…I know its a lot to ask….

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases