Home > Backend Development > PHP Tutorial > 良久不来,PHP开源论坛-YouYaX beta 5版本发布啦 菜单功能

良久不来,PHP开源论坛-YouYaX beta 5版本发布啦 菜单功能

WBOY
Release: 2016-06-13 12:47:45
Original
932 people have browsed it

好久不来,PHP开源论坛-YouYaX beta 5版本发布啦 菜单功能
个人开发设计,B5版本发布啦,

加入了一个很多人提到过的菜单功能,

当然了,如果是普通的css菜单功能,我有必要去拓展出来吗,答案是否定的,

所以还是有一些规则可循的,

菜单配置文件存放地址Conf/menu.config.php,个人习惯,配置文件不大喜欢放入数据库,

代码模式如下

<?php<br />
return array(<br />
	array('title'   =>'主页',<br />
				'url'     =>'http://www.youyax.com',<br />
				'seclists'=> array(<br />
													array('title'=>'开发手册','url'=>'http://www.youyax.com/user_guide'),<br />
													array('title'=>'热心捐赠','url'=>'http://www.youyax.com/license.html')<br />
												  )<br />
			 ),<br />
	array('title'   =>'开源产品',<br />
				'url'     =>'http://www.youyax.com/forum',<br />
				'seclists'=> array(<br />
													array('title'=>'开源社区','url'=>'http://www.youyax.com/forum'),<br />
													array('title'=>'模拟alert','url'=>'http://www.youyax.com/tip')<br />
												  )<br />
			 )<br />
)<br />
?>
Copy after login

拓展到二级菜单。大家可以下载下来去看看。

百度搜索,youyax

有点thinkphp基础的人容易上手,但不完全一样。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template