Nopcommerce inherit code from de nop core controller

我是研究僧i 提交于 2019-12-13 19:23:36

问题


I'm trying to develop a plugin in nopcommerce. To do this I want to replace some of the core code out of nopcommerce.

I tried to inherit it via:

public class TryingNewProjectController : BasePluginController, Nop.Web.Controllers.CatalogController
{
   ///// CODE /////  
}

Can someone tell me what I'm doing wrong ?

Error:

The type or namespace name 'Controllers' does not exist in the namespace 'Nop.Web' (are you missing an assembly reference?


回答1:


It really does mean you are actually missing a reference to be able to use Nop.Web.Controllers.

And as you found out it was Web.Controllers.CatalogController.

So Nop.Web.Controllers was itself expecting the reference.



来源:https://stackoverflow.com/questions/31462771/nopcommerce-inherit-code-from-de-nop-core-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!