Cakephp-树结构generatetreelist空格分隔符
我需要在树结构中使用空格作为间隔符 这是我目前的代码Cakephp-树结构generatetreelist空格分隔符,cakephp,Cakephp,我需要在树结构中使用空格作为间隔符 这是我目前的代码 $sectors = $this->User->Sector->generatetreelist(null, null, null, '__'); $this->Form->input('Sector.user_id', array('options' => $sectors)); 我尝试了nsp和转义版本 有什么想法吗 谢谢,Alex试试表意空间: ,无空格:或其他空格。尝试使用
$sectors = $this->User->Sector->generatetreelist(null, null, null, '__');
$this->Form->input('Sector.user_id', array('options' => $sectors));
我尝试了nsp和转义版本
有什么想法吗
谢谢,Alex试试表意空间:
,无空格:
或其他空格。尝试使用表意空格: 代码>,无中断空间:
或另一个。尝试以下操作:
$this->User->Sector->generatetreelist(null, null, null, ' ');
那么,在你看来:
$this->Form->input('Sector.user_id', array('options' => $sectors, 'escape' => false));
试试这个:
$this->User->Sector->generatetreelist(null, null, null, ' ');
那么,在你看来:
$this->Form->input('Sector.user_id', array('options' => $sectors, 'escape' => false));
感谢您的回复,它似乎只是输出了其中的内容。i、 e.它与@Alex缩进。我不太理解这个问题。问题是什么?当我在select中显示树结构时,我需要用空格缩进树,但我似乎无法设置空格。它与下划线配合很好谢谢你的回复,它似乎只输出了其中的内容。i、 e.它与@Alex缩进。我不太理解这个问题。问题是什么?当我在select中显示树结构时,我需要用空格缩进树,但我似乎无法设置空格。它可以与下划线配合使用