T
T
Turik-us2014-06-10 19:02:03
PHP
Turik-us, 2014-06-10 19:02:03

How to set a default method in a controller?

How to set a default method in a controller? Those. so that it is called when the desired method does not exist.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2014-06-10
@fornit1917

so that it is called when the desired method does not exist.

In php (regardless of the framework and no matter what class it is), in any class, this can be done using the __call magic method. Read the php documentation: www.php.net/manual/en/language.oop5.overloading.ph...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question