private function _setContentFromFile() {
		
		// empty original template content
		$this->setContent('');
		
		// check for template file and load it
		if ($filename = $this->getTemplate()) {
			if (file_exists($filename)) {
				$content = trim(file_get_contents($this->_filename));
				$this->setContent($content);
			}
		}
	}
private function _setContentFromFile() {
		
		// empty original template content
		$this->setContent('');
		
		// check for template file and load it
		if ($filename = $this->getTemplate()) {
			if (file_exists($filename)) {
				$content = trim(file_get_contents($this->_filename));
				$this->setContent($content);
			}
		}
	}
private function _setContentFromFile ( ) { // empty original template content $ this -> setContent ( '' ) ; // check for template file and load it if ( $ filename = $ this -> getTemplate ( ) ) { if ( file_exists ( $ filename ) ) { $ content = trim ( file_get_contents ( $ this -> _filename ) ) ; $ this -> setContent ( $ content ) ; } } }
Set content from file
Set content from file