1、Layouts文件夹中default.ctp中可直接嵌入头(header)尾(foooter)
2、注意图片的路径/img/head.jpg 一般放置于webroot/img,
3、meta元素不必非要html助手,直接写上也可以
4、css 及js 可以用助手 echo $this->Html->css('3_col_liquid_faux'); echo $this->Html->script('swfobject');
5、布局时遇到浮动菜单注意 显示不能为块,必须设置为:display: inline;否则浮动不能显示。
6、主页内容存放于对应view index.ctp中
7、css从原来html中迁移到cakephp会产生变化,注意调节。
8、css中<div>高度最好固定,以免扩散产生页面变形。