Feature #43082

Add CLI support for scaffolding models, views, controller

Added by Ingo Pfennigstorf over 8 years ago. Updated over 6 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-11-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Add a cli mechanism to quickly generate code scaffolds on the command line.

Some examples on how it could be used:

Generate a model


php typo3/cli_dispatch.phpsh extbase:generate model car wheels:int seats:int manufacturer:string

This generates:

  • A model class Car.php with the provided properties and types
  • A TCA definition

Generate a Controller


php typo3/cli_dispatch.phpsh extbase:generate controller car index list show

This generates:

  • A controller named CarController.php with the actions indexAction, listAction, showAction
  • (Maybe) an entry in ext_localconf.php as allowed controller / action combination
  • Html files Index.html, List.html, Show.html in Resources/Private/Templates/Car/

Todos and remarks

The cli actions may be named after TYPO3 Flow conventions and maybe have the same featureset.
The generated code is really very basic, just dumb files without getting too complex, so good defaults have to be found regarding the models and class inheritance of them (VO, AE, ...)

#1

Updated by Ingo Pfennigstorf over 8 years ago

  • Target version set to Extbase 6.1
#2

Updated by Robert Weißgraeber about 8 years ago

  • Target version changed from Extbase 6.1 to Extbase 6.2
#3

Updated by Alexander Schnitzler about 8 years ago

  • Status changed from New to On Hold
#4

Updated by Anja Leichsenring about 8 years ago

  • Target version changed from Extbase 6.2 to Extbase 6.3
#5

Updated by Alexander Opitz over 6 years ago

Hi,

was this issue fixed or does it still exists?

#6

Updated by Anja Leichsenring over 6 years ago

  • Status changed from On Hold to New
#7

Updated by Alexander Opitz over 6 years ago

  • Status changed from New to Needs Feedback
#8

Updated by Ingo Pfennigstorf over 6 years ago

Not fixed, still exists. but may first be done in Flow as extbase is only some kind of backport.

#9

Updated by Alexander Opitz over 6 years ago

  • Project changed from 534 to TYPO3.Flow
#10

Updated by Michael Stucki over 6 years ago

  • Category deleted (Extbase: Command)
  • Target version deleted (Extbase 6.3)
#11

Updated by Michael Stucki over 6 years ago

FYI: On request of the CMS team I have archived the "Extbase" project in Forge (https://forge.typo3.org/projects/typo3v4-mvc). This issue referred to a version of the Extbase project, so I had to remove it.

Also available in: Atom PDF