Magento自定义模块adminhtml / base / default [英] Magento custom module adminhtml/base/default

查看:141
本文介绍了Magento自定义模块adminhtml / base / default的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次尝试查看indexController时,我的自定义模块都会在系统日志上生成此错误。

My custom module is generating this error on the system log everytime I try to view the indexController.

2012-01-25T17:23:08+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/page/2columns-right.phtml

我已经在模块代码中钓鱼了好几个小时了,似乎找不到任何错误。是什么原因造成的?基本/默认文件夹甚至在adminhtml下也不存在。

I've been fishing through my module code for hours, just can't seem to find anything wrong. What could cause this? The base/default folder doesn't even exist under adminhtml.

推荐答案

基本/默认 package / theme是Magento将在其中寻找模板文件的最终文件夹。当您看到此错误时,这意味着Magento在以下位置寻找了模板

The "base/default" package/theme is the final folder Magento will look for template files in. When you see this error, it means Magento looked for the template in

[current-design-package]/current-theme/template/page/2columns-right.phtml
[current-design-package]/default/template/page/2columns-right.phtml

您的问题中没有足够的信息来确切说明您所要解决的问题 ,但您看起来是您自己或通过第三方模块尝试在Magento管理控制台中更改根块(或另一个块)的模板申请到 2columns-right.phtml

There's not enough information in your question to 'suss out the exact problem you're having, but it looks like you have, by your self or via a third-party-module, made an attempt to change the template of the root block (or perhaps another block) in the Magento admin console application to 2columns-right.phtml.

但是,此模板 adminhtml 设计包。这就是为什么您会收到该错误的原因。管理控制台仅附带一个一个根模板,即 page.phtml 2columns-right.phtml 模板是购物车应用程序的前端模板。

However, this template does not exists anywhere in the adminhtml design package. That's why you're getting that error. There's only one root template that ships with the admin console, and that's page.phtml. The 2columns-right.phtml template is a frontend template, for the cart application.

如果没有任何人都需要帮助您更好地描述您的模块,以及使用它的动机以及您期望发生的事情。

If that doesn't help a better description of your module, as well as your motivation for using it and what you expect to happen will be needed for anyone to answer your question.

这篇关于Magento自定义模块adminhtml / base / default的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆