public function hasCustomController()
    {
        $controllerName = ucfirst(str_replace('post_', '', $this->slug));
        if(File::exists(Theme::getPath().'/controllers/'.$controllerName.'Controller.php')) {
            return true;
        }
        return false;
    }
public function hasCustomController()
    {
        $controllerName = ucfirst(str_replace('post_', '', $this->slug));
        if(File::exists(Theme::getPath().'/controllers/'.$controllerName.'Controller.php')) {
            return true;
        }
        return false;
    }
public function hasCustomController ( ) { $ controllerName = ucfirst ( str_replace ( 'post_' , '' , $ this -> slug ) ) ; if ( File :: exists ( Theme :: getPath ( ) . '/controllers/' . $ controllerName . 'Controller.php' ) ) { return true ; } return false ; }
Check if a post type has a custom controller.

@return bool
Check if a post type has a custom controller .