Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
HTML 4 specific CakePHP?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gearvOsh  
View profile  
 More options Dec 26 2008, 11:54 pm
From: gearvOsh <mileswjohn...@gmail.com>
Date: Fri, 26 Dec 2008 20:54:42 -0800 (PST)
Local: Fri, Dec 26 2008 11:54 pm
Subject: HTML 4 specific CakePHP?
Honestly I really dislike the "xhtml" type of tags in CakePHP. There
are no reasons for that, I think it would be a better idea to make it
html 4 strict.

Heres an article on why xhtml is retarded.

http://www.webdevout.net/articles/beware-of-xhtml


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Pemberton  
View profile  
 More options Dec 27 2008, 1:10 am
From: "Arthur Pemberton" <pem...@gmail.com>
Date: Sat, 27 Dec 2008 00:10:56 -0600
Local: Sat, Dec 27 2008 1:10 am
Subject: Re: HTML 4 specific CakePHP?

On Fri, Dec 26, 2008 at 10:54 PM, gearvOsh <mileswjohn...@gmail.com> wrote:

> Honestly I really dislike the "xhtml" type of tags in CakePHP. There
> are no reasons for that, I think it would be a better idea to make it
> html 4 strict.

> Heres an article on why xhtml is retarded.

> http://www.webdevout.net/articles/beware-of-xhtml

Good luck with that. I prefer the cleanliness of XHTML myself.

--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gearvOsh  
View profile  
 More options Dec 27 2008, 1:32 am
From: gearvOsh <mileswjohn...@gmail.com>
Date: Fri, 26 Dec 2008 22:32:54 -0800 (PST)
Local: Sat, Dec 27 2008 1:32 am
Subject: Re: HTML 4 specific CakePHP?
Please explain your cleanliness? HTML 4 can do everything XHTML can
except self closing tags />.

Also your XHTML is being parsed as HTML and removed, so whats your
point?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Weldon  
View profile  
 More options Dec 27 2008, 1:55 am
From: Graham Weldon <gra...@grahamweldon.com>
Date: Sat, 27 Dec 2008 17:55:49 +1100
Local: Sat, Dec 27 2008 1:55 am
Subject: Re: HTML 4 specific CakePHP?
Everyone has reasons for and against various technologies.
Thankfully, CakePHP provides you a complete fantastic framework without
limiting you to something as specific as only being able to use xhtml.

You should be able to extend the html helper for all (most?) the tags
you want to produce.
Perhaps create a html4 helper:

App::import('Helper', 'Html');
class Html4Helper extends HtmlHelper {
    // Implement code here, maybe sometimes as simple as replacing $tags
values.

}

Good luck with it.
If you do create something that you feel does the job, submit an article
to the bakery, and share your helper with the community!

Cheers,
Graham (Predominant)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Pemberton  
View profile  
 More options Dec 27 2008, 2:20 am
From: "Arthur Pemberton" <pem...@gmail.com>
Date: Sat, 27 Dec 2008 01:20:19 -0600
Local: Sat, Dec 27 2008 2:20 am
Subject: Re: HTML 4 specific CakePHP?

On Sat, Dec 27, 2008 at 12:32 AM, gearvOsh <mileswjohn...@gmail.com> wrote:

> Please explain your cleanliness? HTML 4 can do everything XHTML can
> except self closing tags />.

> Also your XHTML is being parsed as HTML and removed, so whats your
> point?

What exactly is CakePHP doing that you find such a problem?

You can use XHTML in your HTML, but I can't use HTML in my XHTML, and
I prefer XHTML.

--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gearvOsh  
View profile  
 More options Dec 27 2008, 2:41 am
From: gearvOsh <mileswjohn...@gmail.com>
Date: Fri, 26 Dec 2008 23:41:03 -0800 (PST)
Local: Sat, Dec 27 2008 2:41 am
Subject: Re: HTML 4 specific CakePHP?
Most browsers dont support XHTML and most people dont even write XHTML
correctly. If this is your site(http://www.pembo13.com/), your DTD is
XHTML but its being parsed as HTML. So basically thats kaput, did you
read the article I posted earlier?

@Graham Weldon - Seems like a lot of work to overwrite it. Actually I
dont see how that would work well.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Pemberton  
View profile  
 More options Dec 27 2008, 2:49 am
From: "Arthur Pemberton" <pem...@gmail.com>
Date: Sat, 27 Dec 2008 01:49:43 -0600
Local: Sat, Dec 27 2008 2:49 am
Subject: Re: HTML 4 specific CakePHP?

On Sat, Dec 27, 2008 at 1:41 AM, gearvOsh <mileswjohn...@gmail.com> wrote:

> Most browsers dont support XHTML

I don't know, all the sites where I use XHTML seem to work just fine.

> and most people dont even write XHTML
> correctly.

Not exactly my problem now is it. That's kinda like saying don't do
maths because a lot of people don't do math well.

> If this is your site(http://www.pembo13.com/), your DTD is
> XHTML but its being parsed as HTML.

That's all well, and good. I prefer the markup to be as XML like as
possible. If I didn't, I'd be using HMTL.

> So basically thats kaput, did you

Fine, how does  any of that stop from integrating CakePHP into your site though?

> read the article I posted earlier?

I scanned it, didn't give any reasons why HTML was better than XHTML,
just seemed to say that HTML was good enough. It went as far as
mentioning HTML 5, which is at best months away -- not relevant for
the present.

And nothing you've said so far suggests that XHTML is a bad thing,
just that HMTL is good enough. And while I'm not up to date on my
HTML, I don't think there is much in XHTML that doesn't work in HTML.
So switching to HTML would just make CakePHP useful to less people.

Not that I care... I don't think HTML vs. XHTML is that big a deal.
The only reason I replied is that I don't like the idea of people
popping into other peoples projects and saying "hey, I don't like the
way you've done this, redo it to this way that I like it".

I should not that I am in no way affiliated with the CakePHP projects,
and I speak solely for and represent only myself.

> @Graham Weldon - Seems like a lot of work to overwrite it. Actually I
> dont see how that would work well.

--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gearvOsh  
View profile  
 More options Dec 27 2008, 5:22 am
From: gearvOsh <mileswjohn...@gmail.com>
Date: Sat, 27 Dec 2008 02:22:07 -0800 (PST)
Local: Sat, Dec 27 2008 5:22 am
Subject: Re: HTML 4 specific CakePHP?
No thats the thing, XHTML is not supported.

You would need to put the content-type as application/xhtml+xml which
in most cases breaks the layout and always breaks IE. Everyone usually
puts it as text/html which then renders the browser as regular HTML
and NOT XHTML. Im not telling you XHTML is bad, all im saying is that
in the end the browser outputs any type of XHTML as HTML 4.

In CakePHP you can "choose" the Doctypes of XHTML or HTML but the
taglist is all XHTML, which then causes markup errors.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver.prater@googlemail. com  
View profile  
 More options Dec 27 2008, 7:33 am
From: "oliver.pra...@googlemail.com" <oliver.pra...@googlemail.com>
Date: Sat, 27 Dec 2008 04:33:36 -0800 (PST)
Local: Sat, Dec 27 2008 7:33 am
Subject: Re: HTML 4 specific CakePHP?
Well I personally would say that having the taglist in XHTML / XML is
of a more global advantage ...

Since if you want to spit out XML for other Documents eg. AJAX, RSS,
and so on you need tags that confirm to XML for it to even work. And
as far as I know RSS Readers etc. wont let you get away with faulty
markup as the browsers of today are ... read the first paragraphs and
it seems to me that he is once again complaining about just how bad
the support (following of clear standards) is by the browsers of
today, and the resulting facts that developers then have to fight
endless hours to get a some what good result in most browsers and OS.
Where more than often Developers have to break with the standards to
do so, which makes the standards more sloppy! (his main complaint is
to the sloppyness of the Developers to the standards)

So if you personally want it to be clean HTML 4 strict and the taglist
is stopping you write the helper as suggested, and give it to the
community if you want.

I should note that I am in no way affiliated with the CakePHP
projects,
and I speak solely for and represent only myself.

On Dec 27, 11:22 am, gearvOsh <mileswjohn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernardo Vieira  
View profile  
 More options Dec 27 2008, 10:43 am
From: Bernardo Vieira <bvieira.li...@gmail.com>
Date: Sat, 27 Dec 2008 13:43:26 -0200
Local: Sat, Dec 27 2008 10:43 am
Subject: Re: HTML 4 specific CakePHP?
gearvOsh wrote:
> In CakePHP you can "choose" the Doctypes of XHTML or HTML but the
> taglist is all XHTML, which then causes markup errors.

gearvOsh,
It shouldn't be too much of hassle to create  a html4 helper based on
the existing html helper. If  you create your helper extending the
existing html helper, basically all you'd have to do is copy/paste the  
tags array (lines 45-98 in 1.2 final) into your newly created class and
change as necessary.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo Andrade  
View profile  
 More options Dec 27 2008, 11:47 am
From: "Marcelo Andrade" <mfandr...@gmail.com>
Date: Sat, 27 Dec 2008 13:47:13 -0300
Local: Sat, Dec 27 2008 11:47 am
Subject: Re: HTML 4 specific CakePHP?
On Sat, Dec 27, 2008 at 12:43 PM, Bernardo Vieira

<bvieira.li...@gmail.com> wrote:

> gearvOsh wrote:
>> In CakePHP you can "choose" the Doctypes of XHTML or HTML but the
>> taglist is all XHTML, which then causes markup errors.

> gearvOsh,
> It shouldn't be too much of hassle to create  a html4 helper based on
> the existing html helper. If  you create your helper extending the
> existing html helper, basically all you'd have to do is copy/paste the
> tags array (lines 45-98 in 1.2 final) into your newly created class and
> change as necessary.

As a suggestion for the developers, maybe a better
approach was to have some flag in the config that
tells the doctype compliance mode (strict, transition
for html 4.01 and xhtml 1.0).

--
MARCELO DE F. ANDRADE (aka "eleKtron")
Belem, PA, Amazonia, Brazil
Linux User #221105

[gus@pará ~]# links http://pa.slackwarebrasil.org/

For Libby's backstory be told on Lost
http://www.petitiononline.com/libby423/petition.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Pemberton  
View profile  
 More options Dec 27 2008, 2:08 pm
From: "Arthur Pemberton" <pem...@gmail.com>
Date: Sat, 27 Dec 2008 13:08:01 -0600
Local: Sat, Dec 27 2008 2:08 pm
Subject: Re: HTML 4 specific CakePHP?

On Sat, Dec 27, 2008 at 4:22 AM, gearvOsh <mileswjohn...@gmail.com> wrote:

> No thats the thing, XHTML is not supported.

> You would need to put the content-type as application/xhtml+xml which
> in most cases breaks the layout and always breaks IE. Everyone usually
> puts it as text/html which then renders the browser as regular HTML
> and NOT XHTML. Im not telling you XHTML is bad, all im saying is that
> in the end the browser outputs any type of XHTML as HTML 4.

So... then there is no reason for me to not use it then.

> In CakePHP you can "choose" the Doctypes of XHTML or HTML but the
> taglist is all XHTML, which then causes markup errors.

So then do you work in XHTML, since it gets parsed as HTML anyways.

--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Pemberton  
View profile  
 More options Dec 27 2008, 2:09 pm
From: "Arthur Pemberton" <pem...@gmail.com>
Date: Sat, 27 Dec 2008 13:09:41 -0600
Local: Sat, Dec 27 2008 2:09 pm
Subject: Re: HTML 4 specific CakePHP?

That's going to be an arbitrary performance hit. I recently saw some
not too CakePHP friendly benchmarks. I don't think that would help.

--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gearvOsh  
View profile  
 More options Dec 27 2008, 5:50 pm
From: gearvOsh <mileswjohn...@gmail.com>
Date: Sat, 27 Dec 2008 14:50:25 -0800 (PST)
Local: Sat, Dec 27 2008 5:50 pm
Subject: Re: HTML 4 specific CakePHP?
@Arthur Pemberton - Yeah but then if I set my Doctype as HTML 4 im
riddled with markup errors which isnt good for me or the client.

@Marcelo Andrade - Yeah thats what I was hoping was in the system, but
I guess not. Ill see if I can extend it in some way.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver.prater@googlemail. com  
View profile  
 More options Dec 28 2008, 10:24 am
From: "oliver.pra...@googlemail.com" <oliver.pra...@googlemail.com>
Date: Sun, 28 Dec 2008 07:24:58 -0800 (PST)
Local: Sun, Dec 28 2008 10:24 am
Subject: Re: HTML 4 specific CakePHP?
@gearvOsh - Thanks for pointing this out. I finally came to reading it
all, and I now personally find that this issue is to be seen as a
weakness of the CakePHP framework. I sadly do not possess the
knowledge at the moment to think up a good performance friendly simple
solution to solve the problem, but the generation of not valid code
can not be seen as positive!

On Dec 27, 11:50 pm, gearvOsh <mileswjohn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j0n4s.h4rtm4nn@googlemail .com  
View profile  
 More options Dec 28 2008, 12:48 pm
From: "j0n4s.h4rtm...@googlemail.com" <j0n4s.h4rtm...@googlemail.com>
Date: Sun, 28 Dec 2008 09:48:39 -0800 (PST)
Local: Sun, Dec 28 2008 12:48 pm
Subject: Re: HTML 4 specific CakePHP?
Just one question, because the thread opener has a point (XHTML and
HTML4 both have their benefits as HTML5 will probably have but XHTML2
seems not going to have):

Is there a CakePHP global way to define output type (XHTML 1.0, 1.1
HTML 4, all 3 strict, transitional, frameset) - if not, it is just
missing. It is no question of discussion. Many sites are serfed as
HTML and HTML 4 is a great option for those sites. CakePHP should
respect the requirement and a configuration parameter should be added
to core.php if it does not exist.

FormHelper for instances (but webroot/index.php as well and <link>
elements by css/js importers) should respect the settings.
It is not an option to run Tidy afterwards. That's the dirty way of
doing it.

So: is there an option, or ain't it present?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gearvOsh  
View profile  
 More options Dec 28 2008, 5:24 pm
From: gearvOsh <mileswjohn...@gmail.com>
Date: Sun, 28 Dec 2008 14:24:53 -0800 (PST)
Local: Sun, Dec 28 2008 5:24 pm
Subject: Re: HTML 4 specific CakePHP?
I have not found any option or setting for using HTML or XHTML.

All I have seen is that you can set the Doctype, but even if you set
the Doctype as HTML, all the tags are in XHTML.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Royle  
View profile  
(1 user)  More options Dec 28 2008, 7:46 pm
From: Adam Royle <a...@sleekgeek.com.au>
Date: Sun, 28 Dec 2008 16:46:27 -0800 (PST)
Local: Sun, Dec 28 2008 7:46 pm
Subject: Re: HTML 4 specific CakePHP?
Is it possible that you can just overwrite the tag list with your HTML
equivalents?

http://bakery.cakephp.org/articles/view/overriding-specific-html-tags...

Cheers,
Adam

On Dec 29, 8:24 am, gearvOsh <mileswjohn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergei  
View profile  
 More options Dec 29 2008, 8:06 am
From: Sergei <yatse...@gmail.com>
Date: Mon, 29 Dec 2008 05:06:23 -0800 (PST)
Local: Mon, Dec 29 2008 8:06 am
Subject: Re: HTML 4 specific CakePHP?
Yep I agree. MSIE 5 through 7, the most popular browser, treats XHTML
as usual HTML. So there's no point.

And by the way speaking of the future, there is no XHTML 2.0 in it,
only HTML 5, which is actively developed now.

S.

On Dec 27, 12:54 pm, gearvOsh <mileswjohn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ralph.marchildon@gmail.co m  
View profile  
(1 user)  More options Dec 29 2008, 9:00 am
From: "ralph.marchil...@gmail.com" <ralph.marchil...@gmail.com>
Date: Mon, 29 Dec 2008 06:00:42 -0800 (PST)
Local: Mon, Dec 29 2008 9:00 am
Subject: Re: HTML 4 specific CakePHP?
I think Adams answer is the only sane one here, that looks to be the
official way to change tag definitions after the app/config/tags.php
was deprecated almost 2 years ago ( https://trac.cakephp.org/ticket/2081
)...  No need to override html helper, no need to pass everything
through htmltidy.

For those who need to scratch their HTML vs XHTML itch, follow the
code...

http://api.cakephp.org/form_8php-source.html#l00818
http://api.cakephp.org/html_8php-source.html#l00541
http://api.cakephp.org/html_8php-source.html#l00045

then, maybe using http://api.cakephp.org/html_8php-source.html#l00183
as a starting point, write something that would switch on the possible
doctypes and override the tags that might be throwing validation
errors for html4, write some test cases to prove correctness and
submit it as an enhancement to https://trac.cakephp.org/.  No, it's
not built in, no, it's not broken, it just doesn't do exactly what you
want.  Go go open source!

- R

On Dec 28, 6:46 pm, Adam Royle <a...@sleekgeek.com.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j0n4s.h4rtm4nn@googlemail .com  
View profile  
 More options Dec 30 2008, 3:57 am
From: "j0n4s.h4rtm...@googlemail.com" <j0n4s.h4rtm...@googlemail.com>
Date: Tue, 30 Dec 2008 00:57:13 -0800 (PST)
Local: Tues, Dec 30 2008 3:57 am
Subject: Re: HTML 4 specific CakePHP?
You are right Ralph,

but first I have to have a working CakePHP application that actually
get's used. If that is the case I will aim for HTML 4 STRICT (and
later on HTML 5 STRICT or LOOSE let's see) and having website/
application quality in mind I will for sure be remembered on this
thread by the w3c validator =).

Thanks for your hints at the codebase.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google