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

Powielona sekcja <head>

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
piotrex41
Smarty n00b


Joined: 16 May 2012
Posts: 1

PostPosted: Wed May 16, 2012 7:14 am    Post subject: Powielona sekcja <head> Reply with quote

Witam,

Mam pewien problem ze Smarty, jako że wcześniej na tym nie pracowałem nie umiem z tym sobie poradzić, a kombinuję już długo i nie wychodzi. Problem jest następujący:
http://www.praktyki052012.hb.pl/serwis/
Napis opada o jedną linijkę, w źródle pokazuje że wszystko włącznie do rozpoczęcia <body> jest powielone, validator w3c również pokazuje takie błędy. Zapisałem stronę na dysku i jej źródło wygląda tak:

Code:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body>


    <meta charset="utf-8">
    <title>Oferty pracy wałbrzych</title>


    <p>Hello world! Dzisiaj jest 16.05.2012! Zażółć gęślą jaźń</p>

</body></html>


Mimo, że plik tpl wygląda tak:

Code:
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{$title}</title>
</head>
<body>
    <p>Hello world! Dzisiaj jest {$data}!</p>
</body>
</html>


a plik php tak:

Code:
<?php

    require_once ('config.php');
    require_once ('system/core.php');

    $tpl->assign('title', 'Oferty pracy wałbrzych');   
    $tpl->assign('data', date('d.m.Y'));
    $tpl->display('index.tpl');


Nie mogę tego ogarnąć, więc gdybym mógł prosić o małą pomoc, byłbym wdzięczny Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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