Articles récents
Commentaires récents
- In Working with a company that embraces open source
- Guy Steels wrote: And a big thank you for open sourcing your plugins. When we look if certain functionality is...
- In Marius Wilms - The CakePHP Media Plugin
- Sotir wrote: Some practice use examples will be nice to have around...
- In Felix Geisendörfer - Recipies for successful CakePHP projects
- Felix Geisendörfer wrote: http://felixge.s3.amazonaws.com/09/cakephp-receipes.pdf (sorry, 8mb download)
- In Joël Perras - Demystifying Webservices in CakePHP
- Neil Crookes wrote: I have an upcoming project that could use the Google Chart / Visualisation API so would be...
Catégories
Neil Crookes - Bake Master Class
Ecrit le Tue, Jul 14th 2009, 05:25 dans CakeFest
After an introduction to bake, and what this shell means within CakePHP, Neil went on to explain and show examples of the code generation templates and capabilities provided by default.
The bake shell is broken down into tasks and a main shell. These tasks separate out the logic required for various main task subsets including controller, model and view baking, amongst others. The main bake shell is found in the CakePHP directory cake/console/libs/bake.php. Tasks used by this shell are defined in the $tasks variable. Bake extends the CakeShell class and executes calls based on whether the users want interactive or non-interactive tasks through the __interactive() and bake() methods respectively.
Neil made the suggestion that a persistent MySQL connection might be a good idea to stop database connection timeouts.
Following this introduction, a great walkthrough of customisation of the bake process and templates was demonstrated. This included the addition of a new Shell that allows for multiple bakes to be done automatically of the same type. Neil has been kind enough to host the code, and you can find this over at the CakeFest downloads page.
Retour aux articles de Graham's

Qu'est-ce que OpenID ?
OpenID est un nouveau standard ouvert qui permet de se connecter à des sites web grâce à une simple URL vous appartenant. Cette URL peut être votre page personnelle ou blog, ou peut vous être fournie par un site web que vous utilisez. Dans tous les cas, vous n'avez qu'à vous connecter une seule fois auprès de votre fournisseur OpenID, vous permettant ainsi de n'avoir qu'un seul mot de passe à maintenir.Learn more.
Comment est-ce que CakeDC utilise OpenID ?
Vous pouvez utiliser votre identité OpenID lorsque vous postez des commentaires sur le site. Lorsque vous voyez un champ de formulaire avec
il suffit de renseigner votre identité OpenID pour vous permettre de poster. Nous acceptons également les identités Google et Yahoo!. Utilisez simplement soit "google.com" soit "yahoo.com" et notre librairie OpenID ira chercher vos informations au bon endroit.
Commentaires:
Add New Comment