How to add view and controllers in plugins for nopcommece 4.4.4

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 года назад
Can you please suggest me how to add views and controllers in the plugin for the version of 4.4.4.
2 года назад
Hi
You can add controller as we adding the class .
follow the steps
1. Right click > add new Item
2. Give any name you needed but need to add Controller in that .
ex: DemoController.cs
3. After that you can add whatever you needed in that controller , but dnt forgot to inherit to "basePluginController" or "BaseAdminController" , but it can be added as per your requirement ,
add name space according to the requirement
for the controller https://prnt.sc/1vo72ey

2. For view you can add multiple ways , but will show you simply one you can add directly path
https://prnt.sc/1vo78dr

easiest way you can also copy the things from Another plugin or take reference of Nivo Slider plugin so you can get exactly ide

I hope this will helpful to you

if have any query let me know
Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.