cakephp

How to use CakePHP Validation class

Author - Kailash Kumar
|
0 Comments
|

How to use CakePHP Validation class

We can use CakePHP validation functions and speed up development. These functions already follow the correct rules so we don’t need to write custom code.

Example:
In Controller:

$validate = new Validation();
$string = ‘Name123’;
$result = $validate->alphaNumeric ( $string );
if ($result Read more…

Sending Emails in CakePHP with Example

Author - Sahil Bhalla
|
0 Comments
|

What support/library is there in CakePHP for sending emails and how to use it?

In CakePHP3, there are Transport and Email classes available under Cake/Network/Email namespace that are used for sending emails. After an update in the version 3.1 email functionality has Read more…

Purpose of multiple .htaccess files in CakePHP

Author - Maniraj Singh
|
0 Comments
|

What is the purpose of multiple .htaccess files in CakePHP?

In Cakephp, contained .htaccess files are as follows:

newcakeproject/.htaccess
/app/.htaccess
/app/webroot/.htaccess

1. newcakeproject/.htaccess

CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also Read more…

Convert HTML to pdf using mpdf plugin in cakePHP

Author - Sahil Bhalla
|
0 Comments
|

How to use mpdf plugin in cakePHP to convert HTML documents to pdf?

mPDF is a PHP library which is used to generate PDF files from HTML Documents. It converts utf-8 encoded documents and also supports almost all languages including Arabic and Hebrew. It includes Read more…