| @@ 41-50 (lines=10) @@ | ||
| 38 | * @param string $ns |
|
| 39 | * @return string |
|
| 40 | */ |
|
| 41 | public function renderReadme($folders, $name, $ns) |
|
| 42 | { |
|
| 43 | return $this->view->render('@luya/console/commands/views/module/readme.php', [ |
|
| 44 | 'folders' => $folders, |
|
| 45 | 'name' => $name, |
|
| 46 | 'humanName' => $this->humanizeName($name), |
|
| 47 | 'ns' => $ns, |
|
| 48 | 'luyaText' => $this->getGeneratorText('module/create'), |
|
| 49 | ]); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * Render the admin template. |
|
| @@ 60-68 (lines=9) @@ | ||
| 57 | * @param string $ns |
|
| 58 | * @return string |
|
| 59 | */ |
|
| 60 | public function renderAdmin($folders, $name, $ns) |
|
| 61 | { |
|
| 62 | return $this->view->render('@luya/console/commands/views/module/adminmodule.php', [ |
|
| 63 | 'folders' => $folders, |
|
| 64 | 'name' => $this->humanizeName($name), |
|
| 65 | 'ns' => $ns, |
|
| 66 | 'luyaText' => $this->getGeneratorText('module/create'), |
|
| 67 | ]); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * Render the frontend template. |
|
| @@ 78-86 (lines=9) @@ | ||
| 75 | * @param string $ns |
|
| 76 | * @return string |
|
| 77 | */ |
|
| 78 | public function renderFrontend($folders, $name, $ns) |
|
| 79 | { |
|
| 80 | return $this->view->render('@luya/console/commands/views/module/frontendmodule.php', [ |
|
| 81 | 'folders' => $folders, |
|
| 82 | 'name' => $this->humanizeName($name), |
|
| 83 | 'ns' => $ns, |
|
| 84 | 'luyaText' => $this->getGeneratorText('module/create'), |
|
| 85 | ]); |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * Create a new frontend/admin module. |
|