You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a function to set a small string, rather than a whole block of markup. For example, I like to pass a class attribute from each page to its base layout.
I've written my own way to accomplish it for now, but I feel like it could be done better. I added this function to ti.php:
To use it, in the layout file I use<?php emptyblock('class'); ?> or <?php set('class', 'default'); ?>
to set it In the child page, I write <?php set('class', 'class-name'); ?>
Thanks for this handy little library!
The text was updated successfully, but these errors were encountered:
It would be nice if there was a function to set a small string, rather than a whole block of markup. For example, I like to pass a class attribute from each page to its base layout.
I've written my own way to accomplish it for now, but I feel like it could be done better. I added this function to ti.php:
To use it, in the layout file I use
<?php emptyblock('class'); ?>
or<?php set('class', 'default'); ?>
to set it In the child page, I write
<?php set('class', 'class-name'); ?>
Thanks for this handy little library!
The text was updated successfully, but these errors were encountered: