TConfigurationException

Description

Control 'TPage' requires a master control since the control uses TContent.

Source File

/var/www/framework-3.1.10/Web/UI/TTemplateControl.php (239)

0228:             $master=Prado::createComponent($this->_masterClass);
0229:             if(!($master instanceof TTemplateControl))
0230:                 throw new TInvalidDataValueException('templatecontrol_mastercontrol_invalid');
0231:             $this->_master=$master;
0232:             $this->getControls()->clear();
0233:             $this->getControls()->add($master);
0234:             $master->ensureChildControls();
0235:             foreach($this->_contents as $id=>$content)
0236:                 $master->injectContent($id,$content);
0237:         }
0238:         else if(!empty($this->_contents))
0239: throw new TConfigurationException('templatecontrol_mastercontrol_required',get_class($this));
0240: parent::initRecursive($namingContainer); 0241: } 0242: } 0243:

Stack Trace

#0 /var/www/framework-3.1.10/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#1 /var/www/framework-3.1.10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#2 /var/www/framework-3.1.10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#3 /var/www/framework-3.1.10/Web/Services/TPageService.php(444): TPageService->runPage(Object(TPage), Array)
#4 /var/www/framework-3.1.10/TApplication.php(1095): TPageService->run()
#5 /var/www/framework-3.1.10/TApplication.php(382): TApplication->runService()
#6 /var/www/public_html/index.php(11): TApplication->run()
#7 {main}
2024-09-19 09:58 nginx/1.18.0 PRADO/3.1.10