Narendra Vaghela Blog

0

Mailgun plugin for CakePHP 3

Just created a plugin for CakePHP 3 to send the emails using Mailgun service. Find the detailed usage details and installation manual at my GitHub project: https://github.com/narendravaghela/cakephp-mailgun See this tutorial for step by step guide...

0

CakePHP: Send email using CakeEmail

Sending an email is a very common feature of any application. We generally send newsletters, notifications, invoices etc. through emails. Email can be in simple text format or in beautiful HTML format. In this...

0

How to write a jQuery plugin?

What is jQuery plugin? A jQuery plugin is a simple method or a collection of methods that extends jQuery’s object. You can use and enable all jQuery objects and core methods in the methods...

0

Flip image with PHP and GD

PHP provides GD library which is very useful for image manipulation. We can easily resize, rotate and flips images using various functions of GD library. In this tutorial, we will learn how to flip...

0

CakePHP: How to create a helper

What is helper? Helper is a simple class file similar to Components. Helper is used in view files for presentation. We can use helper in view files, elements or layouts of our application. There...

0

Redirect non-www to www using .htaccess

We can either use www.example.com or simply example.com as our main domain. But, there is a common thought that we should use consistent format of url for better search engine optimization. To redirect non-www...

0

Git: Working with remotes

Git remote is a kind of bookmark or url of a repository from which we can pull or push our code. This can be on our local computer or on a remote server like...

0

CakePHP: Custom validation rule in model

Data validation is very important part of any application. CakePHP has its own validation rules to validate data like alphaNumeric, email, numeric. Let’s start with simple example using inbuilt validation rules. As you know,...

1

CakePHP: How to create a component

What is a component? Component is a simple class file which contains the common code or logic. Component can be shared between our application’s controllers. CakePHP comes with some good components, so you can...