Skip to content

Instantly share code, notes, and snippets.

@jimgwhit
Created January 9, 2015 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimgwhit/aced44f9448db4c03891 to your computer and use it in GitHub Desktop.
Save jimgwhit/aced44f9448db4c03891 to your computer and use it in GitHub Desktop.
accessor
namespace App\Model\Entity;
use Cake\ORM\Entity;
class Article extends Entity
{
protected function _getTitle($title)
{
return ucwords($title);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment