<?
class frmSave extends MForm
{
		function __construct() 
		{
			parent::__construct('Save file');
    		$this->eventHandler();
		}

		function createFields()
		{
			$buttons = array(
				new MButton('btnSave','Save exampleFile.txt','FILE')
			);
			$this->setButtons($buttons);
		}

		function btnSave_click()
		{
			$this->manager->saveFile('example','exampleFile.txt');
		}
}
?>