Yii2 Lesson - 35 Creating A Component

preview_player
Показать описание
Thanks for watching this lesson

Рекомендации по теме
Комментарии
Автор

Thanks Your solution really works unlike the others

MrZevseg
Автор

Hello Uthpala! Thank you very much for your wonderful videos.

I leave you a concern if you want to answer me, it could even be a good topic for tutorials. What do you think of the repository pattern within yii2, as to separate the business logic of the active record models and not overload them. Some suggest a service or repository layer using interfaces, but this is not very clear within yii2. Do you have experience in this regard? The idea is to separate responsibilities and to have the least coupled dependencies.

I await your comment, greetings and keep going!

NicoILeone
Автор

cool stuff, thankyou - a real world type example of why u would use it would be helpful :)

FiddiTwo
Автор

Thanks for video, can't call class and method of the component by


It shows me Exception in

throw new unknown property: ' . get_class($this) . '::' . $name);

But if I use namespace, for
and create an instance of the class:
 $mycomponent = new MyComponent();
then I can call his methods

Am I doing something wrong?

i_programmer
Автор

How to make more than 1 login?

For example:
Admin (backend), Operator (backend), User (frontend)

AccanAndreatha