S
S
shitprog2021-04-02 15:44:00
Angular
shitprog, 2021-04-02 15:44:00

How to make a routing rule in YII2?

Help to create routing rules for links of the form:
domain/item-451
domain/category/item-452
domain/category/sub_category/item-453
domain/category/sub_category/sub_n_category/item-

453 one action.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Stolyarov, 2018-04-28
@Dark_Knight

Apparently, this makes it possible, with static typing, to understand that working with any card on the Dashboard, you can get the following properties
from it A in general to comply with OOP

K
Konstantin, 2018-05-09
@Junart1

Abstract class inheritance allows you to inherit common properties, as well as override them and set your specific implementation in the DashboardUsersComponent class. In this case, you need to look at the AbstractDashboardCard class.
Also in the code, the constructor of the parent abstract class is called through super and the data is injected into it injector.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question