You'd put your $content_for_layout in the right column. Then in your
left column, you'd have the standard hyperlinks like <a href="/mysite/
pictures/pictures">Pictures</a> (I'm assuming that Address, Pictures,
Contacts, and so forth are each a separate class.) Each hyperlink in
the left column will display your desired page in the right column
because that's where you put your $content_for_layout. You could use
$html->link expressions instead of explicit <a> tags, but I find that
rather contrived when the normal hyperlinks are just as easy to type.
By the way if your ever in the market for a really good multi-column
layout, take a look at the jQuery UI Layout Plugin (http://
layout.jquery-dev.net/index.cfm). It's fantastic with all the bells
and whistles you could ever imagine. The instructions for using are
are a bit obtuse, but if take a look at the samples provided, it
becomes really easy to use.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment