Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 9 matches
Smarty Forum Index
Author Message
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Sun Oct 10, 2004 4:55 am   Subject: problem with html_doctype plugin
I had a chance to install the same versions of Apache, mod_php, and Smarty on a Gentoo Linux box, and everything works fine. Question There is definitely a Windows-specific error, but the trick is finding ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Sat Oct 02, 2004 6:27 am   Subject: problem with html_doctype plugin
I just tried something interesting. I changed $smarty->display( $page . ".tpl" ); to $result = $smarty->fetch( $page . ".tpl" );
echo( "<?xml ver ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Sat Oct 02, 2004 6:03 am   Subject: problem with html_doctype plugin
OK, I tried that. With the template source starting like this:
{html_doctype version=1.1 force_opera_html=true}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang=&qu ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Fri Oct 01, 2004 2:49 am   Subject: problem with html_doctype plugin
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: html_doctype
* Purpose: Adds a (X)HTML doct ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Thu Sep 30, 2004 8:24 pm   Subject: problem with html_doctype plugin
setting sendheaders=false, will mean that the doctype header plugin does not send a mime type through the php header function, and the default mime type that your server uses will be sent (by apache o ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Thu Sep 30, 2004 8:03 pm   Subject: problem with html_doctype plugin
I've also tried running it from the command-line: php index.php to see if it was an Apache2/mod_php problem. I got the same blank line before the XML declaration.
  Topic: Debug console
k-dub

Replies: 8
Views: 16132

PostForum: Bugs   Posted: Thu Sep 30, 2004 7:33 pm   Subject: Debug console
I've been working with Smarty today with $smarty->debugging=true. I've run into a problem using the html_doctype plugin and Firefox. The current (2.6.5) Smarty debug.tpl file does not produce valid ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Thu Sep 30, 2004 7:03 pm   Subject: problem with html_doctype plugin
your code?

Of course. Duh!

Here's index.php:
<?php

$page = isset( $_GET["page"] ) ? $_GET["page"] : "home";
$media = isset( ...
  Topic: problem with html_doctype plugin
k-dub

Replies: 13
Views: 29120

PostForum: Plugins   Posted: Thu Sep 30, 2004 3:42 pm   Subject: problem with html_doctype plugin
I don't know if this is the right place for this, but I'm having trouble with the html_doctype plugin. I'm getting the <?xml .... declaration on line 2 - there's a blank line before the XML declara ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP