Pages related to the keyword: CakePHP

DKIM email signature and CakePHP 24/04/2014

Sending email from your server is very easy. Sending email that actually arrive in your recipient's mailbox is much harder because email providers like Gmail are sometimes overzealous in their fight against SPAM. In order to have a chance to pass their tests, you have many things to set up like SPF record and DKIM signature.

I will not cover here how to sign your outgoing email with DKIM. Two very clear and helpful examples are available for Ubuntu servers: DKIM with Postfix for Ubuntu or Postifx/DKIM.

Read more...
This page belongs to the following categories: news , CakePHP

Bootstrap 3 Helper for CakePHP 2.x 25/09/2013

The new version of the Helper that allows to automatically make your forms Bootstrap compatible has been updated for Bootstrap 3 : find sources on Github.

The Helper for Bootstrap 2.3 is still available.

Read more...
This page belongs to the following categories: news , CakePHP , Code

Petit Four version 1.2.1 released 20/09/2013

This is a small release, with a few bug fixes :

  • Small bugs fixed in the cake baking templates, standard and reduced
  • Added Type TIMESTAMP in the DATE and TIME category in order to be able to use the CURRENT_TIMESTAMP default

Read more...
This page belongs to the following categories: news , CakePHP

Controllers baking templates update 19/09/2013

The default template used for baking controller files has been updated according to CakePHP 2.4.0 :

Concerning the reduced template ("Minimize amount of code" option), the delete function was already simplified !

Read more...
This page belongs to the following categories: news , CakePHP

Managing accents in text searches 21/07/2013

A good search engine must be flexible since words searched by a user may be present in database, but in a different shape. The most obvious example is the presence of uppercase letters in the text: if a sentence begins with "Tomorrow, ...", this word must be recognized by the search engine even if the user has typed "tomorrow" or "TOMORROW".

Many written languages use special characters (accentuated or other) that cause the same issue: the same word can be written in different shapes depending on the presence or absence of those characters (especially because of uppercase letters, which are often unaccentuated). The french word "sérénité", if it appears in a title, may be written in the shape "SERENITE". The engine must not only ignore the case but also the accents.

Read more...
This page belongs to the following categories: news , CakePHP , Code , Plugin , Accents

Document Manager Plugin for CakePHP 2.x 18/07/2013

The Document Manager plugin provides an out of the box simple file management interface for any CakePHP 2.x application.

You define a base directory inside the webroot folder for your arborescence and inside you can create folders, upload/rename/delete files, browse them, obtain the absolute URL of any file in order to be able to link to it. Uploaded files informations are stored inside a Document table which allows to easily access them in your application. 

Moreover it can be hooked to an user management system to manage ownership of files and prevent files edition or deletion by other users. If you do not have an user management system, you can easily disable file ownership management to have an open system.

It requires jQuery to perform.

Read more...
This page belongs to the following categories: news , CakePHP , Code , Plugin

New baking option 29/05/2013

Petit Four has been upgraded with a new baking option for your CakePHP projects, that can be used by checking "minimize amount of code" on your online CakePHP bake page. The modifications in the baked code are the following : 

  • Models' validations are generated inside the beforeValidate() function in order to be able to translate validation messages
  • Models' validations and associations are generated with the minimal amount of keys, CakePHP standards do the rest of the magic
  • The function add() has been removed from controllers and the corresponding views are also removed. The reason behind this choice is that Controller actions and Views for add() and edit() are so similar that in our opinion it goes against the DRY rule. Use '/controller_name/edit' without providing any id to create a new entry. The code of the edit() function has been updated to allow this use.
  • Strings inside gettext functions are put inside double quotes (it allows to use single brackets inside, hello french users!)

Read more...
This page belongs to the following categories: news , CakePHP

Petit four 1.2.0 available 27/05/2013

The online CakePHP baking tool Petit Four 1.2.0 has been released:

  • You can now load a SQL file corresponding to the Database of an existing CakePHP application in order to directly import your models, fields and relations into a project on the site. Relations following the naming convention of CakePHP are automatically detected, but you still have to validate them and choose the inverse cardinality (hasMany or hasOne) of belongsTo relations.

Don't forget to register in order to benefit from all the functionalities of la pâtisserie

Read more...
This page belongs to the following categories: news , CakePHP

Petit four 1.1.0 released 22/04/2013

The online CakePHP baking tool Petit Four 1.1.0 has been released:

In order to use these functionalities, you must have an account on this site. You are thus welcome to register, we do not collect any personal data, so registering takes just 10 seconds!

Read more...
This page belongs to the following categories: news , CakePHP

How to save HasAndBelongsToMany (HABTM) data in CakePHP 16/04/2013

Saving data from a HasAndBelongsToMany (HABTM) relationship with CakePHP is not the easiest part of using this framework. Just have a look at all the related questions in Stack Overflow or dedicated forums... The main difficulty is that the format of HABTM data is not the same wether you want to associate existing records together (only update entries in the join table), or create new records and also associate them (create new records in the models table and in the join table).

In addition, they are both different from the data format returned by a find() operation which, for all others associations, can be directly used as such with the save() method.

So you have to be extra careful to choose the right data format depending of which use you are considering.

Read more...
This page belongs to the following categories: news , CakePHP , Code
5103
Petits fours baked