Changeset 1185 for trunk/config

Show
Ignore:
Timestamp:
10/07/08 11:03:16 (2 months ago)
Author:
arnoschn
Message:

WARNING: IMPORTANT CHANGES AHEAD!

Using this version requires you do manually add/change files/folders to existing applications.

Merging Caching Branch into trunk:

New features:

1. Configuration

1.1. Yaml Configuration (see inline doc at: http://svn.akelos.org/trunk/lib/AkConfig.php)

2. Caching (see inline doc at: http://svn.akelos.org/trunk/lib/AkActionController/AkCacheHandler.php)

2.1 Memcache Cache Handler
2.2 Page Caching
2.3 Action Caching
2.4 Fragment Caching
2.5 Cache Sweepers

3. ActiveRecord?

3.1 toXml (RoR style) (see inline doc at: http://svn.akelos.org/trunk/lib/AkActiveRecord.php)
3.2 fromXml
3.3 toJson (RoR style) (see inline doc at: http://svn.akelos.org/trunk/lib/AkActiveRecord.php)
3.4 fromJson
3.5 AkDbSchemaCache?

4. ActionController?

4.1 respondToFormat (see inline doc at: http://svn.akelos.org/trunk/lib/AkActionController.php)

5. Functional Testing (AkTestApplication?) (see example usage in: http://svn.akelos.org/trunk/test/unit/lib/AkActionController/_page_caching.php)

Refactoring / Improvements:

6. Unit Testing Fixtures

class AkSomeTest? extends AkUnitTest?
{
/**

  • grabs AK_BASE_DIR/test/fixtures/data/posts.yaml and inserts the data in the db
  • example:

  • posts.yaml:
  • entry1:
  • id: 1
  • name: test1
  • entry2:
  • id: 2
  • name: test2

  • model instances are available via $this->posts['entry1] and $this->posts['entry2]
    */
    var $fixtures = 'posts';


...

}

7. AkSession?


Session handling can now be configured via config/sessions.yml.
Besides file storage you can use Memcache or Db Storage for sessions.

8. AkPluginInstaller?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:ignore changed from
      tmp/*
      to
      .project
  • trunk/config

    • Property svn:ignore set to
      plugin_repositories.txt
      config.php
      routes.php
      cache
      ci-config.php
      ci-config.yaml
      mysql.yml
      postgres.yml
      sqlite.yml
  • trunk/config/DEFAULT-config.php

    r290 r1185  
    11<?php 
    2  
    3 $database_settings = array( 
    4     'production' => array( 
    5         'type' => 'mysql', // mysql, sqlite or pgsql 
    6         'database_file' => '/home/bermi/database.sqlite', // you only need this for SQLite 
    7         'host' => 'localhost', 
    8         'port' => '', 
    9         'database_name' => '', 
    10         'user' => '', 
    11         'password' => '', 
    12         'options' => '' // persistent, debug, fetchmode, new 
    13     ), 
    14      
    15     'development' => array( 
    16         'type' => 'mysql', 
    17         'database_file' => '', 
    18         'host' => 'localhost', 
    19         'port' => '', 
    20         'database_name' => '', 
    21         'user' => '', 
    22         'password' => '', 
    23         'options' => '' 
    24     ), 
    25      
    26     // Warning: The database defined as 'testing' will be erased and 
    27     // re-generated from your development database when you run './script/test app'. 
    28     // Do not set this db to the same as development or production. 
    29     'testing' => array( 
    30         'type' => 'mysql', 
    31         'database_file' => '', 
    32         'host' => 'localhost', 
    33         'port' => '', 
    34         'database_name' => '', 
    35         'user' => '', 
    36         'password' => '', 
    37         'options' => '' 
    38     ) 
    39 ); 
    40  
     2/** 
     3 * Database configuration in database.yml 
     4 */ 
    415// If you want to write/delete/create files or directories using ftp instead of local file 
    426// access, you can set an ftp connection string like: 
  • trunk/config/caching.yml

    r1084 r1185  
    44        type: 1 #1=PEAR,2=AdoDB,3=Memcache 
    55        options:  
    6                 cacheDir: ${AK_TMP_DIR} 
     6                cacheDir: ${AK_TMP_DIR}/cache 
     7                hashedDirectoryLevel: 2 
  • trunk/config/locales/en.php

    r400 r1185  
    55$locale['charset'] = 'UTF-8'; 
    66$locale['date_time_format'] = 'Y-m-d H:i:s'; 
     7$locale['db_date_time_format'] = 'Y-m-d H:i:s'; 
    78$locale['date_format'] = 'Y-m-d'; 
    89$locale['long_date_format'] = 'Y-m-d'; 
  • trunk/config/locales/es.php

    r400 r1185  
    55$locale['charset'] = 'UTF-8'; 
    66$locale['date_time_format'] = 'd/m/Y H:i:s'; 
     7$locale['db_date_time_format'] = 'Y-m-d H:i:s'; 
    78$locale['date_format'] = 'd/m/Y'; 
    89$locale['long_date_format'] = 'd/m/Y'; 
  • trunk/config/locales/ja.php

    r409 r1185  
    55$locale['charset'] = 'UTF-8'; 
    66$locale['date_time_format'] = 'Y-m-d H:i:s'; 
     7$locale['db_date_time_format'] = 'Y-m-d H:i:s'; 
    78$locale['date_format'] = 'Y-m-d'; 
    89$locale['long_date_format'] = 'Y-m-d'; 
  • trunk/config/mailer.yml

    r977 r1185  
    1 server_settings:  
    2   address: smtp.gmail.com 
    3   port: 587 
    4   domain: localhost 
    5   user_name: username@gmail.com 
    6   password: 1234 
    7   authentication: login 
     1default: 
     2    server_settings:  
     3      address: smtp.gmail.com 
     4      port: 587 
     5      domain: localhost 
     6      user_name: username@gmail.com 
     7      password: 1234 
     8      authentication: login