- WIP on picea-asset AND error handling
This commit is contained in:
1 parent
3ccbf6bfab
commit
d5de5e665b
7 files changed
+61
-48
No files matched your search
@@ -63,9 +63,9 @@ class SectionToken implements ControlStructure {
|
||||
$order = $options['order'] ?? "count(\$___class__template->sectionList[$name]['$action'])";
|
||||
|
||||
return "<?php \$___class__template->sectionList[$name] ??= [ 'prepend' => [], 'append' => [], 'default' => [] ];" .
|
||||
"\$___class__template->sectionList[$name]['$action'][] = [
|
||||
'order' => $order,
|
||||
'callback' => function() use (\$picea, \$___class__template, \$___global_variables, \$___variables, \$__event) {" .
|
||||
"\$___class__template->sectionList[$name]['$action'][] = [ ".
|
||||
"'order' => $order, " .
|
||||
"'callback' => function() use (\$picea, \$___class__template, \$___global_variables, \$___variables, \$__event) {" .
|
||||
"extract(\$___global_variables); extract(\$___variables, \EXTR_OVERWRITE);" .
|
||||
"\$___class__template->sectionStack[] = $name;" .
|
||||
"\$__event->eventExecute(\Picea\Event\Builder\ClassTemplateRenderSection::class, $name);?>";
|
||||
|
||||
Reference in new issue
Block a user