Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
ADODB implementation question
  • Posted: 16.03.2005, 19:36
     
    jmfpub
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    12.06.05
    Posts:
    114
    I'm starting to dig into ADODB and I'm wondering how others would approach this particular decision. I've run across a number of places where the ADODB function GetMenu() would do exactly what I need done. Should I use it or should I stay consistent by creating all of my form elements inside my templates? Are form elements considered display elements?

    I think from a coding standpoint, it would be far more efficient to simply assign the output from GetMenu() to my pnRender object and be done with it rather than looping through an array as I build the menu in the template itself.

    I guess that the main thing I want to do here is make sure that I'm on the same page as everyone else.

    Thanks in advance!

    Ed
  • Posted: 16.03.2005, 19:45
     
    alexan
    rank:
    Softmore Softmore
    registered:
     November 2004
    Status:
    offline
    last visit:
    06.03.06
    Posts:
    66
    for me a form element is a display element ...

    as it requires styling ...

    and I would use the Smarty/pnRender function "html_options" or similar ones to avoid the loops.

    Alexan

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula