Hi guys!
I have a problem with the "html_helper". For example, I have this function in a controller:
PHP Code:
[...]
$data['post'] = $this->blog_model->getPost($unix);
foreach($data['post'] as $meta)
{
$metas = array(
array('name' => 'og:title', 'content' => $meta["content"], 'type' => 'property')
);
echo meta($metas);
}
$this->template->load('template', 'public/post', $data);
I try to create labels based on the content you get from a model. The problem is that the meta label is created above the html tag. I extended the html_helper to use Open Graph tags.
Code:
<meta name="description" content="My Great site" />
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
I tried to fix this with a validation in the template. but does not work