[eluser]margsot[/eluser]
Hi i am using code igniter for my website and i have a little problem.
In my view file
userpost.php i am using this code to show the description of the users uploaded image.
Code:
<?php echo $postDetails->description;?>
Due to SEO reasons i want this description to appear on the browser title.
Inside the controller file
board.php i use this code
Code:
$data['title'] = 'Post Details page';
and in the browser title appears "Post Details page"
I tried to change the code above from
Code:
$data['title'] = 'Post Details page';
to
Code:
$data['title'] =$postDetails->description;
and i thought that the browser title will now get the description of the image but didn't work.
I cant understand why this isnt working !!!
Can someone please help me?
Thanks