Smarty "Flush"? (Displaying Smarty templates in parts)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sharon

    Smarty "Flush"? (Displaying Smarty templates in parts)

    Hi,
    I have a smarty template with about 500 rows, that take a long time to
    load.
    I was wondering if there was a way to display it by parts (i.e. first
    of all display the first 100 rows, then rows 100-200 and so on)
    Thanks
    Sharon

  • petersprc

    #2
    Re: Smarty "Flush&quo t;? (Displaying Smarty templates in parts)

    Setting table-layout to fixed and specifying column widths with <cols>
    can sometimes speed up incremental table rendering. Example:



    Removing or re-working nested tables might help also.

    Smarty output gets flushed periodically just like a regular PHP
    script. You could also force it with:

    {php}flush(){/php}

    On Jul 8, 6:10 pm, Sharon <2goo...@gmail. comwrote:
    Hi,
    I have a smarty template with about 500 rows, that take a long time to
    load.
    I was wondering if there was a way to display it by parts (i.e. first
    of all display the first 100 rows, then rows 100-200 and so on)
    Thanks
    Sharon

    Comment

    Working...