LOL @ "I haven't read all your instructions, and I'm having problems
getting it to work" then "now that I have read all your instructions
all is fine!"

Funny how so many people treat the book the same way!?! They read a
few pages, get something working then walk away from the book and
start asking questions in here instead.

He he, Paul

On Oct 18, 3:44 pm, "Yves S. Garret" <[email protected]>
wrote:
> Just finished reading the entire e-mail.
>
> Thanks, much clearer.
>
> On Mon, Oct 17, 2011 at 11:50 PM, Jeremy Burns | Class Outfit <
>
>
>
>
>
>
>
> [email protected]> wrote:
> > By default, Cake uses layouts and pages located in /cake/libs/view and the
> > cake.generic.ccs in /app/webroot/css (in 1.3). This is great when you have
> > just fired up Cake but not sustainable when you want to upgrade your version
> > of Cake (which you do by replacing the entire contents of the /cake folder).
> > So you should never just rely on those files. One of the first things I
> > recommend you do when starting a new app is:
>
> > - copy /cake/libs/view/layouts/default.ctp to /app/view/layouts
> > - copy /cake/libs/view/pages/home.ctp to /app/views/pages
> > - rename /app/webroot/css/cake.generic.css to something more relevant
> > - change the reference to the generic stylesheet in your new
> > /app/views/layouts/default.ctp by changing this line: echo
> > $this->Html->css('cake.generic'); to echo
> > $this->Html->css('your_new_stylesheet_name');
>
> > Now Cake will use those by default and you can change them to your heart's
> > content. At first it will appear as a standard Cake app until you customise
> > it.
>
> > As its name suggests, default.ctp is the default layout. The output of your
> > view (e.g. /app/views/pages/home.ctp) file will appear where the
> > variable $content_for_layout appears. So you can put your own div structure,
> > layout elements, custom headers/footers and whatever you choose around it.
> > You can strip it all out or pimp it up. The variables $title_for_layout and
> > $scripts_for_layout have their own meaning and purpose, so you should retain
> > them. When you change your new css styles, the appearance will change too.
> > You can happily remove the standard footer and the sql_dump (although you
> > might want to place it inside a check for debug > 0 so it appears in dev but
> > not in production).
>
> > Now your app lives entirely within the /app folder so updating your Cake
> > version is (generally) as simple as replacing the /cake folder with the
> > latest version.
>
> > Hope that helps.
>
> > Jeremy Burns
> > Class Outfit
>
> >http://www.classoutfit.com
>
> > On 17 Oct 2011, at 20:07, Yves S. Garret wrote:
>
> > Hello everyone,
>
> >    I came across this problem.  I googled it and found this solution.
>
> >http://ask.cakephp.org/questions/view/removing_cakephp_header_footer
>
> > And, maybe it's due to this cold/headache, but I can't make any sense of
> > what's what in the entire code-tree.  It seems like changing something like
> > this would make the most sense in the app directory (after all, different
> > apps might use different headers and footers).  How can I specify and set
> > this?  What role does $content_for_layout play in this?
>
> > Confused as heck right now...
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> >  --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to