CakePHP Pagination is one of the fastest thing you can code with this amazing framework. In this post I’m gonna show you how you can create a pagination script in matter of few minutes, or even seconds! Cool? Let’s get started. This post is part of my CakePHP tutorial series, before you proceed to this,… Continue reading CakePHP 2.x Pagination Tutorial: Helper, Conditions, Limit, Sorting and More!
Introduction After installing CakePHP on your server, we now have to learn how to create CakePHP classes and its naming conventions. CakePHP uses Model–view–controller (MVC) software architecture which is really great. If you have no idea what MVC is, I think Wikipedia can give you a great overview. Also, you’re going to get the hang… Continue reading CakePHP Classes and Naming Conventions
Introduction Using CakePHP Framework is one of my most favorite things to do. This is the first PHP framework I worked with, and until now, I’m still delighted by it. Now it is time for me to share my knowledge in CakePHP web development. I think you are here because you already know what CakePHP… Continue reading How To Use CakePHP Framework, A Getting Started Guide!
Hey guys, today I just want to update my CakePHP CRUD example or tutorial from 1.3.x to 2.x. Please note that this post can really help you get started with CakePHP database operations but is just meant to be an example, not production-ready code, use and customize it according to your needs. Using CakePHP 2.x… Continue reading Creating a CakePHP CRUD Example – Source Code Download and Tutorial
Updated last July 15, 2013: CakePHP 2.x Pagination Tutorial: Helper, Conditions, Limit, Sorting and More! Today I’m going to show you how easy it is for CakePHP to do pagination, sorting and displaying data from the database (I’m using MySQL). Pagination is useful if you have many rows of data, image if you have thousands… Continue reading Paginating, Sorting and Displaying Data with CakePHP
Hi guys, today I’m going to show you how to access or get CakePHP’s current page controller, action and parameters. I found this useful when high lighting certain elements of a page for example are tabs, sidebars, etc. that tells the user what part of the system or website they are currently in. For instance… Continue reading CakePHP: Access Current Controller, Action and Parameters
Hi there! Well, I don’t have much posts few weeks ago since I’m kinda busy working on a project. I got good news and not-so-bad news, haha! This past few weeks, I’ve been working on an Android application which makes me so happy (though at first, kinda stressed, since I’m a beginner on this). Yes, it has… Continue reading A Happy Developer, Android + CakePHP + jQuery
CakePHP requires us to follow certain convention. In this way, we will have very uniform system development, have free functionality, and save time over tracking configuration files! :)1. Create a Model directory: app/models/ filename: post.php classname: Post extension: class Post extends AppModel The filenames of models are always singular. And its classnames are CamelCased. 2. Create a Controller directory: app/controllers/ filename: posts_controller.php classname: PostsController extension: class… Continue reading CakePHP Naming Conventions