Adding A Layout
Last updated
Was this helpful?
Was this helpful?
<h1>funky Layout</h1>
<cfoutput>#renderView()#</cfoutput>
<hr>
<cfoutput>#renderView( "main/footer" )#</cfoutput>function index( event, rc, prc ){
// param an incoming variable.
event.paramValue( "name", "nobody" );
// set a private variable
prc.when = dateFormat( now(), "full" );
// set the view to render with our new layout
event.setView( view="hello/index", layout="Funky" );
}