Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 20, 2024
1 parent c1e7fac commit ba44bf0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions plugins/Sandbox/templates/CakeExamples/query_strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
* @var \App\View\AppView $this
*/
?>
<?php $this->append('script'); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script>hljs.highlightAll();</script>
<?php $this->end(); ?>

<div class="source-link" style="float: right;">
<?php //echo $this->SourceCode->link(null, array('class' => 'btn btn-info')); ?>
</div>
Expand All @@ -20,18 +27,9 @@
echo $this->Highlighter->highlight($data, ['lang' => 'php']);
?>

<p>
So with the current implementation of how query strings (and named params) work, one should always assert the correct type first:

<!--
<?php
echo time();
?>
!>

```php
dfsf<?php
echo time(); ?>
```
</p>

<?php
$data = <<<'TEXT'
Expand All @@ -43,7 +41,6 @@
TEXT;
echo $this->Highlighter->highlight($data, ['lang' => 'php']);
?>
I opened a <a href="https://github.com/cakephp/cakephp/issues/2223">ticket regarding this issue</a>.

<h3>Demo/Example</h3>
<?php
Expand Down

0 comments on commit ba44bf0

Please sign in to comment.