OSDN Git Service

- reverted deleted merge contents.
authormumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Sun, 17 May 2009 05:24:09 +0000 (05:24 +0000)
committermumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Sun, 17 May 2009 05:24:09 +0000 (05:24 +0000)
class/Plugin/Generator/Project.php
class/Plugin/Handle/AddProject.php

index 3a3b738..4fb915a 100644 (file)
@@ -71,8 +71,6 @@ class Ethna_Plugin_Generator_Project extends Ethna_Plugin_Generator
             return $r;
         }
 
-        $basedir = sprintf("%s/%s", $basedir, $id);
-
         // ディレクトリ作成
         if (is_dir($basedir) == false) {
             // confirm
@@ -153,6 +151,9 @@ class Ethna_Plugin_Generator_Project extends Ethna_Plugin_Generator
             "app.url_handler.php" => sprintf("$basedir/app/%s_UrlHandler.php", $macro['project_id']),
             "etc.ini.php" => sprintf("$basedir/etc/%s-ini.php", $macro['project_prefix']),
             "template.index.tpl" => sprintf("$basedir/template/$locale/index.tpl"),
+            "template.layout.tpl" => sprintf("$basedir/template/$locale/layout.tpl"),
+            "template.404.tpl" => sprintf("$basedir/template/$locale/error404.tpl"),
+            "template.500.tpl" => sprintf("$basedir/template/$locale/error500.tpl"),
         );
 
         $skelfile_maps = array(
index a0f1191..49d8098 100644 (file)
@@ -46,7 +46,7 @@ class Ethna_Plugin_Handle_AddProject extends Ethna_Plugin_Handle
         if (isset($opt_list['basedir'])) {
             $basedir = realpath(end($opt_list['basedir']));
         } else {
-            $basedir = getcwd();
+            $basedir = sprintf("%s/%s", getcwd(), strtolower($app_id));
         }
 
         // skeldir