joomla/com_wk1/site/views/wk1/view.html.php

<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_wk1
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
 
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
/**
 * HTML View class for the HelloWorld Component
 *
 * @since  0.0.1
 */
class Wk1ViewWk1 extends JViewLegacy
{
    /**
     * Display the Hello World view
     *
     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
     *
     * @return  void
     */
    function display($tpl = null)
    {
        // Assign data to the view
        $this->msg = 'component wk1 msg from '. __file__ . 'Wk1ViewWk1->display';
 
        // Display the view
        parent::display($tpl);
    }
}