M
M
Maxim Ustinov2016-09-12 18:11:40
opencart
Maxim Ustinov, 2016-09-12 18:11:40

How to extend the base controller in Yii2?

Good day to all!
Tell me how to make all controllers inherit not from the base one, but from the custom one, which in turn is inherited from the base one. In particular, you are interested in where to write the path and what to write in the controller itself? And how to use the same controller in the module?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
imdeveloper, 2016-08-05
@link_web

Customize SEO URL

W
web-mechanic, 2016-08-09
@amfetamine

import another cnc for service pages into the database, you can find it on the net

A
Anton, 2016-09-12
Reytarovsky @Antonchik

class MyController extends Controller
{ }

class FirstController extends MyController
{}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question