i need extend ftp class for copying files from server to another server.
i have :
- ftp.php in app/classes ( class Ftp extends \Fuel\Core\Ftp )
- 'Ftp' => APPPATH . 'classes/ftp.php', in bootstrap.php
- new method in ftp.php public function upload_file()
but when i call
it serve error
ErrorException [ Error ]: Call to undefined method Fuel\Core\Ftp::upload_file()
APPPATH/modules/mymodule/classes/controller/mycontroller.php @ line 204
Backtrace
COREPATH/base.php @ line 182
what i doing bad ? how i add fnc to ftp class ? thanks
/EDITED/
one more
when i want use $this->_is_conn() this serve error
ErrorException [ Error ]: Call to private method Fuel\Core\Ftp::_is_conn() from context 'Ftp'
what would you recommended me ? thanks