CakePHP Installation
2. The Project
The Project user stories
Before diving into the code head-first, let's describe the project a bit more. The following
sections describe the features we want to implement in the first version/iteration of the
project with some simple stories.
The jobeet website has four kind of users:
admin: He owns the website and has the magic power
user: He vists the website to look for a job
poster: He visits the website to post a jo
affilate: He re-publishes some jobs on his website
Story 1: On the homepage, the user sees the latest active jobs
when a user comes to the Jobeet website he sees a list of active jobs. The jobs are sorted by
category and then by publication date.
For each category the list only shows the first 10 jobs and a link allows to list all the jobs for a given
category.
Story 2: A user can ask for all the jobs in a given category
when a user clicks on a category name or on a more jobs link on the homepage, he sees all the
jobs for this category sorted by date. The list is paginated with 20 jobs per page.
The database
The CakePHP framework suprots all PDO-supported database (MySQL, PostgreSQL, SQLite,
Oracle, MSSQL, ) for this totorial lets use MySQL for.
$mysqladmin -uroot -p create jobeet
configure your database in app/Config/database.php
See it in Action in the Browser
CakePHP is able to automatically generate a MVC paters for a give model thet provides basic
manipulation features.
$ app/Console/cake bake
List of activities can a bake comand do