0
在我的网站中,我有一个名为module
的文件夹。它有两个子文件夹,称为module1
和module2
。他们都有一个index.php
页面。我的网站是在CodeIgniter中开发的。使用CodeIgniter从子文件夹获取值到PHP页面
在module1/index.php
我有以下代码:
<?php
$module_name = "module1";
$module_type = "test";
?>
在module2/index.php
我有以下代码:
<?php
$module_name = "module2";
$module_type = "test";
?>
然后,我有一个模型函数checktest()
。在那个函数中,当$module_type = test
时,我想得到module1
和module2
的名字值。
我该怎么做?