public function generate()
 {
     if (!$this->validation()) {
         return;
     }
     $this->generate_path();
     $this->generate_file();
     // make helper
     $generator = new HelperGenerator($this->name);
     $generator->generate();
 }
 public function generate()
 {
     if (!$this->validation()) {
         return;
     }
     $this->generate_path();
     $this->generate_file();
     // make application controller
     $generator = new ApplicationControllerGenerator();
     $generator->generate();
     // make helper
     $generator = new HelperGenerator($this->name);
     $generator->generate();
     // make layout
     $generator = new LayoutGenerator($this->name);
     $generator->generate();
     // make view
     foreach ($this->functions as $function) {
         $generator = new ViewGenerator(camel_to_under($this->name), $function);
         $generator->generate();
     }
 }