63 if (\class_exists ( $controller )) {
64 $classCode = UIntrospection::getClassCode ( $controller );
65 $lastModified = UFileSystem::lastModified ( UIntrospection::getFileName ( $controller ) );
66 if (\is_array ( $classCode )) {
67 $reflexAction = new \ReflectionMethod ( $controller .
'::' . $action );
68 $views = UIntrospection::getLoadedViews ( $reflexAction, $classCode );
69 $baseView=\ROOT.\DS.
"views".\DS;
70 foreach ( $views as $view ) {
71 $file = $baseView. $view;
72 if(\file_exists($file)){
73 $viewDate = UFileSystem::lastModified ( $file );
74 if ($viewDate > $lastModified){
75 $lastModified = $viewDate;