TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-06-2009, 07:48 PM   #1 (permalink)
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default Framework Auto Admin - Django Style

Posted this somewhere else no feedback...

Basically developing a full fledged CRUD admin interface, that is basically much of the same that django does, only written in PHP.

Currently the theory I have come up with is to have the Admin Core Singleton which holds the registry for Models ( which are added in the same fashion as Django Models) within each Model will be a registry of the fields, the configuration for fields, model configuration. There will be a single method for initializing the Builder which will analyze the Models in the registry, add the routes, do permissions etc etc..
The admin will be handled through one class(controller) which will feature a method for each action that can be done (view, add, edit, delete). The class would dynamically build the administration view based on a defaults unless otherwise given.

Basically it would be
Load Modules -> Admin_Core -> Init Admin_Core -> Load Routes & Other -> Route to Admin -> Determain Model -> Construct View based on default and config given from model configuration

Other tid-bits such as form processing and generation, permission handling, action/error logging I have already built into the framework and would be easy to process given from the config given from a model.

The first 4 process would have to take place before the page is routed to within the framework ....

Anyone have some suggestions on improving or optimizing?
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Framework: Do's and Don'ts Jim Advanced PHP Programming 7 04-14-2009 03:00 PM


All times are GMT. The time now is 05:43 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design