Codeigniter comes with all sorts of classes to make a custom blog. Once a blog is built with appropriate styling, there could come a time when the view file needs altering in order to display the blog title in the page title(for order and SEO). The example in this blog entry uses a standard mysql database connection since it will be a mix of Codeigniter classes and good old PHP/mySQL; since view files need database connectivity scripts while controllers do not.
Here is snippet of code that can be used to display the page title of a particular blog entry.
<title><?=$row->title; ?></title>
<?php endforeach; ?>
<?php endif; ?></head>
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton