Comments (5)
What's your CI version?
I'm using CI 2.1.0 and here it's working fine.
from codeigniter-dwoo.
+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.
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.
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.
elrafael, thank you, you saved me. your solution worked for me.
from codeigniter-dwoo.
Related Issues (11)
- Dwoo_Exception HOT 4
- PHP Constants HOT 1
- Extends, Includes, and other function not work HOT 2
- Fatal error: Class 'Dwoo' not found application/libraries/MY_Parser.php on line 57 HOT 1
- MY_Parser.php
- Undefined property: CI_Output::$parse_exec_vars HOT 5
- Dwoo 1.2-dev doesn't exist ... HOT 1
- Cannot access protected property CI_Output::$parse_exec_vars HOT 1
- Lots of errors
- Missing quotations in MY_Parser? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-dwoo.