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.
$validate = new Validation();
$string = ‘Name123’;
$result = $validate->alphaNumeric ( $string );
if ($result Read more…
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…
What is the purpose of multiple .htaccess files in CakePHP?
In Cakephp, contained .htaccess files are as follows:
CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also Read more…
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…