2

I'm about to begin developing a CakePHP application, I understand CakePHP is aimed at allowing developers to put a web application together as quickly as possible hence it comes with default CSS and layouts for the views.

How would I go about replacing this default layout and CSS? I read briefly about 'themes' but don't understand what they do exactly.

Appreciate the help.

2 Answers 2

9

You can copy the default layout from cake/libs/view/layouts/default.ctp to app/views/layouts/default.ctp and edit the copied file. (Do not edit anything in the cake folder, only in app.)

Stylesheets are in app/webroot/css/. I would advise to leave the standard cake.generic.css alone and create a new file (or a copy of the generic file) to work with. You should link to the correct css file in your layout.

Sign up to request clarification or add additional context in comments.

Comments

2

Stylesheets are in app/webroot/css/. I would advise to leave the standard cake.generic.css alone and create a new file (or a copy of the generic file) to work with. You should link to the correct css file in your layout.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.