Pages

Thursday, October 11, 2012

Php Frameworks

The "EccenceOne" Framework For Php !

    EssenceOne by Robin Deatherage !
The core behind this Framework is it's ability to route all Models, Views and Controllers up front and Alphanumerically in an organized listed Class wrapped Module . For each new module you add simply add another Class router and boogy. In a nutshell it is the easiest and fastest Php Framework ever.
    The idea started when trying to access Pages using 5 miles of script in a Class Function that would pass the page name by using url request scripts. The fascinating thing about Essence is that you wont need too.
  In this example we will touch base on this.

site name folder
    m1
        static_class_router.php
    m2
        protected_class_router.php  
    m3
        private_class_router.php
            
    v1                       //static module views
        head.php
        horizontal_menu.php
        left_menu.php
        (pagename).php //Content Section
        right_menu.php
        farright_menu.php
        footer.php
    v2                        //protected members module views
        head.php
        horizontal_menu.php
        left_menu.php
        (pagename).php //Content Section
        right_menu.php
        farright_menu.php
        footer.php
    v3                         //private admin module views
        head.php
        horizontal_menu.php
        left_menu.php
        (pagename).php //Content Section
        right_menu.php
        farright_menu.php
        footer.php     c1                                 //static module controllers
        class_blog.php
        class_login.php
        class_join.php
        class_news.php
        class_menus.php
        class_archives.php
    c2                                 //protected module controllers
        class_user_check.php
        class_profile.php
        class_wallpost.php
        class_users_list.php
        class_user.php
        class_friend.php
        class_friends_list.php
        class_album.php
        class_album_list.php
        class_img.php
        class_settings.php
        class_account.php
        class_apps_list.php
        class_app.php
    c3                                  //private module controllers
        claas_admin.php
        class_users.php
        class_editor.php
        class_member_roles.php
        class_img_editor.php
        class_page_editor.php

 With the folders in Alphanumeric order we can now organize everything within the build process according to breakdown. Sense we know our models, views and controllers are all  numbered, we can easily determine in which order they fall within the build process. Then the views are broken down into smaller segments to allow class sections to be implemented more dynamically in any order we choose.
A sample protected members module router class and how it list controllers and views in alphanumeric order:
  • c2/class_user_check.php    //redirect user before header//
  • v2/head.php
  • v2/horizonta_menu.php
  • c2/class_profile.php
  • v2/left_menu.php
  • c2/class_wallpost.php
  • v2/profile.php                //content page name//
  • c2/class_friends_list.php
  • v2/right_menu.php
  • c2/class_apps_list.php
  • v2/farright_menu.php
  • v2/footer.php
Now we pass all user variables, page names and links through each router module class as needed and you are done. It's that simple. EssenceOne is no more a Php framework than it is a very useful tool for dynamic Php web or social development within any build development. And does all this without having to use tons of unneeded and bulky scripts and classes as other Php Frameworks.

No comments:

Post a Comment