I have this idea:
when someone calls mysite.com/layer1/layer2/something
, then I want to start the action called something
. That action is simply a file in an actions
directory which contains a function. This function takes some context parameters and is supposed to return HTML output. This output, which goes into a variable, will then be brought into an main template, and finally the little framework will throw out the whole html output at once.
Now I don't know if it's good or bad design to return big amounts of html code from a function or method?