zend框架mvc的ext错误

时间:2022-10-09 23:26:45

I am trying to setup ext javascript grid within zend framework mvc. I included ext css and js using the following code.

我试图在zend框架mvc中设置ext javascript网格。我使用以下代码包含ext css和js。

$this->headScript()
     ->appendFile('/Resource/scripts/ext/jquery-1.4.2.js')
     ->appendFile('/Resource/scripts/ext/jquery/ext-jquery-adapter.js')
     ->appendFile('/Resource/scripts/ext/jquery/ext-all.js');

$this->headLink()
     ->appendStylesheet('/Layouts/admin/css/content.css')
     ->appendStylesheet('/Layouts/admin/css/ui.css')
     ->appendStylesheet('/Layouts/admin/css/button.css')
     ->appendStylesheet('/Layouts/admin/css/moon.css')
     ->appendStylesheet('/Resource/scripts/ext/css/ext-all.css');

when I run the code, I get the following error message from firefox.

当我运行代码时,我从firefox收到以下错误消息。

syntax error [Break on this error] \n

语法错误[打破此错误] \ n

What should I do to fix this?

我该怎么做才能解决这个问题?

1 个解决方案

#1


1  

Well, that doesn't really mean much. I would start by heading over to the Net tab in Firefox and making sure that all of your scripts and resources are actually loading as expected. If you have any bad paths they'll show up there. (are you sure that ext-all.js is really under your jquery folder?)

嗯,这并不意味着什么。我将首先转到Firefox中的Net选项卡,确保所有脚本和资源实际按预期加载。如果你有任何不好的路径,他们会出现在那里。 (你确定ext-all.js真的在你的jquery文件夹下吗?)

If everything there is OK, put a breakpoint in the entry point to whatever code you're running and go from there. Without seeing any of your code, it's impossible to help you debug.

如果一切正常,请在入口点设置一个断点,以便运行任何代码并从那里开始。如果没有看到任何代码,就无法帮助您进行调试。

#1


1  

Well, that doesn't really mean much. I would start by heading over to the Net tab in Firefox and making sure that all of your scripts and resources are actually loading as expected. If you have any bad paths they'll show up there. (are you sure that ext-all.js is really under your jquery folder?)

嗯,这并不意味着什么。我将首先转到Firefox中的Net选项卡,确保所有脚本和资源实际按预期加载。如果你有任何不好的路径,他们会出现在那里。 (你确定ext-all.js真的在你的jquery文件夹下吗?)

If everything there is OK, put a breakpoint in the entry point to whatever code you're running and go from there. Without seeing any of your code, it's impossible to help you debug.

如果一切正常,请在入口点设置一个断点,以便运行任何代码并从那里开始。如果没有看到任何代码,就无法帮助您进行调试。