Re: QuickForm: renderer() not rendering like I want it to
| From: | l Burnerheimerton | Date: | Mon, 15 Aug 2005 20:40:17 +0000 |
| Subject: | Re: QuickForm: renderer() not rendering like I want it to | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20429@lists.php.net to get a copy of this message | ||
Actually, I did include the template code at the
bottom of the email - I includ eit again after the
next paragraph:
After searching and searching, I foudn that I had not
included the <form> tag in the template renderer. I
added it and it worked. Thanks anyway guys.
$template = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>title</title>
<link href="styleSHEET.css" rel="stylesheet"
type="text/css">
</head>
<body>
<div id="pWrap">
<div id="header"><img src="header.png"></div>
<div id="navigator">
<ul>
<li><a href="link.php">Browse</a></li>
<li><a href="terms.php">Terms</a></li>
</ul>
</div>
<div id="content">{content}</div>
</div>
</body>
</html>';
--- Justin Patrin <papercrane@gmail.com> wrote:
> On 8/15/05, l Burnerheimerton
> <lburnerheimerton@yahoo.com> wrote:
> > I copied the below code from another system that
> is
> > working for me and modified it to meet this
> system's
> > needs.
> >
> > What is happening is that the page does render
> but:
> > 1 - it does not containt a form name/action tag
> > 2 - it does not render with labels and elements
> > alligned. Rather it looks like it flows them out
> as
> > opposed to laying them out as it should.
> >
> > I have the following code in the quickform page:
> > ...
> > $renderer =& $form->defaultRenderer();
> > $renderer->setFormTemplate($template);
>
> You don't tell us what $template is. It's very hard
> to debug template
> output without the template.
>
> Could you also, perhaps, be missing some CSS the
> other page has?
>
> --
> Justin Patrin
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com