public function controller($name)
    {
        $fileName = "{$name}.php";

        if (isset($this->arguments[2])) {
            $actions = explode(',', $this->arguments[2]);

            if (count($actions) == 0) {
                $actions = array('index');
            }

        } else {
            $actions = array('index');
        }

        $file = $this->appPath . "/Controllers/" . $fileName;
        $class = $name;
        $date = date("n/j/Y");
        $contents = array('<?php');
        $contents[] = '/*';
        $contents[] = " * {$name} controller";
        $contents[] = ' *';
        $contents[] = ' * @author ';
        $contents[] = ' * @version 1.0';
        $contents[] = " * @date $date";
        $contents[] = ' */';
        $contents[] = '';
        $contents[] = 'namespace Controllers;';
        $contents[] = 'use \Core\Controller;';
        $contents[] = '';
        $contents[] = 'class ' . $class . ' extends Controller';
        $contents[] = '{';

        foreach ($actions as $action) {
            $contents[] = "";
            $contents[] = "    public function " . $action . "Action()";
            $contents[] = "    {";
            $contents[] = "        ";
            $contents[] = "    }";
            $contents[] = "";
        }

        $contents[] = '}';

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

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

            return false;
        }
    }