Posted on 21/2/07 by Felix Geisendörfer
The authors of this post have marked it as deprecated. This means the information displayed is most likely outdated, inaccurate, boring or a combination of all three.
Policy: We never delete deprecated posts, but they are not listed in our categories or show up in the search anymore.
this is just a little tip for those of you who dislike their xhtml to end up as tag soup and still prefer to send out Html 4.01 strict. Here is how to make all helper functions in Cake 1.2 output Html 4.01 compliant markup instead of xhtml:
* This is the constructor for our AppHelper class that we use to make all helper output html 4.01
* compatible markup.
* @return AppHelper
// Loop through all tags in this helper
foreach ($this->tags as $tag => $html)
// Replace all xhtml style tag closings with html 4.01 strict compatible ones
$this->tags[$tag] = r('/>', '>', $html);
If you wonder why somebody would prefer the good old html over the all-so-hyped xhtml, read a little bit about it here.
-- Felix Geisendörfer aka the_undefined
You can skip to the end and add a comment.
This post is too old. We do not allow comments here anymore in order to fight spam. If you have real feedback or questions for the post, please contact us.