Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/components/com_dpcalendar/views/invite/
Upload File :
Current File : /home/smartconb/www/armencom33/components/com_dpcalendar/views/invite/view.html.php

<?php
/**
 * @package   DPCalendar
 * @author    Digital Peak http://www.digital-peak.com
 * @copyright Copyright (C) 2007 - 2020 Digital Peak. All rights reserved.
 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 */
defined('_JEXEC') or die();


class DPCalendarViewInvite extends \DPCalendar\View\BaseView
{

	public function init()
	{
		JFactory::getLanguage()->load('', JPATH_ADMINISTRATOR);

		if ($this->user->authorise('dpcalendar.invite', 'com_dpcalendar') !== true) {
			throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
		}

		JForm::addFormPath(JPATH_ADMINISTRATOR . '/components/com_dpcalendar/models/forms');
		JForm::addFieldPath(JPATH_ADMINISTRATOR . '/components/com_dpcalendar/models/fields');

		$this->form = JForm::getInstance('com_dpcalendar.invite', 'invite', ['control' => 'jform']);

		$this->form->setValue('event_id', null, $this->input->getInt('id'));
	}
}