model view controller - I Need Help Understanding Zend Framework (MVC) Header and Footer Best Practices -
i'm new mvc , zend framework , i'm working on project, on front end. i'm trying sense of best practices.
currently footer , header setup through several scripts, 1 giant xml file of content on website (i think make website international friendly, things wrapped in i18n tags), 1 stores of links array, 1 loops through of footer/header links, , other files i'm not totally sure they spit out simple ul of footer or header links.
it seems convoluted me, why isn't header , footer simple html links in layouts, either part of main layout.phtml or included footer.phtml?
simple submit buttons used long views/ helper script, when see no reason couldn't simple html.
i know business logic left models, , views supposed lighter front-end scripts layout. zend framework , web development, guidance on belongs simple html , should more complex helper php script/model script appreciated.
at least being able understand what's best practices footer , header me started.
sorry length, again.
assuming whole thing layout view script, here opnions:
- there no correct answer, depends on scope of project.
- i typically use single view script, depending on complexity shift of complex areas partial view scripts or view helpers.
- iterating on data makes sense; if content comes external source, not want hardcode it. simple output doesn't matter... consider input (content).
- form elements typically closely related business logic... lets back-end developer control aspects of them aren't design-related.
imo, question may better suited towards guys coded what's there... zf open ended, , not force use specific organization methods. i'd give view helpers documentation quick read-over may shed light upon view helpers used, others may want use.
Comments
Post a Comment