Changeset 1743
- Timestamp:
- 03/06/2007 08:03:42 AM (21 months ago)
- Location:
- trunk/framework
- Files:
-
- 2 modified
-
Exceptions/messages.txt (modified) (1 diff)
-
Web/Services/TPageService.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/framework/Exceptions/messages.txt
r1732 r1743 104 104 pageservice_defaultpage_unchangeable = TPageService.DefaultPage cannot be modified after the service is initialized. 105 105 pageservice_basepath_unchangeable = TPageService.BasePath cannot be modified after the service is initialized. 106 pageservice_pageclass_invalid = Page class {0} is invalid. It should be TPage or extend from TPage. 106 107 107 108 pageserviceconf_file_invalid = Unable to open page directory configuration file '{0}'. -
trunk/framework/Web/Services/TPageService.php
r1742 r1743 410 410 if(!class_exists($className,false)) 411 411 include_once($path.Prado::CLASS_FILE_EXT); 412 if(!class_exists($className,false) || !is_subclass_of($className,'TPage'))412 if(!class_exists($className,false)) 413 413 throw new TConfigurationException('pageservice_pageclass_unknown',$className); 414 414 } 415 415 else 416 416 $className=$this->getBasePageClass(); 417 418 if($className!=='TPage' && !is_subclass_of($className,'TPage')) 419 throw new TConfigurationException('pageservice_pageclass_invalid',$className); 417 420 418 421 $page=Prado::createComponent($className);
