how to create component in cakephp

I have given the example so you can use like this.

Create the HelloComponent.php in the component folder under app folder

then paste the code

Then call the component anywhere


Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *