---
title: "joomla 注意事项"
author: "phpseyo"
date: "2012-03-23T17:04:34Z"
tags: []
categories: ["开源软件"]
slug: "joomla"
draft: false
lastmod: "2012-03-23T17:04:34Z"
id: 1462644
url: "https://phpseyo.iteye.com/blog/1462644"
---

1\. 在模块中字段定义的变量不要使用 $content，因为在 libraries/joomla/application/module/helper.php 中有

 

```
$content = '';
ob_start();
require $path;
$module->content = ob_get_contents().$content;
ob_end_clean();
```

 

会后缀 $content 变量，使用的话会导致输出一些不需要的东西，当然也可以利用这个地方后缀增加一些自定义的代码。