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

Sanisoft Blog:
Themes in CakePHP 3, A step by step HowTo
August 21, 2014 @ 11:45:38

On the Sanisoft blog there's a recent post that gives you a step-by-step guide to working with themes in the upcoming version 3 release of the CakePHP framework.

Almost every application I code has themes which either the end user can change or the admin can set or can be changed on the fly. Doing all these things was easy in CakePHP 2.x. With the first alpha release of CakePHP 3.x I was naturally keen to try out how theming worked with V3.

He shows how to convert an existing theme into one that will be compatible with the 3.x version of the framework. He breaks it down into seven steps (well, technically eight) to make it easier to follow along:

  • Step 0: Make the "posts" table
  • Step 1: Bake the model, controller and views for the Posts
  • Step 2: Bake in the "Twit" plugin
  • Step 3: Download and install the Twitter Bootstrap
  • Step 4: Create the "default.ctp" file with the content given
  • Step 5: Make the "index.ctp" template with the given content
  • Step 6: Add the line to the AppController to use the new theme
  • Step 7: Reload and verify the results
0 comments voice your opinion now!
theme cakephp framework version3 update template

Link: http://www.sanisoft.com/blog/2014/07/21/themes-in-cakephp-3-howto/

Piotr Pasich:
CakePHP with Symfony's2 router
August 13, 2014 @ 09:46:27

Piotr Pasich has a new post to his site today showing you how you can use the Symfony2 router with CakePHP, another popular PHP framework. He talks about some of his own experiences using CakePHP and how one module "left a bitter aftertaste" when using it - the route handling.

The second version of CakePhp still has a lot old-fashioned patterns, singletons or lack of tests, but I can live with that. I saw a lot of better or worse frameworks in my life.

He goes through an example of the CakePHP routing including some sample code and a walk-through of the code that actually handles the request. He points out some of the "clean code" violations it makes and gets started integrating the Symfony2 router instead. He extends the CakePHP router and uses this plugin to bridge between the two. He then can call the Symfony router with only slight modifications to things like the "getPath" calls.

0 comments voice your opinion now!
cakephp symfony2 router integrate plugin tutorial

Link: http://piotrpasich.com/cakephp-with-symfonys2-router/

Three Devs & A Maybe Podcast:
Delving into CakePHP with James Watts
July 16, 2014 @ 09:13:33

The Three Devs & A Maybe podcast has posted episode #34 of their podcast today featuring a chat with James Watts, a member of the core CakePHP development team. They talk about the framework, his own background and how he got into the project.

This week we are very lucky to have James Watts, a core member of the CakePHP project on the show. Initially starting off with his journey into programming, we move on to talk about the differences we find between junior and senior developers. We then touch upon his previous start-up experience and how that resulted in him thinking more about the product as a whole. CakePHP has been around for almost 10 years now, we discuss how he got into the project - along with the frameworks key goals. We then move on to highlight some of the key differences/features you will find in the next major release (3.0). Finally, we discuss his upcoming book, and his experiences with organising a large open-source community event.

Topics mentioned include CakeFest, the CakeDC presentation about git workflow and a few video interviews posted over on the CakePHP Youtube channel. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly.

0 comments voice your opinion now!
threedevsandamaybe podcast ep34 jameswatts cakephp project interview

Link: http://threedevsandamaybe.com/posts/delving-into-cakephp-with-james-watts/

Developer's Lane:
Top 20 CakePHP Interview Questions and Answers
July 04, 2014 @ 13:48:25

The Developer's Lane site has posted a top ten list of questions answered about the CakePHP framework. The idea is that they could be used as a part of an interview to see how well the candidate knows the framework.

Here there are many questions and answers about How CakePHP Framework works? and basic questions related to CakePHP framework functionality.

Questions include:

  • What are are drawbacks of Cakephp?
  • What is the name of Cakephp database configuration file name and its location?
  • What are commonly used components of Cakephp?
  • Why does Cakephp have two vendor folders?
  • Can you remember what is the directory structure when you download Cakephp?

The questions provide a good overview of the framework, but won't tell you if the developer is any good...you still need to figure out that one on your own.

0 comments voice your opinion now!
cakephp framework interview questions developer overview

Link: http://www.developerslane.com/top-20-cakephp-interview-questions-and-answers/

Leonid Mamchenkov:
CakePHP 3, here we go again.
July 02, 2014 @ 13:18:55

In this new post Leonid Mamchenkov looks at the latest version of a PHP framework that's been around since the PHP4 days, CakePHP, and some of the improvements that will come with version three.

Currently, I am at the start of a couple of projects, which require a bit of the future support. CakePHP 2.x can handle the job now, but I'm looking more into the next 3-5 years. And that's why I'm looking at CakePHP 3, which is still in the early development stage, with an alpha release coming not too long from now (have a look at the CakePHP 3 roadmap document). Let's have a look at the high level goals for CakePHP 3.

Among the items he mentions are things like:

  • The adoption of broader PHP community standards
  • An increase in modularity
  • Developing for PHP 5.4+
  • Composer support (and using PSR-4 autoloading)
  • The removal of some more complex, brittle code in favor of simpler, easier to extend options

Check out the roadmap and migration guides for full information.

0 comments voice your opinion now!
cakephp v3 framework refactor features roadmap goals

Link: http://mamchenkov.net/wordpress/2014/07/01/cakephp-3-here-we-go-again/

Suresh Ariya:
Integrate Zend Framework into CakePHP application
February 13, 2014 @ 13:04:22

Suresh Ariya has a new post today showing you how to integrate Zend Framework (v1) with CakePHP so you can use any Zend Framework class/component you might need via autoloading.

Today, we are going to see how we can integrate Zend Framework version (1.12) into CakePHP Application. In order to achieve this, i created an autoloader script which will load the Zend Framework class at the time of accessing the class (creating object). I used spl_autoload_register() function which will register a function as the __autoload() function.

He creates a basic "ZFLoader" class that handles the registration of the autoloader and the parsing of the class name to resolve the path to the file. Another basic loader script is included in the post with some setup and configuration the Zend Framework will need to operate. Finally, he shows how to get the CakePHP application to pull in the Zend Framework loader in the controller and make use of the Zend_Feed component.

0 comments voice your opinion now!
integration zendframework cakephp application tutorial

Link: http://sureshdotariya.blogspot.in/2014/02/integrate-zend-framework-into-cakephp.html

Lingohub.com:
Internationalization How To for the 5 most popular PHP frameworks
July 24, 2013 @ 10:15:31

On the Lingohub site there's a new post showing how internationalization (i18n) is handled in 5 major PHP frameworks - CodeIgniter, CakePHP, Zend Framework Symfony and Yii.

As discussed in the previous articles on PHP internationalization, PHP provides native support for string translation using gettext and PHP arrays. These can be used in any PHP project. Additionally, some popular PHP frameworks offer their own way of string translation. In this article, I want to provide a brief summary of the internationalization process with five of the most popular PHP frameworks currently out there. In this How-To you will read about using CodeIgniter, CakePHP, Zend, Yii and Symphony.

There's only a bit of sample code here, so it's not a complete tutorial for all of them. Mostly its links to more information about how each framework does things - modules used, formats and configurations.

0 comments voice your opinion now!
framework i18n internationalization howto codeigniter zendframework symfony cakephp

Link: http://blog.lingohub.com/2013/07/internationalization-how-to-5-most-popular-php-frameworks

PHP Town Hall Podcast:
Episode 4 PHP's Vision, Beards, and Cake
February 18, 2013 @ 14:20:25

The PHP Town Hall podcast has posted their fourth episode, "PHP's Vision, Beards, and Cake", with hosts Phil Sturgeon and Ben Edmunds.

We made it to episode 4, past the point of no return! In this episode we are joined by Zack Kitzmiller (owner of an awesome beard) and Jose Diaz-Gonzalez (CakePHP developer extraordinaire) as we argue about PHP's vision and how we think the language should progress in the future.

You can listen to this latest post a few ways - either using the in-page player, by downloading the mp3 or by subscribing to their feed.

0 comments voice your opinion now!
ep4 phptownhall podcast vision language cakephp beard


EngineYard.com:
Cloud Out Loud - Future of PHP (ZF2 & CakePHP)
December 28, 2012 @ 09:26:23

Engine Yard has recently posted two podcasts looking at the "Future of PHP" as it relates to two of the popular PHP frameworks out there - CakePHP and Zend Framework 2, as interviewed by Davey Shafik.

The first episode is an interview with some of the core ZF2 contributors about the framework and where they think it's headed. They cover the planned roadmap, targets for next year involving PHP 5.4 and 5.5 as well as how it compares to other frameworks out there today.

In the second episode Davey talks with some of the core contributors (and big fans) of the CakePHP framework. They talk about the current state of the framework, changes in the upcoming version and what it's like working with the PHP-FIG (framework interoperability group).

You can listen to each of these via their in-page players or drop their RSS feed into your reader and get these and the latest episodes of the "Cloud Out Loud" podcast as soon as they're released.

0 comments voice your opinion now!
podcast cloudoutloud future framework zendframework2 cakephp


Zumba Engineering Blog:
Some CakePHP optimizations
November 07, 2012 @ 09:31:20

For those out there using the CakePHP framework to create your applications, you might be interested in these quick tips from Juan Basso on the Zumba Engineering Blog for both the architecture and actual code to optimize the performance of the app.

Our site and system has a lot of throughput and it make us use more instances and try to reduce the load in every part. It makes the company happy (save money) and also make the customer happy (faster load). On this article I will go over few things in terms of architecture and some code changes/strategies that could make your application faster as well.

Some of the recommendations include:

  • Installing the APC/opcode caching to help save execution time
  • Avoiding as many network requests as possible
  • Use local file/data caching
  • Using the "requestAction" inside controllers with its built-in caching
0 comments voice your opinion now!
cakephp optimize caching apc opcode file resource



Community Events





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


community conference list language framework bugfix interview series laravel release introduction threedevsandamaybe zendserver api podcast tips code voicesoftheelephpant deployment symfony

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