Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the changes for segregation of PHP & html code from controller to template #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eastern-parth
Copy link

Hello Team @dpdplugin ,

We have done the changes for segregating the PHP and HTML code from the Controller file Index.php to the two template files. We have divided the HTML code in two separate phtml files (parcelshop-marker.phtml & parcelshop-opening-hours.phtml). We have taken the reference of Single-responsibility Principle from SOLID principles. By using this way, controller will be responsible only for routing, some part of calculation and not for rendering the HTML code. Please let us know your suggestions on this and also let us know if anything is required from our end.

Thanks,
Parth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant