header footer pain
Permalink
what's wrong here?
i'm getting reinisalisation errors
Thanks for seeting me straight
Niels
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <!doctype html> <html> <head> <?php $this->inc('elements/header.php'); ?> <div class= "wrapper"> <title>Untitled Document</title> <link href="<?=$view->getThemePath()?>/css/martare.css" rel="stylesheet" type="text/css"> </head> <body> <div class="container"> <header></header> <article class="content"> <div> <?php
Viewing 15 lines of 22 lines. View entire code block.
<?=Loader::element('header_required');?> <footer> <div> <?php $a = new GlobalArea('footer'); $a->display(); ?> </div></footer> <!-- end .content --></article> <!-- end .container --></div> <?=Loader::element('footer_required');?> </body> </html>
i'm getting reinisalisation errors
Thanks for seeting me straight
Niels
![](/files/avatars/none.gif)
Loader::element('header_required'); needs to be inside your <head></head> tags.
Try these
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <!doctype html> <html> <head> <?php Loader::element('header_required'); ?> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->getStyleSheet('css/martare.css');?>"> </head> <body> <div class="container"> <article class="content"> <div> <?php $a = new GlobalArea('Site Logo'); $a->display();
Viewing 15 lines of 23 lines. View entire code block.
Thanks for your input,
I've copy pasted your code.
The result was "invalid argument supplied for foreach()"
Exacly what I'm getting all the time.
My own code for the header was in the head tag i only stupiditly dind't copy that here.
I've deleted the template overridden the php files
Then reinstated the templates en trough design assigned the tempalte anew.
Thanks anyhow.
Niels
I've copy pasted your code.
The result was "invalid argument supplied for foreach()"
Exacly what I'm getting all the time.
My own code for the header was in the head tag i only stupiditly dind't copy that here.
I've deleted the template overridden the php files
Then reinstated the templates en trough design assigned the tempalte anew.
Thanks anyhow.
Niels
I've at long least reinstalled concrete5
I did this under a different domain in a new database.
First I got the same errors I see a lot of in the forums
But at long least without doing anything different I got it installed.
In this install 5.7.0.3 I tried .4 but haven’t had any luck installing that again, I've encountered some troubles like image sizes settings in blocks that have no effect but My header footer pain so to speak went away.
Coping anything to the clipboard wil work, but there is no way I can find to paste that later.
This al worked before 5.7.x.x.
I've got the feeling that the 5.7.x.x series in not completely stable but promising.
I keep with it as I'm not an experienced user.
I did this under a different domain in a new database.
First I got the same errors I see a lot of in the forums
But at long least without doing anything different I got it installed.
In this install 5.7.0.3 I tried .4 but haven’t had any luck installing that again, I've encountered some troubles like image sizes settings in blocks that have no effect but My header footer pain so to speak went away.
Coping anything to the clipboard wil work, but there is no way I can find to paste that later.
This al worked before 5.7.x.x.
I've got the feeling that the 5.7.x.x series in not completely stable but promising.
I keep with it as I'm not an experienced user.