Cakephp 3 Login functionality-Cakephp 3 authorization – Part 2

Let’s see in this post how can we implement Cakephp 3 authorization. As described in previous part 1 -Cakephp 3 Login functionality-Authentication and Authorization-Part 1, Authorization means checking, whether the logged in user is having permission to access certain functionalities in your application. To achieve this we need to assign a unique role to each user … Read more

Cakephp 3 Login functionality-Authentication and Authorization – Part 1

In this post, I am going to share a procedure of creating Cakephp 3 Login functionality in our Cakephp 3 application. The Authentication or Login/Logout system is very common and basic requirement of any web application. So let’s see what would be the steps included while implementing Authentication and Authorization or Cakephp 3 Login functionality. … Read more

Cakephp search with pagination

Cakephp search with pagination Search functionality is one of the very common and must required functionality in any application. Cakephp search functionality is very easy to implement. A very common example is admin pages, where we show the listing of our data, a list of posts, comments, etc. In Cakephp we show this listing using … Read more

Cakephp 3 Forgot Password functionality

CakePHP 3 Forgot Password functionality is one of the most important functionality required in web application. We have to follow certain steps to implement this functionality correctly. Let’s see in this post how we can implement CakePHP 3 Forgot Password functionality. First, let’s see what actually includes in CakePHP 3 forgot password functionality. The scenario, … Read more

Date and time function in PHP

Date and time function in PHP You may require a date and time functionality in almost every application you make. You will learn about a date and time function in PHP here. As date and time are a very common and essential part of our day to day life, you should know how you can … Read more

Suppressing errors in PHP

Many times you find that while coding you get errors or warnings in the output. If you don’t want to show those errors in your output or for suppressing errors in PHP, you can use two methods. Adding @ symbol before the line where you think the error may occur. Adding function error_reporting(0) before/top of … Read more

php print_r var_dump functions

  This chapter is about php print_r var_dump functions. These functions will generate output somewhat same but having few differences. Let’s see in details about PHP print_r var_dump functions: bool print_r(mixed val): print_r is used to print values in the human-readable form. The value can be a string, integer, double, array or object. If we use print_r to … Read more

Other MySql commands in PHP

Let’s see other MySql commands in PHP.   1. mysql_num_rows(): It returns the number of rows resulting from mysql_query() output. Example: <?php $query = “select * from employees”; $result = mysql_query($query, $con); if(!$result) { die(‘Error getting table data’, mysql_error); } echo “Number of Employees in database – “.mysql_num_rows($result); ?> 2. mysql_result(): This function will return … Read more