ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CodeBurn : Codeigniter + xajax + doctrine + smarty + curl ... more

May 21, 2010 3:14pm

Subscribe [1]
  • #1 / May 21, 2010 3:14pm

    OliverHR

    137 posts

    Here is this, is a mixture of libraries and settings I used for some of my projects.

    Includes:
    -1.7.1-Codeigniter
    -Xajax 0.5-final
    -1.0.9-Doctrine
    -Modular Extensions (merged with CI)

    I do not use models but you can use general in common folder for whole apps, or in each application or module for each application module, same as libraries, ORM use the folder there you can find the fixtures and a SQL file. You can use different default databases for each app.

    The concept is Modular extension but with a Common folder with libraries, models, helpers, plugins and views. More closer to HMVC.

    database: (what you set up in) applications/*applicationame*/config/database.php
    table: user

    Example file for using the Doctrine on the terminal:

    php frontend doctrine build-all

    in windows:

    php doctrine doctrineoptions applicationname

    in unix:

    applicationname doctrine doctrineoptions

    If you get an error flag, change the first line in Doctrine file that points to the binaries of php.

    The site use the htdocs as root then you must set up a virtualhost. Then you can:

    http://localhost/
    http://localhost/backend/

    Hope you like, no big deal but usefull and I want to share it.


    The zip file:

    codeburn.zip
    http://www.mediafire.com/file/hwnzgnnwoyy/codeburn.zip

  • #2 / May 21, 2010 6:34pm

    OliverHR

    137 posts

    File structure:

    /htdocs/
           ----/js/
           ----/images/
           ----/css/
           ----/.htaccess
           ----/index.php (codeigniter bootstrap php file)
           ----/backend   (codeigniter bootstrap php file for backend application)
           ----/xajax_js/
    /system/ (codeigniter system)
    /libs/ (like kohana 2 vendor folder)
    /common/
            ----/models/
            ----/libraries/
            ----/views/
            ----/plugins/
            ----/helpers/
    /applications/
                 ----/app3/
                 ----/app3/
                 ----/appetc/   (you can setup multiple applications)
                 ----/frontend/ (default application)
                 ----/backend/

    the application structure is the same as codeignter with modular extensions and a doctrine ORM folder

    /views
    /models/
    /controllers/
    /modules/
    /etc../


    Samples fully functionals.

  • #3 / May 24, 2010 6:06pm

    ElToro

    16 posts

    -1.7.1-Codeigniter

    Just curious, why 1.7.1 version and not the latest?

  • #4 / May 25, 2010 12:25pm

    OliverHR

    137 posts

    Just curious, why 1.7.1 version and not the latest?

    Is just beacuse when I work with this configuration 1.7.1 was the top version of CI.

    I post this file to the show that anyone can make a big hierarchical application with CodeIgniter. And to show the use and configuration of Xajax, Smarty and Doctrine with working samples.

    I build an application for a customer and he needs a front application and a backend, later he needs to expand this applications with others then this was my solution.

    Then anyone can download this base config, play learn and improve. (maybe trying to do this with 1.7.2)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases