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 01-13-2009, 10:20 PM   #1 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default File Structure Change (once again since creation)

After reviewing the file structure, I have decided to remove the implementation layer and place it in the main files. All the design abstraction is in the templates, so adding another layer between the file itself and the implemented code is silly. The folder structure for code is currently:

[script root]/:
This is were the front end files are actually located, the inline code that actually does the stuff is located here.

core/:
This is where the class and core logic files are located. These are strictly functions and classes, absolutely no inline code is allowed in these files.

style/:
This is where client side files such as javascript and CSS are located.

templates/:
Where the smarty templates are located. Smarty script files are in the core directory.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-14-2009, 09:18 AM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Why smarty? I don't like it. :( I mean, we can always use that XML Engine called PHPTAL, although I'd like to make one myself, but why .. reinvent the wheel...
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-14-2009, 01:56 PM   #3 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Because it is very straight forward and easy to use. I also don't like PHPTAL because it functions too much as a programming language. While smarty gives you the ability to do most of that, it is not nearly as integrated. Templating is merely a way to separate code logic from design, not to add another layer of processing to have to think through during debugging.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-15-2009, 12:34 AM   #4 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
Because it is very straight forward and easy to use. I also don't like PHPTAL because it functions too much as a programming language. While smarty gives you the ability to do most of that, it is not nearly as integrated. Templating is merely a way to separate code logic from design, not to add another layer of processing to have to think through during debugging.
Oh well, at least I don't have to work with it on this project so yay!
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-15-2009, 12:43 AM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I'll try to assign you apart from it if you wish, but I make no promises.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-15-2009, 12:45 AM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
I'll try to assign you apart from it if you wish, but I make no promises.
Well I want to make/finish that config class before I work on something else.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-15-2009, 03:01 AM   #7 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I know, I'm talking in the future.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-22-2013, 03:30 AM   #8 (permalink)
The Visitor
 
Join Date: Jan 2013
Posts: 1
Thanks: 0
abigail is on a distinguished road
Default

I don't like it.
abigail 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
Where is my file? superthin General 3 07-25-2009 09:48 AM
Databse structure Village Idiot TalkPHP Developer Team 3 01-16-2009 10:31 PM
Aptana Jaxer and file uploads xenon Advanced PHP Programming 2 06-06-2008 10:22 AM
Writing to XML file buildakicker General 8 02-06-2008 08:17 PM
checking file extensions. How can I change this? Sam Granger Javascript, AJAX, E4X 5 12-09-2007 04:51 PM


All times are GMT. The time now is 10:41 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