[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/src/View/ -> DefaultView.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Installation
   5   * @subpackage  View
   6   *
   7   * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\CMS\Installation\View;
  12  
  13  use Joomla\CMS\Form\Form;
  14  use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
  15  
  16  // phpcs:disable PSR1.Files.SideEffects
  17  \defined('_JEXEC') or die;
  18  // phpcs:enable PSR1.Files.SideEffects
  19  
  20  /**
  21   * Generic Installation View
  22   *
  23   * @since  3.1
  24   */
  25  class DefaultView extends BaseHtmlView
  26  {
  27      /**
  28       * The Form object
  29       *
  30       * @var    Form
  31       * @since  3.1
  32       */
  33      protected $form;
  34  
  35      /**
  36       * Execute and display a template script.
  37       *
  38       * @param   string|null  $tpl  The name of the template file to parse; automatically searches through the template paths.
  39       *
  40       * @return  void
  41       *
  42       * @since   4.0.0
  43       */
  44      public function display($tpl = null)
  45      {
  46          $this->form = $this->get('Form');
  47  
  48          parent::display($tpl);
  49      }
  50  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer