TInvalidOperationException

Description

Unknown component type 'LayoutHomeNahj'. This may be caused by the following parsing error in the LayoutHomeNahj class file: [Warning] include_once(LayoutHomeNahj.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory (@line 262 in file /home/alhedaya/public_html/framework/PradoBase.php).

Source File

/home/alhedaya/public_html/framework/PradoBase.php (267)

0256:         if(isset(self::$_usings[$namespace]) || class_exists($namespace,false))
0257:             return;
0258:         if(($pos=strrpos($namespace,'.'))===false)  // a class name
0259:         {
0260:             try
0261:             {
0262:                 include_once($namespace.self::CLASS_FILE_EXT);
0263:             }
0264:             catch(Exception $e)
0265:             {
0266:                 if($checkClassExistence && !class_exists($namespace,false))
0267: throw new TInvalidOperationException('prado_component_unknown',$namespace,$e->getMessage());
0268: else 0269: throw $e; 0270: } 0271: } 0272: else if(($path=self::getPathOfNamespace($namespace,self::CLASS_FILE_EXT))!==null) 0273: { 0274: $className=substr($namespace,$pos+1); 0275: if($className==='*') // a directory 0276: { 0277: self::$_usings[$namespace]=$path; 0278: set_include_path(get_include_path().PATH_SEPARATOR.$path); 0279: }

Stack Trace

#0 /home/alhedaya/public_html/framework/PradoBase.php(229): PradoBase::using('LayoutHomeNahj')
#1 /home/alhedaya/public_html/framework/Web/UI/TTemplateControl.php(228): PradoBase::createComponent('LayoutHomeNahj')
#2 /home/alhedaya/public_html/framework/Web/UI/TPage.php(202): TTemplateControl->initRecursive()
#3 /home/alhedaya/public_html/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#4 /home/alhedaya/public_html/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#5 /home/alhedaya/public_html/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(nahj), Array)
#6 /home/alhedaya/public_html/framework/TApplication.php(1066): TPageService->run()
#7 /home/alhedaya/public_html/framework/TApplication.php(376): TApplication->runService()
#8 /home/alhedaya/public_html/farsi.php(128): TApplication->run()
#9 {main}
2013-09-28 12:34 Apache PRADO/3.1.2a