News Feed
Sections




News Archive
feed this:

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

SitePoint PHP Blog:
Symfony2 Console Getting Started with Console Helpers
April 09, 2015 @ 10:44:03

If you've ever worked with the Symfony Console component and wanted to enhance the experience with some additional functionality, check out the latest tutorial from the SitePoint PHP blog: Symfony2 Console: Getting Started with Console Helpers.

In this tutorial, I'll share my experiences and we'll give some extra love to the console helpers, which provide us with a large collection of handy functions. There are a lot of reasons to create console commands in your projects: sending emails, exporting/importing data, creating users, and so on. [...] By the end of this post, we want to be able to create a basic console command to generate some output - any output will do - only the way to getting there is important. Near the end, we'll discover some console helpers in order to create some nice interactions between users and the interface.

He starts by helping you get the component installed via Composer and creating the first simple command line script (a ConsoleApplication). He shows how to add in a basic "hello world" command (conveniently named "BasicCommand") and the result when executed. With this in place, he starts in on three helpers:

  • Question Helper
  • Table class
  • Progress Bar

Each includes the code needed to implement it and the resulting output. You can find out more about the component in the Symfony2 documentation.

0 comments voice your opinion now!
symfony2 console tutorial command helpers introduction question table progressbar

Link: http://www.sitepoint.com/symfony2-console-getting-started-console-helpers/

Zend Developer Zone:
Extending the CakePHP Framework
July 12, 2006 @ 14:58:29

On the Zend Developer Zone today, there's this new look at extending the popular CakePHP framework with three different options - helpers, components, and plug-ins.

They describe each of these items:

  • Helpers - functions/functionality to help out in the views
  • Components - extra building blocks in controllers
  • Plug-ins - little "applications" to add instant functionality to a site

For each, they include a more complete definition, how they fit in with the overall "Cakeness" of an application and even a bit of code to explain things. Daniel also includes a few helpful links to get aspiring coders a head start.

0 comments voice your opinion now!
extend cakephp framework helpers components plug-ins extend cakephp framework helpers components plug-ins


Nick Lo's Blog:
Custom View Helpers in Zend Framework
June 28, 2006 @ 06:23:35

On his blog, Nick Lo has posted a brief tutorial showing how to use custom view helpers with the Zend Framework.

Currently the framework (version 0.1.3) includes a small selection of form helpers which will no doubt expand as it matures. For now I'm more interested in the ability to add custom helpers for specific project use.

He shows both the code and the directory structure to implement these custom view helpers, including a cuationary note about how the View helper should be named to get things to play nice together.

0 comments voice your opinion now!
custom view helpers zend framework subclassing controller custom view helpers zend framework subclassing controller


Community News:
Symfony Framework Makes Some Updates (v.0.6.2 and Content)
April 20, 2006 @ 10:53:24

The team behind the Symfony Project have updated their distribution today with the release of version 0.6.2 of the framework. Along with this, they've updated the site with a lot more content, both about their framework (documentation updates) and some samples showing how to use it (new tutorials).

First off, there's a new tutorial covering the use of sortable lists with the framework - comapring and contrasting it to the normal Ajax methods of creating these lists.

Secondly, they've published new extensive documentation about the Ajax helpers the framework uses to speed coding time and make advanced functionality simple to add. Several of them are even based on the Rails+script.aculo.us features so many developers look for.

Lastly, the askeet tutorial series has been updated to make it a bit more "newbie friendly", taking some of the things down a level furhter for those just diving into the wild world of Ajax.

It's great to see this quickly maturing framework keep its push going - past the 6 month mark now - and just keeps getting better with each version.

0 comments voice your opinion now!
symfony framework documentation tutorial helpers symfony framework documentation tutorial helpers



Community Events

Don't see your event here?
Let us know!


extension voicesoftheelephpant library php7 introduction api series community performance symfony2 opinion laravel framework release podcast conference version interview install example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework