Get the Blog Updates

Scroll to Top

To Top

CakePHP is an open source PHP based rapiddevelopment framework. It offers great run-time infrastructure along with abundant set of libraries for CakePHP developers.

CakePHP Development is supported by the MVC (Model View and ControllerCakePHP Developer) architecture which differentiates the programming logic from the presentation layer.

Hash Class: Makes CakePHP Coding easier!
By Prakash S.

Hash is a predefined class provided by CakePHP.It is used for array manipulation such as inserting an element to an array, remove an element from an array, sort an array, extract part of a large array, filter the non empty elements, rearrange the whole array, which makes the code more optimized and understandable. So it makes CakePHP easier and flexible to use. Because most of the operations like find, insert, update in CakePHP returns/takes array as output/input.
Hash provides an improved interface, more consistent and predictable set of features over Set. While it lacks the spotty support for pseudo XPath, its more fully featured dot notation provides similar features in a more consistent implementation.

CakePHP ‘find’ method makes it easier to retrieve data from database. The ‘find’ method can be used to construct anything from extremely simple queries to more complex ones without writing much code.

This method can handle most SQL type requests and can be extended for more specific SQL queries. I will walk you through the below example about the basics of working with the ‘find’ method

Today, we are thrilled to announce that Andolasoftis named at #10 in the Top 10CakePHP Development Companies by bestwebdesignagencies.com.

We pledge this success to our customers for their continuous support which has brought us such laurels.

We can achieve SSL authentication in CakePHP by writing own methods like ‘forceSSL’ and ‘unforceSSL’.

Also there is an in-built Security Component in CakePHP to achieve SSL authentication.Using Security Component we can integrate tighter security in our application.

Fat Model and Skinny Controller in CakePHPframework encourages developers to include business logic into the app models and the controllers to translate the requests.

After developing for a while, when you look back at your code you'll realize how hard it is to keep track of all these things.

CakePHP is a free and open-source platform,which facilitates the developers to build highly affordable web-applications using the MVC framework. This is a robust and efficient platform for the developers to create exciting PHP web applications.

There are numerous PHP frameworks availablesuch as Zend, CodeIgniter, Akelos etc. CakePHP on the other hand is the most popular framework among them and reduces significant coding time and investment.

CakePHP is an open source web application development tool.

How to migrate CakePHP 1.x to 2.x
By Prakash S.

We will focus on what we need to do to getCakePHP 1.3 application upgraded to CakePHP 2.2.3 CakePHP 2.2.3 is the latest stable version now.

Installation is pretty straight forward, same as CakePHP 1.3 version. Download and unzip the CalePHP 2.2.3 and follow the instructions.

CakePHP is an open-source web developmentframework for PHP. It came into prominence around 2006 and it was inspired by the Ruby on Rails framework, which was introduced around a year prior to it.

CakePHP follows MVC pattern architecture as well as "Don't Repeat yourself" and "Convention Over Configuration" design philosophies.

How to use PHP SDK for Facebook Posting
By Mahavir S.

Facebook is a leading social media websitethat houses over 1.1 billion active users and 665 million daily active users over the world.

Facebook is preferred by the businesses for its cost-effective marketing strategy. It is one of the best social marketing website for better customer engagement. Marketing experts believe that ‘Facebook’ posting is the key to social marketing. Facebook Posts through Application: For Facebook posting, the first thing we need is the User Access Token. We can get the Access Token when user connects Facebook account to the application.

If you are doing migration from v2.2.x tov3.0.0 You need to do the following changes. Download SDK: https://github.com/facebook/facebook-php-sdk Keep the two classes base_facebook.php and facebook.php with the certificate fb_ca_chain_bundle.crt

How to convert documents to PDF in PHP?
By Gayadhar K.

'Unoconv' is the tool to convert doc, docx,odt to PDF file in PHP. PDF Unoconv is a command line utility that can convert files from any OpenOffice supported formats to a different OpenOffice supporting format .

Installation Required: openoffice and unoconv Download unoconv from https://github.com/dagwieers/unoconv

Merge and split PDF in PHP using PDFtk
By Gayadhar K.

Merge a group of PDF files to a single PDFfile without disturbing the contents using PDFtk.PDFtk. PDFtk runs on a variety of platforms, including: Windows, Linux, Mac OSX, FreeBSD and Solaris.

It does not require Acrobat and allows you to manipulate PDF easily and freely. Here is what you can do in PHP using PDFtk.

This example describes ‘How to SSH to remoteserver in PHP and send files from one server to another server using libssh2. ssh2_connect() - Connect to a remote server ssh2_scp_send() - Send a file via SSH ssh2_exec() - Execute a command on a remote server

CakePHP’s bake console is a command linetool to build fully functional CRUD(Create, Read, Update, Delete) skeleton for your project. As we know CakePHP 3.x is at our doorstep and scaffolding has been removed from it. Cake’s bake console is the extensive scaffolding that generates well documented code for the CRUD operation.

5 utility Open Source Apps in CakePHP
By Prakash S.

CakePHP is one of the most popular open sourceweb application framework. It provides an extensible architecture for development, maintenance and deployment of PHP applications. Being based on the MVC Architecture & ORM, it is relatively simple to understand and helps developers to write less code without losing flexibility.

How to do Custom Pagination in CakePHP
By Prakash S.

Sometimes we need to do pagination inCakePHP using a traditional SQL query, thereby the CakePHP predefined pagination functionality is lost.

We can implement pagination method in the Model or Behavior when we are using standard SQL query in CakePHP. Just need to make sure that the result cannot be obtained with core model methods or a custom finder before implementing custom queries pagination. But we can't just use the standard pagination on the custom queries, we have to override the paginate functions in model or behavior.

Imagine that you have millions of dataand your SQL database is not optimized enough to handle them, then “Solr” is CakePHP DataSource for Apache Solryour best data source. Apache Solr is a fast search platform. It’s major features include full-text search faceted search, dynamic clustering, database integration, rich document handling. Solr is highly scalable and it is the most popular enterprise search engine.

This document will guide you through DataSource setup for Solr in CakePHP. Set-up the Solr DataSource in CakePHP and query Solr with your CakePHP model “find” function, just similar to querying any other SQL database.

An introduction to PHP Frameworks
By Prakash S.

A framework is a structure that developerschoose to build their application. It determines the structure of the application and facilitates it to connect with many different API's.

A proficient PHP framework enables developers to develop application faster, efficiently and assist in building stable web-apps.

Copyright © 2009-2014 Andolasoft. All rights reserved.