Coder Social home page Coder Social logo

Comments (5)

elrafael avatar elrafael commented on June 4, 2024

What's your CI version?

I'm using CI 2.1.0 and here it's working fine.

from codeigniter-dwoo.

andrefrcastro avatar andrefrcastro commented on June 4, 2024

+1

Version 2.1.0

Fatal error: Cannot access protected property CI_Loader::$_ci_cached_vars in \libraries\MY_Parser.php on line 146

from codeigniter-dwoo.

elrafael avatar elrafael commented on June 4, 2024

Sorry for late answer.

My bad, I'm using Modular extensions, already have this variable set as public.

In fact, new versions of CI have theses variables protected. You can extend the Loader class and change this variable to public, like that:

MY_Loader extends CI_Loader {
  public $_ci_cached_vars = array();
}

from codeigniter-dwoo.

hafizbistar avatar hafizbistar commented on June 4, 2024

well.. ci_smarty had the same problem.
Vheissu/Ci-Smarty@1d825e4

instead of making it public, they simply remove the whole line. possibly, its best just to keep it protected.

from codeigniter-dwoo.

yerbol777 avatar yerbol777 commented on June 4, 2024

elrafael, thank you, you saved me. your solution worked for me.

from codeigniter-dwoo.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.