0
私のサイトにはmodule
というフォルダがあります。 module1
とmodule2
の2つのサブフォルダがあります。どちらもindex.php
ページです。私のサイトはCodeIgniterで開発されています。私は次のコードを持っているmodule1/index.php
でCodeIgniterを使用してサブフォルダからPHPページに値を取得
:私はモデル関数checktest()
を有する
<?php
$module_name = "module2";
$module_type = "test";
?>
:module2/index.php
で
<?php
$module_name = "module1";
$module_type = "test";
?>
を私は、次のコードを持っています。その機能では$module_type = test
のときにmodule1
とmodule2
という名前の値を取得したいと考えています。
どうすればいいですか?