Overview of program logic
  • mvandorpmvandorp February 2009

    Hi,

    Is there a place where a global description of the working of SI can be found? Wiki?

    I'm hitting some issues, and because I do not know why things are programmed as they are, it takes a lot of time to figure out.

    I have been looking into index.php to try to determine the main flow.

    I understand that 'default' is the main system, which can be overridden by an extension
    module refers to a module, and is in fact the name of the folder the module can be found in
    view refers to a view within a module, and is the pph file within that module

    I see some default files are included if they exist (init, js-files); that is clear too

    So far, so good.

    BUT:
    How is the template chosen? (I see a reference to header.tpl, and 'footer.tpl', and in between some string mangling to get the template name).
    What is the meaning of the 'action' variable ?
    What does 'page_active' do?

    Thanks,

    Marcel

  • justinjustin February 2009

    hey marcel,

    page_active is used by the menu system to show the correct active tab and highlight the correct link in the menu
    - ie. if in the manage invoices page - make the Money tab active and highlight the invoices link in the menu

    i'll reply better tomorrow - going to bed now

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • justinjustin February 2009

    hey marcel

    index.php contains the guts of how Simple Invoices work

    one confusing thing that i have to sort out is ./templates/default

    the only way to get a different .tpl file for a requested page is via an extension - as an override

    default really needs to get renamed or the directory re-organised to make it more sane :)

    feel free to ask any questions you need

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories