/** * Clean up the show page URL * @Developer brandon * @Date Oct 11, 2010 */ public function show($name = NULL) { $blog = ORM::factory('blog')->where('name', format::dash_to_space($name))->find(); // Set the title meta::set_title(ucwords($blog->name)); // Set the description meta::set_description($blog->synopsis); // Show the page parent::show($blog); }
public function __construct() { parent::__construct(); ssl::force_ssl(); meta::set_keywords('Daily Journal, Free Journal, Private Diary, Private Journal, Free Online Journal, Online Journaling, Write Messages, My Diary, Secure Diary, Secure Journal, Journal, Diary'); meta::set_description('Keep a free online journal or diary to remember events in your life. Secure, simple and free. Access from anywhere.'); // Add Analytics to the page, except on journal pages if ($this->model_name != 'journal') { layout::add(View::factory('shared/analytics'), 'footer'); } }
/** * Clean up the show page URL * @Developer brandon * @Date Oct 11, 2010 */ public function show($id = NULL) { // Find the product that we are trying to access $product = ORM::factory('product', $id); // Set the title meta::set_title(ucwords($product->name)); // Set the description meta::set_description($product->description); // Show the page parent::show($product); }