-
Notifications
You must be signed in to change notification settings - Fork 132
How to extend Context in custom helper? #148
Comments
First of all, bundling the logic and markup is not a good idea. If that's what you want, embedding html and php in one file would be much better option. Specially because of its performance compared to what you get from this library. However, if you in really want to do this, have a look at |
Also you might find #132 (comment) interesting. That's another way to approach this. |
You already have logic in handlerbars like |
|
I wan to create custom helper
sql
:how can I use Context in custom helper to make it work? Also if I'm in helper and call
$context->get('id');
will it return the id from sql higher in hierarchy? Do I need to modify Helpers.php to add this helper or is there a way to do it outside of the library in user code?The text was updated successfully, but these errors were encountered: