From: Alex B. <en...@tu...> - 2001-07-10 17:56:12
|
> Hi alex, > > Yeah it's me again :) > > I have a question, I just understood (a little bit) about how modules > work...., please correct or add: > > 1. Implement small logics into separate modules (e.g. news display) Yes. You want all non-output operations in the constructor (queries, math, etc). All output goes in Output(); > 2. put the template needed by the module in a subdirectory under that > module's directory. Yes. or in the same directory if you like, it's a matter of personal preference. I like to have a tmpl/ dir under module directories. > 3. in Module::Output() I can import the template using the import syntax > (does this mean the directory can't have dot in the name?) Yes, I believe you can. > Smarty uses a fixed directory for its template files (as well as a > separate dir for compiled template files). How can it fit in > binarycloud's directory model? binarycloud/user/tmpl/html/smarty/ :) _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |