2009年2月27日星期五

Re: [fw-mvc] Exception with HeadLink

-- Jay M. Keith <googlator@gmail.com> wrote
(on Friday, 27 February 2009, 09:28 AM -0600):
> I recently upgraded some code from 1.6.x series to 1.7.5 and came up
> with some issues related to the HeadLink view helper.
>
> I get the following:
> Fatal error: Call to undefined method
> Zend_View_Helper_Placeholder_Container::ksort() in
> /export/home1/webapps/***/library/Zend/View/Helper/HeadLink.php on
> line 310
>
> In my Controller I have:
>
$this->view->headLink()->appendStylesheet($this->basePath.'/public/css/k_style_cs.css');
$this->view->headLink()->appendStylesheet($this->basePath.'/public/css/k_print_cs.css', 'print');
$this->view->headLink()->appendStylesheet($this->basePath.'/public/css/style.css');
$this->view->headLink()->appendStylesheet($this->basePath.'/public/css/IE7styles.css', "screen", "(IE 6)|(IE 7)");
>
> and the layout.phtml I have:
>
> <?= $this->headLink() ?>
>
> Any ideas?

What version of PHP are you using? I suspect it may be a PHP version
compatibility issue, as it works fine for me (I'm using PHP 5.2.8).

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: