cakephp

Tag Archives: cakephp

Implementing ACL In Cakephp 2.1 and Upper Versions 24Jun, 2015

Implementing ACL In Cakephp 2.1 and Upper Versions

Hello friends! Time and again the idea of using ACL to designate specific permissions for specific groups have dreaded most of us. This happens because of the ambiguous behaviour shown by ACL at times. Well, the behaviour we perceive as ambiguous is due to limited understanding of the process involved in its implementation. Today, while implementing the ACL second time I still had to verify everything closely to resolve the errors associated with permissions. Having said that, I decided to split the ACL implementation into steps. Let’s start :- Step 1: The first and foremost requirement without which the ACL implementation would be futile is not using auth. Therefore, presence of auth component in our application will always be a…

Posted in: Cakephp
How to use Amazon S3 services in Cakephp 03Dec, 2014

How to use Amazon S3 services in Cakephp

Amazon S3 is an online storage service that provides simple web service interface to store and retrieve data. This space has to be purchased. This article covers uploading and deleting the files from Amazon S3 through Cakephp 2.2.2 Component. You can extend this component as per your requirement. You can understand the usage of this component with the below mentioned steps: 1) Put AWS SDK in /app/Controller/Component folder. You can download the aws attached with this article, or you can download it as zip from http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html 2) Put AwsComponent.php file in /app/Controller/Component folder. 3) Configure your component in constructor of the component as : $this->s3 = S3Client::factory(array( ‘key’ => YOUR_API_KEY, ‘secret’ => YOUR_API_SECRET, ‘region’ => ‘eu-west-1’, )); 4) Load component in…

Posted in: Cakephp
Cakephp – Logable behaviour 31Dec, 2010

Cakephp – Logable behaviour

This behavior is created to easily let you (the developer) log users activities that relates to database modifications (ie, add, edit and delete). If you just want to see what your users are doing or need to be able to say “That is not a bug, I can see from my log that you deleted the post yesterday.” and don’t want to spend more time that it takes to do “var $actsAs = array(‘Logable’);” then this behavior is for you.

Posted in: Cakephp