integry
integry
Apparently also some "built-in" functions do not work inside macros, including url(). This template code inside a macro: ``` volt {{ url(action) }} ``` compiles into this: ``` php url->get($action);...
Here's how I fixed it myself by extending the compiler. It now uses the $volt variable, which is available in the main template scope, as well as the macros. Would...
I see this PHP error: Fatal error: Cannot use $this as lexical variable I can rewrite it this way and it "does not fail": ``` php $that = $this; $this->_compiler->addFunction('t',...
Well, it "works", but it does not produce the right result. The result of this function would be a string in the compiled template code (PHP), however it has to...
This issue is still present in 1.3.0. In my case it presents problems with loading model data into AngularJS app from a Phalcon backend via JSON, because all the numbers...
Another test case that produces the same fatal error, and this time I'm not even assigning the parent directly. ``` php $parent = new TheParent(); $parent->name = 'The parent'; $parent->save();...
Thank you for the suggestion, it indeed works in the test case. However for some strange reason it does not work in the production code. After setting the new ID,...
I couldn't make the dynamically generated ion-scrolls to be referenced by handle, so I borrowed a code snippet from above and mixed in the worst ideas from PHP with stunning...