0

Can anyone explain why should we write our code in different directories while creating module? Can't we just write our block code in controller? if we put our model,block files in controller .will module work?

1

Yes , it will work. But it is not a proper way. Since we are using MVC flow , we need to do in proper manner. Main purpose of doing this is re-usability.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.