A
A
Alan2018-11-26 09:41:49
Yii
Alan, 2018-11-26 09:41:49

How do you use YII2 widgets in practice?

For example, a widget for creating forms with ready-made JS validation?
I understand it might be convenient to use it when creating an admin panel where design is not so important, but on the front, how if form validation on the client is done at the layout stage?
Everywhere for these widgets to configure layout templates?
And in the view code, they create a mess.
And there are many such widgets.
How are you doing in practice?
UPD after communication in the comments:
On the example of the stages of work "layout" + "wordpress":
So I've never made it "under wordpress", because knowing WP you can easily and quickly adapt any menu, forms, etc. without crutches and a bunch of logic. And no one adapts to anyone, everyone works at his stage as he needs and limited in terms of design and layout.
The requirement "Design / layout for wordpress" is often found in freelancing, mainly due to lack of knowledge of the tool or in an attempt to save on a specialist, mistakenly assuming that it will be cheaper.
Same thing with YII2. It will be strange somehow to initially adjust layout designers for YII2.
So the question is, how do you do it in practice?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-11-26
@slo_nik

Good morning.
I use it for both forms and menus.
No mess is created, but on the contrary, everything is neat and clear.
Customization for layout - no problem.
Disable client-side validation - no problem.
You can list a lot, I will say this. If you don't know how to work with yii2 or don't know how, it will be a mess.
ps I
use the following widgets on the frontend:
1) Nav
2) NavBar
3) ActiveForm
4) ListView
5) Modal
6) DetaiView
7) LinkPage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question