[split] Best way to load unique header and footer for each page? |
hello everyone. I want to create SEO plugin in codeigniter same as Yoast plugin for wordpress. But problem is how to create different header for every page for website more than 300+ pages. Is it possible that I would assign a unique id and than create custom header for every pages.
No SEO spam
As you've probably considered, it's easy to provide dynamically determined values to the header.
Controller PHP Code: $data['page_title'] = $title; The view file header.php PHP Code: <!doctype html> The hard part is determining what values to assign to $title, $meta_desc and $meta_keys. I assume that's the question you're really asking. The answer depends on several factors:
Care to tell us about all that?
|
Welcome Guest, Not a member yet? Register Sign In |