X

Get the Blog Updates

Scroll to Top

To Top

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.

Sessions manage and customization is veryeasy in CakePHP. Setting and configuration come out of the box so basically you don't need to configure at all. But still at some point we need customization like, if we need some changes in php.ini or want to store session in a different place.

You can manage session, write custom handler, add option to save on different places, override php.ini settings

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.

When we are going to retrieve recordsof (user) using User model, we can get the associated model's record at the same time. That might not require at some point. To avoid this, CakePHP provides the bindModel/unbindModel methods. But this is not be a good practice. You can streamline your operation using the containable behavior. The performance and the speed will increased as well. It will mostly reduce the joining of tables.


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.

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.

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.

Jaspersoft is a commercial open source softwarevendor focused on business intelligence, including data jaspersoftvisualization, reporting, and analytics. Jaspersoft provides commercial and open source software, support, services, and licensing around the Jasper report, Jasper report server, Jaspersoft Studio, i-report and ETL products . It is offered in a community open source edition as well as under several commercial editions with broad support for various databases and data sources, including NoSQL and other big data sources. Jaspersoft's main related product is JasperReports Server, a Java web application that provides advanced report server capabilities such as report scheduling, permissions, ad hoc reporting, dashboards, and multi-tenancy.

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.

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.

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.

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.

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 integrate PayPal in PHP
By Priyadarshini M.

To accept online payments through your website you would need a payment gateway. There are numerous payment gateways that can be implemented to your website.

however you will need to choose the best for your PHP application. "PayPal" is one of the best platforms that offers secure payment services.

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 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.

ImageMagick is a collection of robust andconvenient tools for manipulating images. It can be used to crop images of numerous formats such as JPEG, PNG, GIF, TIFF and PhotoCD.

ImageMagick facilitates creation of dynamic images that are fitting to the specific requirements of web applications.

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

Copyright © 2009-2014 Andolasoft. All rights reserved.