Page 3 of 3 First 123
  • Jump to page:
    #31
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: FastTemplate is not really Object Oriented


    I'd like to test your template system.
    If it's free, plz drop me a mail
    f00f@f00f.de
  2. #32
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Template Variables


    isn't be a problem to implement that yourself, is it.
  4. #33
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Alternative


    that's right, I used that way in a shoutbox script.
    what are the (dis-)advantages of each method?
  6. #34
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Try UltraTemplate


    You can get it at: http://www.ultratemplate.com/
  8. #35
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Output into a variable?


    Hi folks,
    <br />
    <br />
    i have a Problem I donīt want to print the output but i want to put it into a variable.
    <br />
    <br />
    Is it possible to put the parsed content into a variable?
    <br />
    <br />
    Thank you for your help.
    <br />
    <br />
    Frank
  10. #36
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    XTemplate


    I had to know which was faster so I set up several identical html pages with about 200 lines, 15 strings to replace, with ten being pulled from MySQL. The MySQL vars are relevant since XTemplate supports array parsing while others force you to name each one separately.

    The first page used very simple while loop for testing purposes:

    $fp = @fopen($htmlpage, "r");
    while ( !foef($fp))
    {
    $buffer = fopen($fp, 1024);
    $buffer = str_replace('%time%', $time, $buffer);
    $buffer str_replace('%example%', $example, $buffer);
    $page .= $buffer;
    }
    echo $page;

    That took 0.151 seconds
    FastTemplate took 0.062 seconds
    And XTemplate took 0.033 seconds

    My conclusion: XTemplate is faster and provides more functionality.
  12. #37
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: PHP script inside a template?


    the whole point of FastTemplate and templating in general is that you keep ALL of your php code completely seperate from your site layout (HTML).

    Otherwise there is no point using FastTemplate.
  14. #38
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Need Help!!


    Can some one post the code of this tutorial, as it is supposed to go in a file. I dont know if the code posted in the tutorial is all in one file or seperate files. You help will be appreciated. Also, where does one find the php.ini file mentioned in the tutotial?
  16. #39
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    loops forever


    im using multiple templates for replacing data from a mysql query. i have three levels, after the second level it seems to loop forever.

    anyone else have this issue?

  18. #40
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Install example


    hi,

    if your using Fast Template version 1.1 and PHP4 then change line 213 to -

    if(ereg("(\{[A-Z0-9_]+\})",$template))

    your getting this error because the script was written for PHP3 and alot has changed since then.

    -Vince
  20. #41
  21. No Profile Picture
    Ducani
    Guest
    Devshed Newbie (0 - 499 posts)

    PHP Fast Template


    PHP Fast Template

    July 02, 2001 - Why separate presentation from logic? The simple answer to the question is, "It keeps things simple". If presentation wasn't separated from logic around your house, you'd have to be an electrician to replace light-switch covers. The same goes for large-scale web applications. Graphic designers shouldn't need to be software engineers in order to update the fonts in a web page. Separating logic from presentation makes that possible.

    Please discuss this article in this thread. You can read the article here .
  22. #42
  23. No Profile Picture
    Ducani
    Guest
    Devshed Newbie (0 - 499 posts)
    If you would like to see an article covering a particular topic, please post your request here.
Page 3 of 3 First 123
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo