english/administrator/components/com_aicontactsafe/views/default/view.html.php
// function to display the default template
function to display the default template
function to display the default template
function viewDefault() {
		$document =& JFactory::getDocument();
		if($this->_jversion >= '1.6') {
			$document->addScript( JURI::root(true).'/media/system/js/core.js');
		} else {
			$document->addScript( JURI::root(true).'/includes/js/joomla.javascript.js');
		}
		$this->setToolbar();
		$this->setVariables();
		$this->callCssFile();
		$this->setTaskReturn();
		parent::display();
		$model = &$this->getModel( $this->_sTask, '', $this->_parameters );
		$model->resetFormFields();
	}
function viewDefault ( ) { $ document = & JFactory :: getDocument ( ) ; if ( $ this -> _jversion >= '1.6' ) { $ document -> addScript ( JURI :: root ( true ) . '/media/system/js/core.js' ) ; } else { $ document -> addScript ( JURI :: root ( true ) . '/includes/js/joomla.javascript.js' ) ; } $ this -> setToolbar ( ) ; $ this -> setVariables ( ) ; $ this -> callCssFile ( ) ; $ this -> setTaskReturn ( ) ; parent :: display ( ) ; $ model = & $ this -> getModel ( $ this -> _sTask , '' , $ this -> _parameters ) ; $ model -> resetFormFields ( ) ; }
function to display the default template
function to display the default template
// add javascript // set the toolbar buttons // initialize the template variables // call the css file // determine to what section to return to // display the template // reset the form fields after the form was displayed