cakephp - Setting Layout Variables from the View -


i'm working on cakephp website , have split view (two divs next each other). first div display content i.e. articles, tags , pagination etc, other 1 (the sidebar) have site wide stuff twitter , facebook links 'most popular tags' etc.

on of administrative pages (crud) want place actions div sidebar. however, these links defined in view. there way save information variable , call variable in layout file - similar $content_for_layout?

yes. save them variable , echo out in layout. layout view, think should able cut "actions" out of view, , paste in proper place in layout talking about... should keep cake part working proper way.

update: thought slight problem... wrote above. should able paste actions array, if controller using missing of variables being used in actions cake throw error.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -