public function model($name, $primaryKey)
    {
        $fileName = "{$name}.php";
        $tableName = strtolower($name);

        $class = $name;
        $date = date("n/j/Y");

        $fileTable = $this->appPath . "/Models/Table/" . $fileName;
        $fileRow = $this->appPath . "/Models/Row/" . $fileName;

        $contentsT = array('<?php');
        $contentsT[] = '/*';
        $contentsT[] = " * {$name} table model";
        $contentsT[] = ' *';
        $contentsT[] = ' * @author ';
        $contentsT[] = ' * @version 1.0';
        $contentsT[] = " * @date $date";
        $contentsT[] = ' */';
        $contentsT[] = '';
        $contentsT[] = 'namespace Models\Table;';
        $contentsT[] = 'use Core\Orm\TableGateway;';
        $contentsT[] = '';
        $contentsT[] = 'class ' . $class . ' extends TableGateway';
        $contentsT[] = "{";
        $contentsT[] = "    protected \$_name = '{$tableName}';";
        $contentsT[] = "    protected \$_primary = '{$primaryKey}';";
        $contentsT[] = "    protected \$_rowClass = 'Models\Row\$class';";
        $contentsT[] = "";
        $contentsT[] = '}';

        if (file_put_contents($fileTable, implode("\n", $contentsT))) {
            echo Utils::colorize('Create ' . $fileTable, 'SUCCESS');
        } else {
            echo Utils::colorize('Can\'t create ' . $fileTable, 'FAILURE');
        }

        $contentsR = array('<?php');
        $contentsR[] = '/*';
        $contentsR[] = " * {$name} row model";
        $contentsR[] = ' *';
        $contentsR[] = ' * @author ';
        $contentsR[] = ' * @version 1.0';
        $contentsR[] = " * @date $date";
        $contentsR[] = ' */';
        $contentsR[] = '';
        $contentsR[] = 'namespace Models\Row;';
        $contentsR[] = 'use Core\Orm\RowGateway;';
        $contentsR[] = '';
        $contentsR[] = 'class ' . $class . ' extends RowGateway';
        $contentsR[] = "{";
        $contentsR[] = "";
        $contentsR[] = '}';

        if (file_put_contents($fileRow, implode("\n", $contentsR))) {
            echo Utils::colorize('Create ' . $fileRow, 'SUCCESS');

            return true;
        } else {
            echo Utils::colorize('Can\'t create ' . $fileRow, 'FAILURE');

            return false;
        }
    }