TYPO3 Flow Base DistributionPackagesApplications

Bug #4318

generateController only generates one controller at a time

Added by ziyad saeed almost 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-08-25
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

0%

Category:Content / Instructions
Target version:1.0.0 alpha 4

Description

According to the Getting Started guide alpha3. it says that using the following command
(php Packages\Framework\FLOW3\Scripts\FLOW3.php
Kickstart Kickstart generateController --packageKey Blog --controllerName
Blog,Post,Comment)
will generate the controllers for blog, post and comment.

On Windows 7 with WAMP 2 and Powershell
the command only generates controller for just one of them.
PS C:\wamp\www\FLOW3Tutorial> (php Packages\Framework\FLOW3\Scripts\FLOW3.php Kickstart Kickstart generateController --packageKey Blog --controllerName Blog,Post,Comment)
+ .../Packages/Application/Blog/Classes/Controller/BlogController.php
+ .../Packages/Application/Blog/Resources/Private/Templates/Blog/index.html

History

#1 Updated by Robert Lemke almost 6 years ago

  • Target version changed from 1.0.0 alpha 3 to 1.0.0 alpha 4

#2 Updated by Karsten Dambekalns almost 6 years ago

  • Category set to Content / Instructions
  • Status changed from New to Needs Feedback
  • Assigned To set to Karsten Dambekalns

Could you try to enclose the controller names in quotes (double and/or single) to check if the commas get somehow eaten by the shell?

(php Packages\Framework\FLOW3\Scripts\FLOW3.php Kickstart Kickstart generateController --packageKey Blog --controllerName "Blog,Post,Comment")

#3 Updated by ziyad saeed almost 6 years ago

worked. Putting quotes generates 3 controllers for blog, post and comment and accompanying templates.
bug closed

#4 Updated by Karsten Dambekalns almost 6 years ago

Hi.

ziyad saeed wrote:

worked. Putting quotes generates 3 controllers for blog, post and comment and accompanying templates.

Did you use single or double quotes?

#5 Updated by Bastian Waidelich almost 6 years ago

Karsten Dambekalns wrote:

Did you use single or double quotes?

FYI: For me (Windows 7) all three combinations (no quotes, single quotes, double quotes) work in fact.

#6 Updated by Bastian Waidelich almost 6 years ago

Bastian Waidelich wrote:

FYI: For me (Windows 7) all three combinations (no quotes, single quotes, double quotes) work in fact.

Correction: single quotes do not work (they wouldn't throw an exception but create files like 'BlogController.php)

#7 Updated by ziyad saeed almost 6 years ago

I used double quotes and it generated all the required files in the correct path.

#8 Updated by Karsten Dambekalns almost 6 years ago

  • Status changed from Needs Feedback to Resolved

Thanks for your feedback!

The tutorial has been updated in SVN and will be updated on the website as soon as possible.

Also available in: Atom PDF