ฉันมีตัวควบคุมนี้:
...
public function insertAction() {
$something = 'testcase';
$this->loadLayout();
$this->_title($this->__("the title"));
$this->renderLayout();
}
...
ฉันต้องการเข้าถึง$somethingเอกสาร. phtml ของฉันฉันจะทำอย่างไร (หรือใช้วิธีอื่น: ฉันจะเข้าถึง$somethingไฟล์. phtml ของฉันได้อย่างไร)
$block->assign($var)แต่จะดึงข้อมูลในphtmlไฟล์ได้อย่างไร?