IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Scaffolding is a technique supported by some model-view-controller frameworks, in which the programmer can specify how the application database may be used. The compiler or framework uses this specification, together with pre-defined code templates, to generate the final code that the application can use to create, read, update and delete database entries, effectively treating the templates as a "scaffold" on which to build a more powerful application.

Scaffolding is an evolution of database code generators from earlier development environments, such as Oracle's CASE Generator, and many other 4GL client-server software development products.

Scaffolding was made popular by the Ruby on Rails framework. It has been adapted to other software frameworks, including Express Framework, Play! Framework, Django, MonoRail, Symfony, CodeIgniter, Yii, CakePHP, Model-Glue, Grails, Catalyst, Seam Framework, Spring Roo, ASP.NET Dynamic Data and ASP.NET MVC Framework's Metadata Template Helpers.

Exemples

Laravel

La comanda:

$ php artisan fresh
Scaffolding removed! Enjoy your fresh start.

Executada en un projecte Laravel 5 acabat d'instal·lar fa que tota la estructura bàsica (Scaffold) del projecte (Plantilles per defecte tema autorització, base de dades, etc ) s'esborrin per tal de tenir un projecte Laravel 5 from scratch (buit). Si teniu el projecte sota control de git podeu veure els fitxers eliminats:

$ git status
On branch master
Changes not staged for commit:
 (use "git add/rm <file>..." to update what will be committed)
 (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   .idea/workspace.xml
	deleted:    app/Http/Controllers/Auth/AuthController.php
	deleted:    app/Http/Controllers/Auth/PasswordController.php
	deleted:    app/Http/Controllers/HomeController.php
	modified:   app/Http/routes.php
	modified:   app/Providers/AppServiceProvider.php
	deleted:    app/Services/Registrar.php
	deleted:    public/css/app.css
	deleted:    public/fonts/glyphicons-halflings-regular.eot
	deleted:    public/fonts/glyphicons-halflings-regular.svg
	deleted:    public/fonts/glyphicons-halflings-regular.ttf
	deleted:    public/fonts/glyphicons-halflings-regular.woff
	deleted:    public/fonts/glyphicons-halflings-regular.woff2
	modified:   resources/assets/less/app.less
	deleted:    resources/assets/less/bootstrap/alerts.less
	deleted:    resources/assets/less/bootstrap/badges.less
	deleted:    resources/assets/less/bootstrap/bootstrap.less
	deleted:    resources/assets/less/bootstrap/breadcrumbs.less
	deleted:    resources/assets/less/bootstrap/button-groups.less
	deleted:    resources/assets/less/bootstrap/buttons.less
	deleted:    resources/assets/less/bootstrap/carousel.less
	deleted:    resources/assets/less/bootstrap/close.less
	deleted:    resources/assets/less/bootstrap/code.less
	deleted:    resources/assets/less/bootstrap/component-animations.less
	deleted:    resources/assets/less/bootstrap/dropdowns.less
	deleted:    resources/assets/less/bootstrap/forms.less
	deleted:    resources/assets/less/bootstrap/glyphicons.less
	deleted:    resources/assets/less/bootstrap/grid.less
	deleted:    resources/assets/less/bootstrap/input-groups.less
	deleted:    resources/assets/less/bootstrap/jumbotron.less
	deleted:    resources/assets/less/bootstrap/labels.less
	deleted:    resources/assets/less/bootstrap/list-group.less
	deleted:    resources/assets/less/bootstrap/media.less
 	deleted:    resources/assets/less/bootstrap/mixins.less
	deleted:    resources/assets/less/bootstrap/mixins/alerts.less
	deleted:    resources/assets/less/bootstrap/mixins/background-variant.less
	deleted:    resources/assets/less/bootstrap/mixins/border-radius.less
	deleted:    resources/assets/less/bootstrap/mixins/buttons.less
	deleted:    resources/assets/less/bootstrap/mixins/center-block.less
	deleted:    resources/assets/less/bootstrap/mixins/clearfix.less
	deleted:    resources/assets/less/bootstrap/mixins/forms.less
	deleted:    resources/assets/less/bootstrap/mixins/gradients.less
	deleted:    resources/assets/less/bootstrap/mixins/grid-framework.less
	deleted:    resources/assets/less/bootstrap/mixins/grid.less
	deleted:    resources/assets/less/bootstrap/mixins/hide-text.less
	deleted:    resources/assets/less/bootstrap/mixins/image.less
	deleted:    resources/assets/less/bootstrap/mixins/labels.less
	deleted:    resources/assets/less/bootstrap/mixins/list-group.less
	deleted:    resources/assets/less/bootstrap/mixins/nav-divider.less
	deleted:    resources/assets/less/bootstrap/mixins/nav-vertical-align.less
	deleted:    resources/assets/less/bootstrap/mixins/opacity.less
	deleted:    resources/assets/less/bootstrap/mixins/pagination.less
	deleted:    resources/assets/less/bootstrap/mixins/panels.less
	deleted:    resources/assets/less/bootstrap/mixins/progress-bar.less
	deleted:    resources/assets/less/bootstrap/mixins/reset-filter.less
	deleted:    resources/assets/less/bootstrap/mixins/resize.less
	deleted:    resources/assets/less/bootstrap/mixins/responsive-visibility.less
	deleted:    resources/assets/less/bootstrap/mixins/size.less
	deleted:    resources/assets/less/bootstrap/mixins/tab-focus.less
	deleted:    resources/assets/less/bootstrap/mixins/table-row.less
	deleted:    resources/assets/less/bootstrap/mixins/text-emphasis.less
	deleted:    resources/assets/less/bootstrap/mixins/text-overflow.less
	deleted:    resources/assets/less/bootstrap/mixins/vendor-prefixes.less
	deleted:    resources/assets/less/bootstrap/modals.less
	deleted:    resources/assets/less/bootstrap/navbar.less
	deleted:    resources/assets/less/bootstrap/navs.less
	deleted:    resources/assets/less/bootstrap/normalize.less
	deleted:    resources/assets/less/bootstrap/pager.less
	deleted:    resources/assets/less/bootstrap/pagination.less
	deleted:    resources/assets/less/bootstrap/panels.less
	deleted:    resources/assets/less/bootstrap/popovers.less
	deleted:    resources/assets/less/bootstrap/print.less
	deleted:    resources/assets/less/bootstrap/progress-bars.less
	deleted:    resources/assets/less/bootstrap/responsive-embed.less
	deleted:    resources/assets/less/bootstrap/responsive-utilities.less
	deleted:    resources/assets/less/bootstrap/scaffolding.less
	deleted:    resources/assets/less/bootstrap/tables.less
	deleted:    resources/assets/less/bootstrap/theme.less
	deleted:    resources/assets/less/bootstrap/thumbnails.less
	deleted:    resources/assets/less/bootstrap/tooltip.less
	deleted:    resources/assets/less/bootstrap/type.less
	deleted:    resources/assets/less/bootstrap/utilities.less
	deleted:    resources/assets/less/bootstrap/variables.less
	deleted:    resources/assets/less/bootstrap/wells.less
	deleted:    resources/views/app.blade.php
	deleted:    resources/views/auth/login.blade.php
	deleted:    resources/views/auth/password.blade.php
	deleted:    resources/views/auth/register.blade.php
	deleted:    resources/views/auth/reset.blade.php
	deleted:    resources/views/emails/password.blade.php
	deleted:    resources/views/home.blade.php

I també podeu desfer el canvi amb:

$ git reset --hard

Vegeu també

Enllaços externs