SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Guru ripcurlksm's Avatar
    Join Date
    Aug 2004
    Location
    San Clemente, CA
    Posts
    859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Website Starter Files

    I am thinking about making a website starter kit so to speak. It seems that I am constantly repeating elements on projects and I was wondering if anyone has created something similar or has any ideas to add.

    The file would be a .ZIP package that contains:

    Basic folder structure

    Code:
    /images/
    /connections/
    /includes/
    style.css
    index.php
    secondary-page.php
    To add a dynamic element to it, I would have an SQL file setup to have a basic user authentication system so that I could quickly roll out a user database with simple profile, forgot password and registration setup. It would also include a simple database setup with title and description that would be searchable.

    I figure with user auth and a simple search setup. Its easy to customize the tables in the database to expand on any concept.

    I am still working on (1) a simple CMS that is easy to build on, and (2) a PHP/MySQL Form creator/wizard to create custom forms through a panel instead of custom writing the scripts for every new site.

    Any additions or comments would be welcomed.

  2. #2
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do not forget a template folder
    Code:
    includes
        /templates
    According to the size of the projects you may also include:
    Code:
    includes
        /models
        /views
        /controllers

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I use a file system structure like this: (I keep the application out of the web root. Only a single PHP (index.php) file is put there.
    Code:
    +---logs
    |   +---admin
    |   \---public
    +---public
    |   |   .htaccess
    |   |   index.php
    |   \---store
    |       +---css
    |       +---image
    |       +---javascript
    |       \---media
    |            +---audio
    |            +---flash
    |            \---video
    \---system
        +---application
        |   +---admin
        |   |   +---[SUB_APPNAME]
        |   |   +---config
        |   |   +---controllers
        |   |   +---models
        |   |   \---views
        |   +---config
        |   \---public
        |       +---[SUB_APPNAME]
        |       +---config
        |       +---controllers
        |       +---models
        |       \---views
        +---library
        \---test
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Since we are on the subject I thought i'll share a simple little batch file i made to build my fs structure.

    Code:
    @ECHO OFF
    
    md logs
        md logs\admin
        md logs\public
    md public
        md public\store
            md public\store\css
                md public\store\css\admin
                md public\store\css\general
                md public\store\css\public
            md public\store\image
                md public\store\image\decrotive
                md public\store\image\function
                md public\store\image\layout
                    md public\store\image\layout\admin
                    md public\store\image\layout\general
                    md public\store\image\layout\public
            md public\store\javascript
            md public\store\media
                md public\store\media\audio
                md public\store\media\flash
                md public\store\media\video
    md source
    md system
        md system\application
        md system\library
            md system\application\admin
                md system\application\admin\config
                md system\application\admin\controller
                md system\application\admin\model
                md system\application\admin\view
            md system\application\config
            md system\application\public
                md system\application\public\config
                md system\application\public\controller
                md system\application\public\model
                md system\application\public\view
    md test
    
    echo #index.php > public\index.php
    echo #.htaccess > public\.htaccess
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Find the difference between what is needed and TOO much.

  6. #6
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Its called being generic, one can later add or remove portions of the structure ones does not need.

    Plus my own framework I'm slowly working on will make use of the structure to handle most of the configurations.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  7. #7
    SitePoint Guru ripcurlksm's Avatar
    Join Date
    Aug 2004
    Location
    San Clemente, CA
    Posts
    859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you handle forms and data collection? Do you create it from scratch or do you use a form creator or form editor to create forms and data collection without writing from scratch every time?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •