public function __construct(optClass $tpl, iopfValidator $validator) { $this->router = NULL; $this->design = new opfDesign(); $this->visit = new opfVisit(); $this->tpl = $tpl; $this->validator = $validator; // Object configuration $tpl->opf = $this; $tpl->control[] = 'opfCall'; $tpl->control[] = 'opfUrl'; $tpl->control[] = 'opfForm'; $tpl->control[] = 'opfJavascript'; $tpl->components['opfInput'] = 1; $tpl->components['opfPassword'] = 1; $tpl->components['opfTextarea'] = 1; $tpl->components['opfQuestion'] = 1; $tpl->components['opfLabel'] = 1; $tpl->components['opfSelect'] = 1; $tpl->components['opfRadio'] = 1; $tpl->components['opfFile'] = 1; $tpl->components['opfRetypePassword'] = 1; $tpl->components['opfCheckQuestion'] = 1; $tpl->instructionFiles[] = OPF_DIR . 'opf.template.php'; $tpl->registerNamespace('opf'); $tpl->assign('opfDesign', $this->design); $tpl->opf = $this; $validator->setOpfInstance($this); }