+
-
- = $this->Html->link('Docs', 'https://book.cakephp.org/5/', ['target' => '_blank', 'rel' => 'noopener']) ?>
- = $this->Html->link('Api', 'https://api.cakephp.org/', ['target' => '_blank', 'rel' => 'noopener']) ?>
+ 'get',
+ 'url' => ['controller' => 'Packages', 'action' => 'index'],
+ 'class' => 'w-full',
+ 'valueSources' => 'query', // Read existing values from query string
+ ];
+ if ($isPackagesIndex) {
+ $searchFormOptions += [
+ 'hx-get' => $this->Url->build(['controller' => 'Packages', 'action' => 'index']),
+ 'hx-target' => '#packages-index-content',
+ 'hx-select' => '#packages-index-content',
+ 'hx-swap' => 'outerHTML',
+ 'hx-push-url' => 'true',
+ ];
+ }
+ echo $this->Form->create(null, $searchFormOptions);
+ // Preserve filter parameters when searching
+ foreach ($cakephpSlugs as $slug) {
+ echo $this->Form->hidden('cakephp_slugs[]', ['value' => $slug]);
+ }
+ foreach ($phpSlugs as $slug) {
+ echo $this->Form->hidden('php_slugs[]', ['value' => $slug]);
+ }
+ ?>
+
+ = $this->Form->end() ?>
+
+
+
+
+
+ - = $this->Html->link('Docs', 'https://book.cakephp.org/', ['target' => '_blank', 'rel' => 'noopener']) ?>
+ - = $this->Html->link('Api', 'https://api.cakephp.org/', ['target' => '_blank', 'rel' => 'noopener']) ?>
+
+
+
+
+
+ fetch('above_content')) : ?>
+
+
+ = $this->fetch('above_content') ?>
+
+
+
+
+
+
+ = __('Loading content...') ?>
-
+