PHP,CakePHP,HTML: The anchor tag is appended inside a code tag, how can seperate this anchor tag?

I think it would be easier to read by writing it this way, and I have tested this on my working cakePHP project, replacing $post'Post''body' with some text with html tags in it, and it works just fine, notice that I don't change your original codes, just removing the echos.

Html->link($post'Post''title', '/posts/view'. $post'Post''id', array('id'=>'id_anchor_title','class'=>'class_anchor_title') );? > Time->format('d-M-Y',strtotime($post'Post''created'));?

> Text->truncate($last_paragraph,150,array('ending' => '...','exact' => false));? > 151){ echo $this->Html->link('more', '/posts/view'. $post'Post''id', array('id'=>'id_anchor_more','class'=>'class_anchor_more') ); }?

> Html->link('Edit', '/posts/edit'. $post'Post''id');? > Html->link('Delete', '/posts/delete'.

$post'Post''id');? > I think it would be easier to read by writing it this way, and I have tested this on my working cakePHP project, replacing $post'Post''body' with some text with html tags in it, and it works just fine, notice that I don't change your original codes, just removing the echos. I suspect that your $post'Post''body' probably contain something that make your link a plain text, try enclosing it with a div or something Text->truncate( $last_paragraph, 150, array('ending' => '...', 'exact' => false) );?

The problem is during posting anything code I do ..Code.. so the extra .. tag is added with the post. I have used this , alexgorbatchev. Com/Syntaxghlighter the css and javascript here may conflict with the existing one.

– guru Oct 5 at 8:08 I had to put all echo 'body'/message inside a .. , and that solved. – guru Oct 12 at 1:58.

The HTML structure is invalid. You're missing a closing after the link. This is also why it's a good idea to use the HTML helper to create tables: it eliminates the chance of missing tags by mistake.

No, '' is there. – guru Oct 5 at 6:34 But in the wrong place. (You have two cells inside one.) Take a look at the generated HTML and run it through a validator.

– Juhana Oct 5 at 6:44 2 I also noticed you edited the question to add the missing tag -- are you sure it's in your actual code? – Juhana Oct 5 at 6:46 Isn't possible to have the body and 'more' in same column '' the problem is i'm using syntaxhighlighter alexgorbatchev.Com/Syntax when I put some code inside tag ...body.. then the problem occurs. – guru Oct 5 at 7:04.

Try this echo ''; echo ''; 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 ''. $this->Time->format('d-M-Y',strtotime($post'Post''created')). ''; echo ''; $last_paragraph=$post'Post''body'; $length = strlen($last_paragraph); echo $this->Text->truncate($last_paragraph,150,array('ending' => '...','exact' => false)); echo ''; 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 ''; echo ''. $this->Html->link('Edit', array('controller'=>'posts','action'=>'edit',$post'Post''id') ).''; echo ''.

$this->Html->link('Delete', array('controller'=>'posts','action'=>'delete',$post'Post''id')). ''; echo.

– littlechad Oct 5 at 7:01 @littlechad thanks, it was a typo. Fixed – Rifat Oct 5 at 7:03 Then 'more' creates a new column '' . Isn't possible to have the body and 'more' in same column '' the problem is i'm using syntaxhighlighter alexgorbatchev.

Com/Syntax when I put some code inside tag ...body.. then the problem occurs. – guru Oct 5 at 7:04 @guru can you give us access (link) to your page so that we can see the problem ourselves. – Rifat Oct 5 at 7:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions