There has already been some, mention of firefox and use of firebug.
Which has some really nice features one of which is to present the
HTML JS and CSS in very human readable form. Along with contextual
relation of the CSS to the currently selected HTML element.

Serving up Tidy and Pretty human readable code violates another issue
I see here on the threads. And that is "My Cake App is running Slow".
I would almost say you should be requesting the opposite. We should be
requesting tighter smaller HTML files by remove all the pretty
whitespace formatting.

The Yahoo group has done much research on the topic of why web apps
are slow. What they found once they profiled the entire process was
the back end process meaning the Server and deployment were usually
not what made a sight seem slow from the users perspective. They
ultimately came up with 14 points or Rules to speed up your web apps,
these rules were in order by most bang for you effort at the top as
rule number one. They've also deployed a nice little FREE utility
which is a companion to firebug which is called YSlow (Why is my site
slow).

It can be found here:
http://developer.yahoo.com/yslow/

Yslow grades a site and gives each rule a grade from A-F as it applies
to the site. Each rule has details from your site of things you can
correct and a link to the details of the rules and how to correct for
that rule.

Given that firebug already provides a clean interface to view the
HTML, js, and css and adding to that utilities like yslow I'd say the
best thing for the cakePHP Developers to do is complete the features
of 1.2 (which they are doing a great job)

One note on yslow as it relates to cake. With a clean model a baked
app passes with All A's on those rules that apply to the source of the
app. There are rules that apply to the Server (Apache) and how it is
setup.

I've found some serious problems in a couple of my apps just by
reviewing the YSlow rules and fixing them. You may be surprised at
what you find in your own code when you take a look at it from a
different perspective.

I hope this new bit of icing makes your cake that much more enjoyable.

LunarDraco


On Oct 19, 4:07 am, Mike Green <[EMAIL PROTECTED]> wrote:
> Better yet, since some sites squash up the html (removing whitespace)
> to speed things up, I suggest using firefox and the view-source
> extension:
>
> http://jennifermadden.com/scripts/ViewRenderedSource.html
>
> Which will "properly" indent outputted source, and allow you to expand/
> collpase sections of the code.
>
> Mike
>
> On Oct 19, 3:38 am, Rex <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I see that in cakephp a view output is not properly indented. This
> > makes it very difficult to debug a problem.
> > I suggest that all cakephp (HTML) output should be indented properly
> > so that when we try to view-source using mozilla, we get a
> > beatutifully formatted code which all humans can see and understand
> > clearly.
>
> > regards,
> > Rex


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to