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-18-2009, 12:04 AM   #1 (permalink)
The Contributor
 
hello-world's Avatar
 
Join Date: Feb 2009
Posts: 73
Thanks: 30
hello-world is on a distinguished road
Default the index File.

How this file should be code ?
Whenever I open the index file of any CMS. For me everything is new. There are lots of Constanst.
hello-world is offline  
Reply With Quote
Old 03-18-2009, 02:45 AM   #2 (permalink)
The Contributor
 
Join Date: Feb 2009
Posts: 65
Thanks: 0
Krik is on a distinguished road
Default

Usually the index file is just the basics. But it does depends on what your doing.

A CMS is a very large project and how they set it up will vary greatly from a smaller project.

Generally I use the index file to set the base HTML layout of a site. It will include the CSS, Javascript, PHP pages. These pages of code then determine what content will be displayed, and how it will be displayed, in the different sections of the index page.

So while my index page may be less than 200 lines of code usually I have 7 to 15 other pages (sometimes more) of code that are included inside of it and they can be anywhere form 200 to 1000 lines of code that determine what content is displayed in the various sections of the index page.

Unless the whole site is 5 or so pages I usually have no content displayed with just the index page.
Krik is offline  
Reply With Quote
The Following User Says Thank You to Krik For This Useful Post:
hello-world (03-19-2009)
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
Easy to Modify Login Script with Hierarchical User Permissions and XML Account File Wildhoney Script Giveaway 4 05-04-2011 06:11 AM
Where is my file? superthin General 3 07-25-2009 09:48 AM
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


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