Fork me on GitHub

Dynamic tables using pnRender/smarty (html_table examples?)  Bottom

  • I'm trying to figure out how to create a dynamic table based off of a recordset / array. I'd have no problem doing this with straight PHP, but trying to use pnRender I am lost. I found the html_tables function, but there really isn't a good example of how to use it with dynamic data. Would this be the function to use, and can I see some code examples? Any additional references or functions? Thanks.
  • Take a look at the smarty manual - with the exception of our customised delimiters everything applies. For your question look at the foreach block plugin.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • markwest

    Take a look at the smarty manual - with the exception of our customised delimiters everything applies. For your question look at the foreach block plugin.

    -Mark



    Sounds good, I'll take a look. Thanks :)
  • ytou can always include a file and do it in the PHP as you said...right Mark?
  • 0 users

This list is based on users active over the last 60 minutes.