D
D
des1roer2015-11-06 07:22:52
Yii
des1roer, 2015-11-06 07:22:52

Yii using OOP?

here in OOP there is class inheritance, but what about this in PHP?
suppose the model has

public static function init_ruda($id_template, $time, $smen)
    {

but one more condition needs to be added. that is, the number of transferred elements will not be 3 but 4. Would you like to expand the function
or can you somehow access the function with 3 elements, and the fourth one if you wish?
something like
public static function init_ruda($id_template, $time, $smen, $type = null)
    {

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlikDex, 2015-11-06
@des1roer

Inheritance
In my opinion, everything is fine with inheritance. It is not clear where Yii has to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question