getView ( 'alpharegistration','html'); $view->_display(); } function configuration() { $model = &$this->getModel('configuration'); $view = $this->getView ( 'configuration','html'); $results = $model->getParams(); $view->assignRef('params', $results); $view->display(); } function saveconfiguration() { // Check for request forgeries JRequest::checkToken() or die( 'Invalid Token' ); $table =& JTable::getInstance('component'); if (!$table->loadByOption( 'com_alpharegistration' )) { JError::raiseWarning( 500, 'Not a valid component' ); return false; } $post = JRequest::get( 'post' ); $table->bind( $post ); // pre-save checks if (!$table->check()) { JError::raiseWarning( 500, $table->getError() ); return false; } // save the changes if (!$table->store()) { JError::raiseWarning( 500, $table->getError() ); return false; } } } ?>