The following code does not work properly for the Codeigniter framework...
Its my View:
\'.$news_item[\'title\'].\'
Did u load url helper
Did u specify the site_url in config file... ->Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the URL, as will any URI segments you pass to the function, and the url_suffix as set in your config file.
If not working try with base_url