Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Added documentation for phalcon/cphalcon#14001 #2299

Merged
merged 1 commit into from
Apr 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions en/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,43 @@ $criteria->limit(10, 5);
$criteria->limit(10, null);
```

<hr/>

<a name='router'></a>
## Router

You can add `CONNECT`, `PURGE`, `TRACE` routes to the Router Group. They function the same as they do in the normal Router:

```php
use Phalcon\Mvc\Router\Group;

$group = new Group();

$group->addConnect(
'/api',
[
'controller' => 'api',
'action' => 'connect',
]
);

$group->addPurge(
'/api',
[
'controller' => 'api',
'action' => 'purge',
]
);

$group->addTrace(
'/api',
[
'controller' => 'api',
'action' => 'trace',
]
);
```

[php-support]: https://secure.php.net/supported-versions.php
[psr-3]: https://www.php-fig.org/psr/psr-3/
[psr-extension]: https://github.com/jbboehr/php-psr
Expand Down