philsturgeon / codeigniter-dwoo Goto Github PK
View Code? Open in Web Editor NEWA simple Dwoo template engine implementation for CodeIgniter via Parser library.
A simple Dwoo template engine implementation for CodeIgniter via Parser library.
Getting this error with the latest stable version of CI - Can't find any reference to "parse_exec_vars" in the output library... ?
Severity: Notice
Message: Undefined property: CI_Output::$parse_exec_vars
Filename: libraries/MY_Parser.php
Line Number: 172
I get this error when I copy the main /dwoo/ folder into the application/libraries folder:
Fatal error: Class 'Dwoo' not found in /application/libraries/MY_Parser.php on line 57
Has something changed? Do I need to autoload the Dwoo lib?
I'm new to this library, but getting errors immediately on line 158 in MY_Parser.php:
Parse error: syntax error, unexpected '[', expecting ')' in /application/libraries/MY_Parser.php on line 158
The code appears as so:
$string = str_replace(array('{elapsed_time}', '{memory_usage}'), array('[elapsed_time]', [memory_usage]), $string);
Putting single quotes around [memory_usage]
doesn't seem to do the trick, so I'm stuck in the starting blocks.
This thing has lots of errors...
//class MY_Security_Policy extends Dwoo_Security_Policy {
// public function callMethod(Dwoo_Core $dwoo, $obj, $method, $args)
//{
//return call_user_func_array(array($obj, $method), $args);
//}
////public function isMethodAllowed()
//{
//return TRUE;
//}
//}
What class is it extending? it doesn't exist. Im learning php but im trying to get it to work with ci 2.0.2 If i get it to work i will do a pull request. I think thats what it is :)
Hi,
I'm trying to use the Codeigniter Template library (Phil Sturgeon's one), infact I posted this error in the repo for that library, but it's a dwoo related error.
It happens that when I try to run the dwoo_test I get this error:
PHP Fatal error: Cannot access protected property MY_Loader::$_ci_cached_vars in /home/carlo/public_html/website/application/libraries/MY_Parser.php on line 146
On line 146 there's this:
I'm using the last CodeIgniter version downloaded from github.
Any ideas?
I search on Github but just can find 1.1 ?!?
Hi Phil,
Just stumble upon this error with the latest CI update (2.0.1) it appears to be the change in proprieties scope of the Output class witch is now protected.
This bug appear to be in codeiginter, since the propriety $this->output->parse_exec_vars no longer works either.
Just want to confirm with you first.
Hi,
did you ever test to use these functions?
http://wiki.dwoo.org/index.php/Functions:include
http://wiki.dwoo.org/index.php/Functions:extends
the did not work while using "codeigniter-dwoo"
i try to use the official integration from dwoo itself and it work fine, but i need it in the parser based library
can you fix it please?
Regards
Fatal error: Class 'MY_Security_Policy' not found in**/application/libraries/MY_Parser.php on line 66
The constants isn't working with {%SOMETHING}
I get this when i try to parse {elapsed_time} inside welcome_message.php view file from a fresh CI installation. If I remove it, the page is rendered,
An Error Was Encountered
exception 'Dwoo_Exception' with message 'Plugin elapsed_time can not be found, maybe you forgot to bind it if it's a custom plugin ?
.. and then the stack trace..
maybe I need some custom configuration or add another file that have functions that load and execute '{function_name}'. Add a 'function_name' to $config['parser_allowed_php_functions'] not work.
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.