Integration of MVC

See all posts See thread Reply

Re: Integration of MVC new!
by colin, 10 years ago
I will look into it when I get some time. Feel free to submit a patch in the meantime.Reply
Re: Integration of MVC new!
by Sai, 10 years ago
What is a patch?Reply
Re: Integration of MVC new!
by Sai, 10 years ago
Generate the wrapper class.

require('libs/class.upload.php');
class TinyMVC_Library_Upload Extends upload {
  function __construct() {
    parent::__construct();
    $tmvc = tmvc::instance();
  }
}

now produces an error
Error: E_WARNING
Message: Missing argument 1 for upload::upload(), called in /home/otdc/domains/otdc.ru/public_html/paraavis/tinymvc/myfiles/plugins/tinymvc_library_upload.php on line 8 and defined
File: /home/otdc/domains/otdc.ru/public_html/paraavis/libs/class.upload.php
Line: 2573
Reply
Re: Integration of MVC new!
by Sai, 10 years ago
Thanks Colin, I solved the problem. Generate the wrapper class:

require('libs/class.upload.php');
class TinyMVC_Library_Upload Extends upload {
    var $file;
    function __construct(){
        parent::__construct($this->file);
        $tmvc = tmvc::instance();
  }
}

Everything works. :)Reply
Re: Integration of MVC new!
by colin, 10 years ago
Glad you got it working. And thank you for sharing the code.Reply