Model View Controller structure
  • il_dandiil_dandi March 2010

    Hi! I'd to modify SI using a MVC struture but I've this problem:

    View -> OK ... are the template
    Model -> I think that I've to refer to Modules folder ... is it right?

    but for the controller?

    if I'd like to recreate this structure what should I've to do?

    Thanks

  • il_dandiil_dandi March 2010

    Is there a solution for know how to manage SI with MVC structure?

    Thanks for help me!

  • justinjustin March 2010

    hey il_dandi

    there is no straight mapping of files in Simple invoice to make MVC

    the main index.php is the controller

    - you would have to review index.php and the module files and recode them to work with MVC

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • il_dandiil_dandi March 2010

    Can you tell me a simple example about what do you mean?

    Thanks

  • justinjustin March 2010

    hey il_dandi

    you would most likely have to rewrite a far bit of Simple Invoices code to make it true MVC
    - i have no example as i have not tried to make it all proper MVC

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • il_dandiil_dandi March 2010

    Can you only tell me a simple example??

    I've a file in template for manage biller detail (for example)
    I've a module for manage biller save

    .... how Can I changes these??

    Can you only give me the right road ?? .... thanks

  • sbrsbr March 2010

    il_dandi, I think u will have to experiment with the MVC yourself. I kind of figure there are other SI related issues
    that would be better spending time on, and as Justin wrote above its not been tried to make it proper MVC.

  • il_dandiil_dandi March 2010

    I don't know in SI we have a Zend folder but SI uses

    - PDO and not Zend_Db
    - Not MVC structure

    Somebody Can reply me about these?

    Thanks

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