codeigniter の wiredesignz モジュラー拡張機能を使用しています。たとえば、モジュールのコントローラーから通常の codeigniter コントローラーのパブリック プロパティにアクセスできるかどうか疑問に思っていました。これは通常の ci コントローラーです。
<?php
class Dog extends CI_Controller {
public $name;
function __construct()
{
$this->name = "xyz";
}
}
これはモジュールコントローラーです
<?php
class Test extends MX_Controller {
function get_name()
{
//access the $name property of the dog controller here
}
}