开发者

Cakephp - tree structures generatetreelist blank space spacer

I need to have blank spaces as my spacers in a tree structure.

Here is my code at the moment

    $sectors = $this->User->Sector->generatetreelist(null, null, null, '__');    
    $this->Form->input('Sector.user_id', array('options' => $sectors));

I tried nsp and also开发者_如何学JAVA the escaped version.

Any Idea ?

Thanks, Alex


Try this:

$this->User->Sector->generatetreelist(null, null, null, '&nbsp');

then, in your view:

$this->Form->input('Sector.user_id', array('options' => $sectors, 'escape' => false));


Try an ideographic space:  , no-break space:   or one of the other whitespace characters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜