CakePHP and static html pages

So you are a crazy developer who understand everything about MVC etc.
But you work with designers who don’t want to hear about your view-layout-elements structure. All they want is to open static html pages of the site with dreamweaver and synchronize from there.

The solution: for complete static pages don’t use cake’s pages system. Just put mystaticpage.html file in the webroot and make links to it directly. It works just fine.

Designers will just synchronize the webroot and you can focus on the dynamic part.

Now if your top page is static too, you need to create a custom route.

Easy: create cake’s pages view and in the .ctp just use:

include “index.html”

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.