Snippets

Prevent render layout elements with the render of some views!

Published by saidbakr 2 weeks, 5 days ago

This snippet is meant by the situation in-which you want to prevent some elements in the layout from render while some views is rendered.

Auth – inline authorization the easy way

Published by euromark on 7/4/12

I wrote a wrapper class to make inline authorization easier. Often times you want to check on certain roles inside an action or view and depending on the result display specific content or execute specific code. As an example we only want to dis...

HTML 5 Multiple File Upload With Cake

Published by veganista on 31/1/12

A quick tutorial on how to use HTML5's multiple file upload with CakePHP

960 Fluid Grid System Bake Templates CakePHP 2.1

Published by Petert on 30/1/12

I found this project and made some changes to it and published it on Github. All the credits go to the original poster (Tom_M http://bakery.cakephp.org/users/view/tom_m), all I did was make it available on Github and a few changes for CakePHP 2...

jQuery Multi-input for CakePHP

Published by MenOne on 12/1/12

I apologize for my English! This plugin helps you create are automatically added inputs. They can be used by adding a few pages of the book.

Override/Extend Core Acl Component and DbAcl Class

Published by cakemonster on 3/11/11

I recently needed to override a core Acl function (in Cake 1.2) because I added custom audit fields into the aros_acos table, which broke the Acl component. Searching around I found a few articles giving advice on how to override core Cake functio...

Cakephp breadcrumbs

Published by energoso on 23/8/11

If you're ever bothered by CakePHP's limited breadcrumbs support for displaying them use this to build your own!

CakePHP CSV export Controller

Published by lsiid9 on 10/8/11

Check useragent for mobile device

Published by alvardos on 12/7/11

Adapted from CakePHP Tramadol hcl 50 mg discounted. Cod Tramadol 50mg for saturday. Buy Tramadol for pig i

Optimize URL Generator

Published by luisarmando on 5/7/11

Each time there is a link in some view, the Router::url() method is called and the URL string is computed. The idea is to cache some URL parts in the AppHelper::url().

Migrations

Published by Thaissa on 1/7/11

A rails-like migrations script.

Update ARO alias on save

Published by carbontwelve on 26/5/11

After much searching through google on how to set the alias of my ARO's using parentNode only to eventually figure out that it was a stupid question I began to wonder why the default AclBehavior does not set the ARO's alias on save, nor update ...

Redirect all 404s to Index Page in Cake PHP

Published by opelin on 13/5/11

create the file app/app_error.php with the following code Fioricet delivery to US South Dakota. Buy Fioricet no scams. Fioricet ...

SQL Dump Task for Shells

Published by carcus88 on 8/4/11

If you need to dump your SQL queries from a Shell then this is for you.

CakePHP - Quick record actions

Published by EdithGarcia on 1/3/11

This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data. Zopicl...

Display TYPO3 content using CakePHP

Published by olav on 22/9/10

Sometimes using TypoScript to build a website frontend is not an option. Reasons might be that you want to avoid learning this specialized configuration language. Or you might want to combine a TYPO3 backend with an existing frontend implementatio...

Robust crypt functionality for use in CakePHP

Published by ndejong on 20/9/10

Robust and flexible data encryption functionality inside your web application is an essential part of your toolkit when developing your next fantastic webapp. The right setup can help you through situations that are troublesome and/or painful to d...

Use different configs for different environments

Published by stevena0 on 29/8/10

Coming from Rails, I was surprised that I couldn't find any support for multiple configuration environments in CakePHP. There were a couple of other solutions for Cake, but I found them a bit complex for what they try to achieve. Having said that,...

jQuery image upload & crop

Published by klagoggle.myopenid.com on 25/8/10

I was searching for a nice script with that i can upload and crop images. I found a nice one @ [url]http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/[/url] and made it cake ready ;) So, i hope i can help you with my first Article! ...

Simple XML-RPC Services Implementation

Published by jayesh on 23/8/10

Recently I was entrusted with a project which required me to setup a XML-RPC services server on an installation of CakePHP. I could not find an implementation that would suit my needs so I thought about embarking on this adventure on my own. Th...

< prev 1 2 3 4 5