Commit 8fc65d25 by Alexander Makarov

Fixes #4724: fixed example in "Creating your own rule classes"

parent b82d32c1
......@@ -317,6 +317,13 @@ class CarUrlRule extends UrlRule
{
public $connectionID = 'db';
public function init()
{
if ($this->name === null) {
$this->name = __CLASS__;
}
}
public function createUrl($manager, $route, $params)
{
if ($route === 'car/index') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment