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 03-26-2009, 09:01 PM   #1 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default Critique the framework I use

The framework I use is very small but flexible, I don't plan to release it but I'd like some criticism from fellow developers as to whether I'm using OOP concepts correctly and such things.

The framework follows a very slack MVC model, infact the model and controller are one in the same at this point and perhaps later on will be separated into their own entities.

The reasons for two libraries folders is to separate the libraries I and the framework use through out every job such as session management and database access and libraries which are unique to the job. Same with Helpers & Config files.

Thanks in advance!

PLEASE DOWNLOAD THE COPY IN MY LAST POST

P.S The most important files in the framework are in /Core/Contstruction
Attached Files
File Type: zip tsa.zip (56.9 KB, 49 views)

Last edited by Enfernikus : 04-02-2009 at 12:19 AM.
Enfernikus is offline  
Reply With Quote
Old 03-26-2009, 09:59 PM   #2 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

It looks very interesting, I'll try and take a closer look some time soon.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 03-27-2009, 06:28 PM   #3 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Looks very nice at the first glance. I'll take a look tommorrow probably and I'll share my oppinions, if I may :D

PS: I advise you to loose the PHP closing tag at the end of the file. Believe me, it will save you alot of trouble in the future, as the project grows :)
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 03-27-2009, 06:50 PM   #4 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

Quote:
Originally Posted by xenon View Post
Looks very nice at the first glance. I'll take a look tommorrow probably and I'll share my oppinions, if I may :D

PS: I advise you to loose the PHP closing tag at the end of the file. Believe me, it will save you alot of trouble in the future, as the project grows :)
Of course! I want to know especially if the way I'm loading objects is efficient and could be improved. For those who want to know how I do it without looking at the code. I use the Registry pattern ( Misnamed Factory in my script ) to store objects. The controller object's library call is simply a wrapper for Factory's getLibrary function.
Enfernikus is offline  
Reply With Quote
Old 04-02-2009, 12:18 AM   #5 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

I have made some additions to my framework and would like anyone who looks at this new copy to also see my routing method located in

/Core/Construction/CoreOO.php
/Core/Construction/Route.php


Dynamic routing works like spo

PHP Code:
$cfg['routing']['url']['products/:alphanum']  = 'store/products/:result';
$cfg['routing']['url']['product\/[a-z]'] = 'store/products/$1';
$cfg['routing']['url']['categories/:num/:alphanum-:num']  = 'store/categories/:result/:result/:result'
the current dynamic routing supports regex and a limited number of wild cars:

:num
:alpha
:alphanum
:any

Regular routing works so

PHP Code:
$cfg['routing']['url']['blogs/joe']  = 'store/blogs/joe'
Attached Files
File Type: zip tsa.zip (69.6 KB, 32 views)
Enfernikus 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
Zend Framework Tanax General 21 03-23-2009 07:07 PM
Zoop Framework 1.5 released bobthecow Libraries & Extensions 3 11-02-2008 06:54 PM
Framework or no framework? tego10122 General 4 10-22-2008 12:46 AM
Tutorial to create own framework Tanax Advanced PHP Programming 11 10-20-2008 06:02 PM
Framework Rendair Javascript, AJAX, E4X 1 03-09-2008 10:28 PM


All times are GMT. The time now is 03:29 PM.

 
     

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