Category : CakePHP

6 posts

This tutorial for beginner cakephp developer who just started their journey with cakephp framework. Here i am going to cover how to create component and call it to your controller. Component is small chunk of utility code to perform common action on your cakephp controllers. Cakephp already has some default component but you can also …
Today we are going to talk about email library of cakephp, Cakephp is one of great php framework. It comes with some great useful libraries, So in this tutorial we are only talking about email sending library. First you need to create email template. under app/views/layouts/ you can see the structure below. email/ html/ default.ctp …
Today this post is for cakephp beginner for those people who wants to switch from corephp to any framework, Moving from corephp to framework is good idea because when you will start working on framework your development will be fast because frame works pre-defined plugins and libraries. which we used to create in corephp. There …
In this post we are going to learn how to create paging and shorting in cakephp list page. Create controller PostsController.php class PostsController extends AppController { var $name = 'Posts';   function inbox() { $this->paginate = array( 'conditions' => array('Post.status'=>'1'),'limit' => 10,'order' => array('Post.created_date'=>'desc' ) ); $data = $this->paginate('Posts'); $this->set('result', $data); } Create a element …
Here we are going discuss about how to upload image or file without refresh page in cakephp and jquery. Create controller in cakephp ProfilesController.php class ProfilesController extends AppController { var $name = 'Profiles'; public $uses = array('Profile'); function changeprofilephoto() { $profile_id = “14”; // $path = "../../app/webroot/profilepic/";//set path $valid_formats = array(".jpg", ".png", ".gif", ".bmp", ".jpeg");// …
This simple tutorial belongs to newbie php and cakephp developer, Here i’ll tell you the simplest trick to export your mysql data into excel/csv, Every time we need this while generating reports so this is the simplest line of code to do this But If you want more customize report you must use any third …
PAGE TOP

Don't show again | X

Follow Rohit on Facebook

Join me to get interesting insights!

Rohit Kumar