Difference between #18 and #19 of
Yii3 - How to start

Revision #19 has been created by rackycz rackycz on Oct 9, 2025, 8:35:16 AM with the memo:

edit
« previous (#18) next (#20) »

Changes

Title unchanged

Yii3 - How to start

Category unchanged

Tutorials

Yii version unchanged

3.0

Tags unchanged

Content changed

[...]
return ExitCode::OK;
}
}
```

Register the new command in file `config/console/commands.php`.

 
 
> You can also obtain the ConnectionInterface in the same way as you did it in `IndexAction` with the `Query` object. Just use `ContainerInterface $container` in the constructor instead of `ConnectionInterface $db`. Then you can call `$db = $this->container->get(ConnectionInterface::class);`.
1 0
2 followers
Viewed: 576 times
Version: 3.0
Category: Tutorials
Tags:
Written by: rackycz rackycz
Last updated by: rackycz rackycz
Created on: Oct 8, 2025
Last updated: 2 days ago
Update Article

Revisions

View all history