如何在Zend中将<noscript>标签添加到headlink() - > appendStylesheet()?

I am using a plugin that has a noscript tag, which is an alternative for browsers that have javascipt disabled. -source

The code I am using in the action is:

$this->view->headLink()->appendStylesheet('/css/my.css');

However this just appends it as is, I would like the script to be within a <noscript></noscript> tag.

The docs says:

appendStylesheet($href, $media, $conditionalStylesheet, $extras)

But I am still unsure how I would go about this?

You can use this for better solution.

echo $this->view->layout()->scriptTags = '<noscript>No Javascript</noscript>';

Try Healink helper to add inline javascript in to your view

please refer AppendScript with detail

<?php  $this->headScript()->appendScript('<noscript></noscript>', 
    $type = 'text/javascript') ?>

hope this will sure work for you.

According to my assumption dude ...
Don't go for the hardest thing. Just type the code

<noscript>
    <div>
        <h4>Warning!</h4>
        <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
    </div>
</noscript>