Created
December 4, 2015 10:15
-
-
Save hmic/5e02ece46dd40222a44a to your computer and use it in GitHub Desktop.
Using CakePHP3 StringTemplat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $this->start('registration')?> | |
<?php $template = new StringTemplate(['registration' => $attendee->event->registration_ctp])?> | |
<?= $template->format('registration', Hash::flatten($attendee->toArray()))?> | |
<?php $this->end()?> | |
<?= $this->fetch('registration') ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment