S
S
search742015-02-09 07:50:42
Yii
search74, 2015-02-09 07:50:42

interfaces. How to implement?

How to implement interfaces in yii2? And where do you store them anyway? I remember in yii1 there was a components directory, where you could write your own classes that were not related to either model or controller's.
ps: why such a question arose - I want to transfer this calendar extension from zend to yii2 ( https://github.com/SCLInternet/BmCalendar ).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2015-02-09
@fornit1917

Everywhere.
Some directories from 1.1 are missing. It is worth noting components, extensions, messages and migrations. The extensions directory is no longer needed. Extensions are installed through Composer and automatically get into vendor. messages and migrations are automatically created as needed. There is no need for components. In 2.0, you can expand classes into any directory. They will be loaded automatically if their namespace matches. If you don't feel comfortable without components, you can create one.
rmcreative.ru/blog/post/s-yii-1.1-na-yii-2.0--chas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question