• 18-11-2009, 11:15:48
    #1
    Reveloper
    4.1.2'de yeni sayfa şablonu nasıl olmalı


    <?php
    define("CLIENTAREA",true);
    require("dbconnect.php");
    require("includes/functions.php");
    require("includes/clientareafunctions.php");
    $pagetitle = $_LANG['clientareatitle'];
    $pageicon = "images/support/clientarea.gif";
    $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
    $breadcrumbnav .= ' > <a href="mypage.php">My Page</a>';
    initialiseClientArea($pagetitle,$pageicon,$breadcr umbnav);
    if ($_SESSION['uid']) {
    # User is Logged In - put any code you like here
    }
    # To assign variables in Smarty use the following syntax.
    # This can then be used as {$variablename} in the template
    $smartyvalues["variablename"] = $value;
    # Define the template filename to be used without the .tpl extension
    $templatefile = "homepage";
    outputClientArea($templatefile);
    ?>

    3.8 böyleydi. 4.1.2 de nasıl olacak bu aynımı ?
  • 18-11-2009, 21:12:50
    #2
    Alıntı


    <?php

    define("CLIENTAREA",true);

    require("dbconnect.php");
    require("includes/functions.php");
    require("includes/clientareafunctions.php");

    $pagetitle = $_LANG['clientareatitle'];
    $pageicon = "images/support/clientarea.gif";
    $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
    $breadcrumbnav .= ' > <a href="mypage.php">My Page</a>';

    initialiseClientArea($pagetitle,$pageicon,$breadcr umbnav);

    if ($_SESSION['uid']) {
    # User is Logged In - put any code you like here
    }

    # To assign variables in Smarty use the following syntax.
    # This can then be used as {$variablename} in the template

    $smartyvalues["variablename"] = $value;

    # Define the template filename to be used without the .tpl extension

    $templatefile = "sayfaadın";

    outputClientArea($templatefile);

    ?>



    Şeklinde yapabilirsin
  • 19-11-2009, 08:17:17
    #3
    Reveloper
    eyvallah plus
  • 20-11-2009, 11:14:44
    #4
    Reveloper
    hocam denedim olmuyor bu şekilde ? (4.1.2)