Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$view->addFilter does not work in 1.3.0 #1828

Closed
MaksSlesarenko opened this issue Jan 15, 2014 · 4 comments
Closed

$view->addFilter does not work in 1.3.0 #1828

MaksSlesarenko opened this issue Jan 15, 2014 · 4 comments
Labels
bug A bug report status: medium Medium
Milestone

Comments

@MaksSlesarenko
Copy link

$volt = new \Phalcon\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions(array(
"compiledPath" => $cacheDir,
"compiledExtension" => ".compiled",
"stat" => true,
"compileAlways" => true,
));

//this does not work
$volt->getCompiler()->addFilter('myfilter', 'md5');

//this causes sigfalt
$volt->getCompiler()->addFilter('myfilter', function () {
return 'somevalue';
});

@ghost ghost mentioned this issue Jan 16, 2014
phalcon pushed a commit that referenced this issue Jan 16, 2014
@phalcon
Copy link
Collaborator

phalcon commented Jan 16, 2014

Fixed by @sjinks

@phalcon phalcon closed this as completed Jan 16, 2014
@MaksSlesarenko
Copy link
Author

pulled latest version f8b581f bug is still reproduceable

@ghost
Copy link

ghost commented Jan 16, 2014

@MaksSlesarenko if you build Phalcon from build/, please run

php build/gen-build.php

first, then compile Phalcon.

@MaksSlesarenko
Copy link
Author

now it works, thanks

@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

2 participants