Skip to content

Commit

Permalink
Merge pull request #380 from cakephp/51-content
Browse files Browse the repository at this point in the history
Update landing page content for 5.1
  • Loading branch information
steinkel authored Sep 21, 2024
2 parents 1798209 + e8c137d commit 124bbb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion templates/Pages/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$this->assign('socialMeta', $this->Meta->socialTags(['title' => $title, 'description' => $description]));
?>

<?= $this->element('home/cakefest_online')?>
<?php //= $this->element('home/cakefest_online')?>

<?= $this->element('home/cake')?>

Expand Down
27 changes: 13 additions & 14 deletions templates/element/home/whats_new.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@
</div>
<div class="description">
<div class="mb50 mt50">
<h2><?= __("What's new in version") ?></h2>
<p><?= __("The migration guide has a complete list of what's new in. We recommend you give that page a read when upgrading. A few highlights from 5.0 are:") ?>
<h2><?= __("What's new in 5.1") ?></h2>
<p><?= __("The migration guide has a complete list of {0}. We recommend you give that page a read when upgrading. A few highlights from 5.1 are:",
$this->Html->link(__("what's new in 5.1", 'https://book.cakephp.org/5/en/appendices/5-1-migration-guide.html'))
) ?>
</p>
<ul>
<li><?= __('PHP 8.1 required.') ?></li>
<li><?= __('Improved typehints across the framework. CakePHP now leverages union types to formalize the types of many parameters across the framework.') ?></li>
<li><?= __('Upgraded to PHPUnit 10.x') ?></li>
<li><?= __('New enum type mapping support in the ORM enabling more expressive model layers with improved type checking.') ?></li>
<li><?= __('Table finders with named parameters, providing more expressive query building APIs.') ?></li>
<li><?= __('Added time-only Time type and greatly improved Date and DateTime support via chronos 3.x.') ?></li>
<li><?= __('Support for PSR17 HTTP factories was added.') ?></li>
<li><?= __('new plugin commands') ?></li>
<li><?= __('Components can now have dependencies injected by the container') ?></li>
<li><?= __('Upgraded to support PHPUnit 11.1+') ?></li>
<li><?= __('Improved enum validation') ?></li>
<li><?= __('More events, so you can observe your application more easily') ?></li>
<li><?= __('Geospatial type support') ?></li>
<li><?= __('INTERSECT operation support in Database queries') ?></li>
</ul>
<p>
<?= __('While CakePHP 5 contains a number of breaking changes we have prepared an exhaustive migration guide
covering all the deprecated and removed features as well as highlighting the shiny new features.') ?>
</p>
<div>
<a href="https://book.cakephp.org/5/en/appendices/5-0-migration-guide.html" class="btn btn-home">Learn more</a>
<a href="https://book.cakephp.org/5/en/appendices/5-1-migration-guide.html" class="btn btn-home">Learn more</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 124bbb3

Please sign in to comment.