04-27-2017, 07:08 PM
Sorry for the slow response. It's been a crazy week. If you look in users/helpers/helpers.php one of the first functions is
So, basically what you could do is make a database table (page_titles) that has 3 columns
id (int 11, auto incremented, primary key)
page (varchar 255)
title (text)
So then you would write something along the lines of...
Then you can do your head tag by echoing
Hope that helps
Code:
function currentPage() {
Code:
$uri = $_SERVER['PHP_SELF'];
Code:
$path = explode('/', $uri);
Code:
$currentPage = end($path);
Code:
return $currentPage;
Code:
}
So, basically what you could do is make a database table (page_titles) that has 3 columns
id (int 11, auto incremented, primary key)
page (varchar 255)
title (text)
So then you would write something along the lines of...
Code:
$cp = currentPage();
Code:
$currentPageQ = $db->query("SELECT * FROM page_titles WHERE page = ?,"array($cp));
Code:
$currentPage = $currentPageQ->first();
Then you can do your head tag by echoing
Code:
$currentPage->title;
Hope that helps