发布于 2016-05-15 00:15:07 | 172 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Joomla!内容管理系统

Joomla!是一套在国外相当知名的内容管理系统。Joomla!是使用PHP语言加上MySQL数据库所开发的软件系统,可以在Linux、 Windows、MacOSX等各种不同的平台上执行。


这篇文章主要介绍了Joomla调用系统自带编辑器的实现方法,实例分析了Joomla调用系统自带编辑器的具体步骤、相关函数与使用技巧,需要的朋友可以参考下

本文实例讲述了Joomla调用系统自带编辑器的方法。分享给大家供大家参考,具体如下:

调用Joomla系统带的编辑器:

路径: /libraries/joomla/html/editor.php

类:JEditor

函数: void display( string $name, string $html, string $width, string $height, int $col, int $row, [boolean $buttons = true], [string $id = null], [string $asset = null], [object $author = null], [array $params = array()])

参数说明:

string $name 控件的名称, (会出现在控件的name里)
string $html 文本区域的内容
string $width 该文本的面积的宽度
string $height 该文本的面积的高度
int $col 对textarea的列数
int $row 对textarea的行数
boolean $buttons 为true 时编辑器按钮会显示出来
string $id 控件的id值,如果不给id值,会显示控件的名称 (会出现在控件的id里)
string $asset 
object $author 
array $params 关联数组编辑器的参数。

例子:

在view.html.php中


$editor =& JFactory::getEditor();

在模板文件default.php中

echo $editor->display('控件name值','内容','宽','高','列数','行数',true, '控件id值');


最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务