Experience from Data base Project.
SummarySummary
2Arnold Boungoungou
∗ MVC∗ MySQL Workbrench∗ Example ∗ Advantages
MVCModel-View-ControllerModel-View-Controller
Arnold Boungoungou 3
Controller
ViewModel
According to the orders of the user, treat the data through the model and post the interface built in the view.
Group the operations of reading and writing from a database.
Constructed the representations of the data and post tools to pilot the application.
Request HTTP,CLI…
Response : XML,HTML,CSS
Example
Arnold Boungoungou 4
Controller
<?phpclass EmployesController extends AppController {var $name = 'Employes';
function index() {…}function add(){…}function view() {…}
?>
Model
<?phpclass Employe extends AppModel {var $name = 'Employe';var $validate = array('groupes_id' => array( 'numeric' => array( 'rule' => array('numeric');}?>
View
<tr><th><?php echo $this->Paginator->sort('NOM');?></th><th><?php echo $this->Paginator->sort('PRENOM');?></th><th><?php echo $this->Paginator->sort('TEL');?></th><th><?php echo $this->Paginator->sort('EMAIL');?></th><th><?php echo $this->Paginator->sort('SEXE');?></th><th><?php echo $this->Paginator->sort('GROUPES');?></th><th><?php echo $this->Paginator->sort('SERVICES');?></th></tr>
1
2
3
MySQL WorkbenchMySQL WorkbenchDesign – Develop - AdministerDesign – Develop - Administer
Arnold Boungoungou 5
Definition:
Is a visual tool for unified architects.
Developers and database administrators.
MySQL Workbench provides data modeling
SQL development and administration.
Available for Windows, Linux and Mac OS.
Last version 5.2
MySQL WorkbenchMySQL WorkbenchDesign – Develop - AdministerDesign – Develop - Administer
6Arnold Boungoungou
MySQL Workbench simplifies the design and maintenance of databases All objects can be modeled and managed in MySQL Workbench including :
Tables Indexes
ViewsStored procedures
Triggers and security privileges
Arnold Boungoungou 7
Visual design of data basesVisual design of data bases
MySQL WorkbenchMySQL WorkbenchDesign – Develop - AdministerDesign – Develop - Administer
Arnold Boungoungou 8
DesignDesign
MySQL Workbench enables a database administrator, developer or architect
design data, modeling, generate and visually
manage databases.
Develop
can execute and optimize SQL queries.easily manage connections to the database.
AdministerAdminister
Visual console.MySQL administration environments.
Configuring servers.Administering users. Monitor the integrity of the database.
Arnold Boungoungou 9
Arnold Boungoungou 10
∗ Times saving.∗ reduces the workload.∗ Financial « 0 zl ».∗ More O.S.
Advantages
Arnold Boungoungou 11
END
A chaque jour suffit sa peine…Sufficient unto the day is the evil thereof…
Arnold Boungoungou 12
Top Related