且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento:自定义模块:如何管理多个表

更新时间:2023-11-29 22:11:16

您要的是Magento的一个非常高级的方面(自定义Admin代码和功能).我建议您接受在线或面对面的培训,因为这在***答案中很难描述(我接受了培训,说实话,这是一个10步的过程,大约需要一个小时才能复制/粘贴演示代码-自定义工作可能需要4到6个小时才能完成).您的问题也有些不完整-如果您遇到特定于sql的问题,则需要更多信息.您也不希望从块中调用select语句-这些语句应由模型管理,并且还应从模型中调用集合.

What you are asking for is a very advanced aspect of Magento (custom Admin code and functionality). I would suggest you go through online or in-person training as this is far to complex to describe in a *** answer (I went through training, and this is honestly a 10-step process that takes about an hour just to copy/paste demo code -- custom work will probably be anywhere from 4-6 hours to complete). Your question is also somewhat incomplete -- need more info if you are having sql-specific problems. You also never want to call select statements from a Block - these should be managed by Models, and you should also call your collections from your Models.