echo '<tr class="class_row">';
echo '<td>';
echo $this->Html->link($post['Post']['title'],
array('controller'=>'posts','action'=>'view',$post['Post']['id']),
array('id'=>'id_anchor_title','class'=>'class_anchor_title'));
echo '<h6><i>'.$this->Time->format('d-M-Y',strtotime($post['Post']['created'])).'</i></h6>';
echo '<br/>';
$last_paragraph=$post['Post']['body'];
$length = strlen($last_paragraph);
echo $this->Text->truncate($last_paragraph,150,array('ending' => '...','exact' => false));
echo '<br/>';
//echo debug($last_paragraph);
if($length > 151){
echo $this->Html->link('more',
array('controller'=>'posts','action'=>'view',$post['Post']['id']),
array('id'=>'id_anchor_more','class'=>'class_anchor_more'));
}
echo '</td>';
echo '<td>'.$this->Html->link('Edit',
array('controller'=>'posts','action'=>'edit',$post['Post']['id'])).'</td>';
echo '<td>'.$this->Html->link('Delete',
array('controller'=>'posts','action'=>'delete',$post['Post']['id'])).'</td>';
echo '</td>';
echo '</tr>';
내가 게시 할 때 '더보기'링크/앵커가 게시물의 내용/본문으로 추가됩니다.PHP, CakePHP, HTML : 앵커 태그가 코드 태그 안에 추가됩니다. 어떻게이 앵커 태그를 분리 할 수 있습니까?
휴식을 취하고 '더'가 신체의 한 부분 인 것을 어떻게 멈출 수 있습니까?
게시물의 내용이나 본문에 다음 줄이 있는데, 별도의 링크가됩니다.
<a href="/posts/view/37" id="id_anchor_more" class="class_anchor_more">more</a>
링크는 내부해야한다 :
<table>
<tr>
<td>Content..Data.. <br/>'more' </td>
<td>Edit</td>
<td>Delete</td>
</tr>
</table>
누군가가이 문제를 해결하는 데 도움이 수 있습니까?
는 동일한 열 <td>
문제 내가 <pre class="brush: cpp"> ...body.. </pre>
다음 문제가 발생 태그 내부의 코드를 삽입 할 때 내가 syntaxhighlighter http://alexgorbatchev.com/SyntaxHighlighter/을 사용하고 있습니다 몸과 '더'를 가질 수 없습니다.
그것을 둘러싸보십시오. 현재 출력과 원하는 출력을 게시 할 수 있습니까? – Rifat
전류 출력이 => mysqldump는 -u 루트 --password = mypassword 여기서 databaseName> backupfile.sql mysqldump는 -u 루트 --password = mypassword ... more EditDelete하지만 난이 '더', '편집'원하는이다, 게시물의 내용이 아닌 링크/앵커로 '삭제'합니다. – shibly
이 코드는 내 케이크에서 잘 작동합니다 .PHP – littlechad