Template::fileExists PHP Method

fileExists() public method

Return TRUE if the file exists.
public fileExists ( ) : boolean
return boolean
    public function fileExists()
    {
        global $Campsite;
        if (!self::IsValidPath(dirname($this->m_data['Name']))) {
            return false;
        }
        if (!is_file($Campsite['TEMPLATE_DIRECTORY'] . "/" . $this->m_data['Name'])) {
            return false;
        }
        return true;
    }