Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Stauffer:
The auth scaffold in Laravel 5.2
Jan 11, 2016 @ 16:06:29

Matt Stauffer has continued his series about some of the new features in the latest release of the Laravel framework (v5.2) with this post looking at the new auth scaffolding it makes available.

If you're like me, many of the applications you build in Laravel have a similar Saas-type framework: user signup, user login, password reset, public sales page, logged-in dashboard, logout route, and a base Bootstrap style for when you're just getting started.

Laravel used to have a scaffold for this out of the box. It disappeared recently, to my great chagrin, but it's now back as an Artisan command: make:auth.

He talks about what all the scaffolding builds out including templates, routes and controllers. He provides examples of some of the generated code and what the output of these simple templates looks like (including a basic Bootstrap layout).

tagged: laravel framework auth scaffold tutorial example login user template controller route

Link: https://mattstauffer.co/blog/the-auth-scaffold-in-laravel-5-2

Maarten Balliauw's Blog:
Scaffolding and packaging a Windows Azure project in PHP
May 30, 2011 @ 18:11:08

Maarten Balliauw has a new post to his blog today talking about a new feature they're considering adding to the SDK API - the ability scaffold and package up a PHP application for use on the Windows Azure platform.

With the fresh release of the Windows Azure SDK for PHP v3.0, it’s time to have a look at the future. One of the features we’re playing with is creating a full-fledged replacement for the current Windows Azure Command-Line tools available. These tools sometimes are a life saver and sometimes a big PITA due to baked-in defaults and lack of customization options. And to overcome that last one, here’s what we’re thinking of: scaffolders. Basically what we’ll be doing is splitting the packaging process into two steps: Scaffolding and Packaging.

He goes through their current suggestions of how to set up the scaffold template that would auto-generate everything you need from a command-line call. He also talks about making custom scaffolds (that are, in concept, similar to phar archives) and gives an example of the simple structure.

tagged: windows azure project application scaffold sdk

Link:

Felix Geisendorfer's Blog:
Command line fun in CakePHP 1.2
Oct 16, 2006 @ 12:18:32

On his ThinkingPHP blog today, Felix Geisendorfer hands out mor eCakePHP goodness with some talk about working with the popular CakePHP framework in an unlikely place - on the command line with the "bake" utility.

The "bake" utility is included with the CakePHP distribution and helps a developer scaffold out an application with minimal effort. Things have been changed in the recent distributions, though:

Unlike the old bake.php, which was only used to auto-generate code for you, this one follows a much cooler concept. The main idea is to have an interface to a wide variety Tasks.

The new and improved "bake" program takes the tasks created and builds out a bit more functionality than just the scaffolding as the version before did. Felix includes an example of a task (a simple echo) just to show how it's formatted.

tagged: cakephp framework task bake command line scaffold cakephp framework task bake command line scaffold

Link:

Felix Geisendorfer's Blog:
Command line fun in CakePHP 1.2
Oct 16, 2006 @ 12:18:32

On his ThinkingPHP blog today, Felix Geisendorfer hands out mor eCakePHP goodness with some talk about working with the popular CakePHP framework in an unlikely place - on the command line with the "bake" utility.

The "bake" utility is included with the CakePHP distribution and helps a developer scaffold out an application with minimal effort. Things have been changed in the recent distributions, though:

Unlike the old bake.php, which was only used to auto-generate code for you, this one follows a much cooler concept. The main idea is to have an interface to a wide variety Tasks.

The new and improved "bake" program takes the tasks created and builds out a bit more functionality than just the scaffolding as the version before did. Felix includes an example of a task (a simple echo) just to show how it's formatted.

tagged: cakephp framework task bake command line scaffold cakephp framework task bake command line scaffold

Link:

The Shadow Fox Network:
Creating A Scaffold-like Class in PHP or An Automatic CMS For a Table
Aug 17, 2006 @ 12:59:38

Of the features in Ruby on Rails, scaffolding is one of the more popular. PHP doesn't have this natively, but with the help of this new article from The Shadow Fox Network, you can create a scaffold-like class for your database table.

If you've ever seen the Creating a Weblog In 15 Minutes movie, you were undoubtedly startled at how useful and quick the scaffold command could be. But if you're still using PHP, and you love that command, then you could have a problem. Luckily, through the use of Object Oriented Programming, an equivalent solution is available, creating a full create, read, update, and delete CMS for a single table through one command.

The end result will look something like this: The end result of the scaffold class and some extra style.

The tutorial goes through the entire process, showing the code for the different parts:

  • Starting The Class
  • Listing the Rows
  • Creating a New Row
  • Inserting the Row
  • Editing a Row (Form)
  • Updating The Row
  • Deleting the Row
They conclude the tutorial with the full code listing, ready for you to cut and paste into your favorite editor and run.

tagged: scaffold class rubyonrails automatic cms database table scaffold class rubyonrails automatic cms database table

Link:

The Shadow Fox Network:
Creating A Scaffold-like Class in PHP or An Automatic CMS For a Table
Aug 17, 2006 @ 12:59:38

Of the features in Ruby on Rails, scaffolding is one of the more popular. PHP doesn't have this natively, but with the help of this new article from The Shadow Fox Network, you can create a scaffold-like class for your database table.

If you've ever seen the Creating a Weblog In 15 Minutes movie, you were undoubtedly startled at how useful and quick the scaffold command could be. But if you're still using PHP, and you love that command, then you could have a problem. Luckily, through the use of Object Oriented Programming, an equivalent solution is available, creating a full create, read, update, and delete CMS for a single table through one command.

The end result will look something like this: The end result of the scaffold class and some extra style.

The tutorial goes through the entire process, showing the code for the different parts:

  • Starting The Class
  • Listing the Rows
  • Creating a New Row
  • Inserting the Row
  • Editing a Row (Form)
  • Updating The Row
  • Deleting the Row
They conclude the tutorial with the full code listing, ready for you to cut and paste into your favorite editor and run.

tagged: scaffold class rubyonrails automatic cms database table scaffold class rubyonrails automatic cms database table

Link:


Trending Topics: