Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/300.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php shell设计zendframework_Php_Shell_Zend Framework_Twitter Bootstrap - Fatal编程技术网

Php shell设计zendframework

Php shell设计zendframework,php,shell,zend-framework,twitter-bootstrap,Php,Shell,Zend Framework,Twitter Bootstrap,我在实现shell时遇到了一个问题。 我创建的第一个公用文件夹。然后编写了以下代码skin.xml enter code here <? xml version = "1.0" encoding = "UTF-8"?> <skin> <stylesheets> <stylesheet> layout.css </ stylesheet> <stylesheet> text.css &l

我在实现shell时遇到了一个问题。 我创建的第一个公用文件夹。然后编写了以下代码skin.xml

enter code here
    <? xml version = "1.0" encoding = "UTF-8"?>
    <skin>
    <stylesheets>
    <stylesheet> layout.css </ stylesheet>
    <stylesheet> text.css </ stylesheet>
    </ stylesheets>
    </ skin>
在下面的代码I layout.phtml文件中

enter code here
    $ this-> loadSkin ($ this-> skin);
但是,当我测试项目时,它不起作用。输入shell显示的文本,无任何错误,但不显示。 原因是什么

我正在用这本书 赞成 Zend框架 技巧 建立一个完整的CMS项目 (福尔斯特·莱曼) 本书使用的是zf1还是zf2?
我以前在这方面没有任何经验。

我建议不要在Zend_uu名称空间中添加您自己的代码。在layout.phtml文件中,您是否回显headlink
echo$this->headlink()在loadSkin调用后?是echo$this->headLink();他在找它。
enter code here
    protected function _initView ()
    {
    / / Initialize view
    $ view = new Zend_View ();
    $ view-> doctype ('XHTML1_STRICT');
    $ view-> headTitle ('Zend CMS');
    $ view-> skin = 'blues';
    / / Add it to the ViewRenderer
    $ viewRenderer = Zend_Controller_Action_HelperBroker :: getStaticHelper (
    'ViewRenderer'
    ) ;
    $ viewRenderer-> setView ($ view);
    / / Return it, so that it can be stored by the bootstrap
    return $ view;
    {
enter code here
    $ this-> loadSkin ($ this-> skin);