-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
water wrote:
>
> If I create a meta tag via:
> $this->nav->headMeta()->appendName('y','1234');
>
> and on the layout have:
> <?=$this->headMeta(); ?>
>
> The outputted html will be
>
> <meta name="y" content="1234" >
>
> rather than:
> <meta name="y" content="1234" />
>
> I also have the same problem with css pages:
> <link href="/static/css/profile.css" media="screen" rel="stylesheet"
> type="text/css" >
>
> Any way to get the closing tag? Probably something obvious I'm missing.
I think you'll find that is the correct behaviour. If your doctype is
HTML (default) then meta and link don't have a closing tag, if you were
to change the doctype to XHTML it will close the tags for you.
Check out the doctype view helper:
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.doctype
- --
Brenton Alker
PHP Developer - Brisbane, Australia
http://blog.tekerson.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkppErkACgkQ7bkAtAithuuDVwCgzhtOW073I2U/3BgkZLRgo/cu
f6oAnjoUFwELypmee10puh/HK80VtJsT
=ToAM
-----END PGP SIGNATURE-----