fdisotto / SlimBlog

Simple Blog written with Slim Framework
GNU General Public License v3.0
102 stars 39 forks source link

error with twig #6

Closed jespersgaard closed 10 years ago

jespersgaard commented 10 years ago

hello

i get this error: ( ! ) Strict standards: Declaration of Slim\Views\Twig::render() should be compatible with Slim\View::render($template, $data = NULL) in C:\wamp\www\SlimBlog\vendor\slim\views\Slim\Views\Twig.php on line 46 Call Stack

Time Memory Function Location

1 0.0016 252064 {main}( ) ..\index.php:0 2 0.0265 701832 Composer\Autoload\ClassLoader->loadClass( ) ..\index.php:0 3 0.0281 719976 include( 'C:\wamp\www\SlimBlog\vendor\slim\views\Slim\Views\Twig.php' ) ..\ClassLoader.php:185

jespersgaard commented 10 years ago

great thanks, looking forward to all the features you plan on implementing

rgds Martin

fdisotto commented 10 years ago

When you have this error?

fdisotto commented 10 years ago

btw for now you can change this file C:\wamp\www\SlimBlog\vendor\slim\views\Slim\Views\Twig.php at line 84 like this: public function render($template, $data=null) { $env = $this->getInstance(); $parser = $env->loadTemplate($template);

return $parser->render($this->all(), $data); }

jespersgaard commented 10 years ago

i have the error on every page. thanks I will try that :-)

EDIT: that worked :-)

fdisotto commented 10 years ago

Ok, say if work fine :)