Model Vs Widget (Autoloader)

Simple thing but I think it’s some kind of a bug. I have model PostVote and widget with same name. Of course when I use widget, loader gets for me model one (not widget).

Is it normal thing?

Unless you want to go down the route of using namespaces, the easiest solution is to append ‘Widget’ to all of your widget classes, so yours would become PostVoteWidget. There’s no danger of conflict then.

Yeah I know, I add ‘w’ as ‘widget’ (wPostView).

So it’s normal behavior - ok.