News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
An Example Zend Framework Blog - Part 5 Models w/Zend_Db & an Admin Module
May 01, 2008 @ 10:25:06

Padraic Brady is on part five of his series looking at making a blogging tool with the Zend Framework today. This time he focuses on the database side of things, working with models and making an admin module.

First of all I decided to add an Entries Model and Authors Model to the mix, primarily to get ready for when we can add new entries to our blog. This leads to where we can create new Entries; we add an Administration Module to the application with it's own distinct Layout.

He starts by making the database schema, an entries and authors table, before starting in on the models. They're made based off of the Zend_Db component's structure and they let the application interact with the data in the tables easily. His code for the modules is included as well as the controller and view for the admin module.

0 comments voice your opinion now!
zendframework model zendb zendlayout controller administration module


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: The Future of Zend Framework is Solar

Zend: Apigility Progress report: zf-mvc-auth, packagist, and PHP's built-in web server

Community News: Zend Framework Beta 0.9.0 Released

Christian Stocker's Blog: A Twitter Adapter for Zend_Auth

PHP-Coding-Practices.com: Making CakePHP's Pagination work with Model::expects()


Community Events





Don't see your event here?
Let us know!


refactor language community list laravel testing code framework podcast release threedevsandamaybe series interview unittest api introduction developer opinion symfony2 install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework