Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
862 views
in Q2A Core by
edited by

 

I am thinking this is probably a syntax error?.  Basically all I want to do is put the search bar inside another div that is inside the login-bar div.
 
 
 
This is shortened version of the code
 
 
 
function body_header() 
{
$this->output('<div id="qa-login-bar"><div id="qa-login-group">
 
     $this->output ('
 
          <div>
 
               $this->search();
 
         </div>
 
          ');
 
 
 $this->output('</div></div>');
 }

 

When I do this, I get a blank page.  Any suggestions of what I'm doing wrong? t/y

1 Answer

0 votes
by
selected by
 
Best answer
I think I am figuring it out by simplifying it down.  I think I wasn't using $this->output to close one of the divs.
by
It was:
....
$this->output('<div>');
$this->search();
$this->output('</div>');
....
...