⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view.html.php

📁 Menu deroulant dans joomla a integre comme composant
💻 PHP
字号:
<?php/** * Hello View for Hello World Component *  * @package    Joomla.Tutorials * @subpackage Components * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_4 * @license		GNU/GPL */// No direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );jimport( 'joomla.application.component.view' );/** * Hello View * * @package    Joomla.Tutorials * @subpackage Components */class HellosViewHello extends JView{	/**	 * display method of Hello view	 * @return void	 **/	function display($tpl = null)	{		//get the hello		$hello		=& $this->get('Data');		$isNew		= ($hello->id < 1);		$text = $isNew ? JText::_( 'New' ) : JText::_( 'Edit' );		JToolBarHelper::title(   JText::_( 'Hello' ).': <small><small>[ ' . $text.' ]</small></small>' );		JToolBarHelper::save();		if ($isNew)  {			JToolBarHelper::cancel();		} else {			// for existing items the button is renamed `close`			JToolBarHelper::cancel( 'cancel', 'Close' );		}		$this->assignRef('hello',		$hello);		parent::display($tpl);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -