Welcome Guest, Not a member yet? Register   Sign In
Help for how to show the title in browser title
#1

[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



Messages In This Thread
Help for how to show the title in browser title - by El Forum - 10-17-2013, 12:53 AM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 01:11 AM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 02:27 AM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 03:47 AM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 12:00 PM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 12:35 PM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 01:32 PM
Help for how to show the title in browser title - by El Forum - 10-17-2013, 02:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB