english/components/com_content/controllers/article.php
/**
	 * Function that allows child controller access to model data after the data has been saved.
	 *
	 * @param	JModel	$model		The data model object.
	 * @param	array	$validData	The validated data.
	 *
	 * @return	void
	 * @since	1.6
	 */
Function that allows child controller access to model data after the data has been saved.
@param       JModel  $model          The data model object.
@param       array   $validData      The validated data.


Function that allows child controller access to model data after the data has been saved . @param JModel $model The data model object . @param array $validData The validated data .
protected function postSaveHook(JModel &$model, $validData)
	{
		$task = $this->getTask();
		if ($task == 'save') {
			$this->setRedirect(JRoute::_('index.php?option=com_content&view=category&id='.$validData['catid'], false));
		}
	}
protected function postSaveHook ( JModel & $ model , $ validData ) { $ task = $ this -> getTask ( ) ; if ( $ task == 'save' ) { $ this -> setRedirect ( JRoute :: _ ( 'index.php?option=com_content&view=category&id=' . $ validData [ 'catid' ] , false ) ) ; } }
Function that allows child controller access to model data after the data has been saved.
Function that allows child controller access to model data after the data has been saved .