Changeset 19814
- Timestamp:
- 09/24/08 17:52:14 (5 years ago)
- Location:
- events/phpframework/akelos/trunk
- Files:
-
- 22 added
- 4 modified
-
app/controllers/user_controller.php (added)
-
app/helpers/user_helper.php (added)
-
app/installers/_installer.php (added)
-
app/installers/user_installer.php (added)
-
app/models/.php (added)
-
app/models/user.php (added)
-
app/views/layouts/user.tpl (added)
-
app/views/user (added)
-
app/views/user/_form.tpl (added)
-
app/views/user/add.tpl (added)
-
app/views/user/destroy.tpl (added)
-
app/views/user/edit.tpl (added)
-
app/views/user/listing.tpl (added)
-
app/views/user/show.tpl (added)
-
config/config.php (modified) (2 diffs)
-
config/locales/en.php (modified) (1 diff)
-
config/locales/en_us.php (added)
-
config/locales/ja.php (modified) (1 diff)
-
config/routes.php (modified) (1 diff)
-
test/fixtures/app/installers/_installer.php (added)
-
test/fixtures/app/models/.php (added)
-
test/unit/app (added)
-
test/unit/app/models (added)
-
test/unit/app/models/.php (added)
-
test/unit/app/models/user.php (added)
-
tmp/installer_versions/development_user_version.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/akelos/trunk/config/config.php
r19800 r19814 52 52 // Please be aware that your charset needs to be UTF-8 in order to edit the locales files 53 53 // auto will enable all the locales at config/locales/ dir 54 define('AK_AVAILABLE_LOCALES', ' en,ja,en_us');54 define('AK_AVAILABLE_LOCALES', 'ja,en'); 55 55 56 56 // Use this in order to allow only these locales on web requests 57 define('AK_ACTIVE_RECORD_DEFAULT_LOCALES', ' en,ja,en_us');58 define('AK_APP_LOCALES', ' en,ja,en_us');59 define('AK_PUBLIC_LOCALES', ' en,ja,en_us');57 define('AK_ACTIVE_RECORD_DEFAULT_LOCALES', 'ja,en'); 58 define('AK_APP_LOCALES', 'ja,en'); 59 define('AK_PUBLIC_LOCALES', 'ja,en'); 60 60 61 61 // The web configuration wizard could not detect if you have mod_rewrite enabled. … … 63 63 // defined('AK_URL_REWRITE_ENABLED') ? null : define('AK_URL_REWRITE_ENABLED', true); 64 64 65 // defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', null);65 defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', dirname(dirname(__FILE__))); 66 66 67 67 include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'boot.php'); -
events/phpframework/akelos/trunk/config/locales/en.php
r18146 r19814 161 161 Available generator are:'; 162 162 163 // 2008-09-24 11:01:00 164 165 166 $dictionary['Please add --force to the argument list in order to overwrite existing files.'] = 'Please add --force to the argument list in order to overwrite existing files.'; 167 168 // 2008-09-24 14:29:29 169 170 171 $dictionary[' 172 You must supply a valid installer name like : 173 '] = ' 174 You must supply a valid installer name like : 175 '; 176 $dictionary[' 177 > ./script/migrate my_installer_name install 178 179 '] = ' 180 > ./script/migrate my_installer_name install 181 182 '; 183 $dictionary[' Available installers are: 184 185 '] = ' Available installers are: 186 187 '; 188 189 // 2008-09-24 14:29:37 190 191 192 $dictionary['Description: 193 Database migrations is a sort of SCM like subversion, but for database settings. 194 195 The migration command takes the name of an installer located on your 196 /app/installers folder and runs one of the following commands: 197 198 - "install" + (options version number): Will update to the provided version 199 number or to the latest one in no version is given. 200 201 - "uninstall" + (options version number): Will downgrade to the provided 202 version number or to the lowest one in no version is given. 203 204 Current version number will be sorted at app/installers/installer_name_version.txt. 205 206 Example: 207 >> migrate framework install 208 209 Will run the default database schema for the framework. 210 This generates the tables for handling database driven sessions and cache. 211 212 '] = 'Description: 213 Database migrations is a sort of SCM like subversion, but for database settings. 214 215 The migration command takes the name of an installer located on your 216 /app/installers folder and runs one of the following commands: 217 218 - "install" + (options version number): Will update to the provided version 219 number or to the latest one in no version is given. 220 221 - "uninstall" + (options version number): Will downgrade to the provided 222 version number or to the lowest one in no version is given. 223 224 Current version number will be sorted at app/installers/installer_name_version.txt. 225 226 Example: 227 >> migrate framework install 228 229 Will run the default database schema for the framework. 230 This generates the tables for handling database driven sessions and cache. 231 232 '; 233 234 // 2008-09-24 14:29:45 235 236 237 $dictionary[' 238 239 Could not locate the installer file %file 240 241 '] = ' 242 243 Could not locate the installer file %file 244 245 '; 246 247 // 2008-09-24 14:29:54 248 249 250 $dictionary['Can\'t go up to version %version, you\'re already on version %version'] = 'Can\'t go up to version %version, you\'re already on version %version'; 251 252 // 2008-09-24 14:30:02 253 254 255 $dictionary['Downgrading'] = 'Downgrading'; 256 257 // 2008-09-24 16:45:22 258 259 260 $dictionary['Could not create or alter table %name using the SQL 261 -------- 262 %sql 263 -------- 264 '] = 'Could not create or alter table %name using the SQL 265 -------- 266 %sql 267 -------- 268 '; 269 163 270 164 271 ?> -
events/phpframework/akelos/trunk/config/locales/ja.php
r18146 r19814 159 159 有効なジェネレータ:'; 160 160 161 // 2008-09-24 11:01:00 162 163 164 $dictionary['Please add --force to the argument list in order to overwrite existing files.'] = 'Please add --force to the argument list in order to overwrite existing files.'; 165 166 // 2008-09-24 14:29:29 167 168 169 $dictionary[' 170 You must supply a valid installer name like : 171 '] = ' 172 You must supply a valid installer name like : 173 '; 174 $dictionary[' 175 > ./script/migrate my_installer_name install 176 177 '] = ' 178 > ./script/migrate my_installer_name install 179 180 '; 181 $dictionary[' Available installers are: 182 183 '] = ' Available installers are: 184 185 '; 186 187 // 2008-09-24 14:29:37 188 189 190 $dictionary['Description: 191 Database migrations is a sort of SCM like subversion, but for database settings. 192 193 The migration command takes the name of an installer located on your 194 /app/installers folder and runs one of the following commands: 195 196 - "install" + (options version number): Will update to the provided version 197 number or to the latest one in no version is given. 198 199 - "uninstall" + (options version number): Will downgrade to the provided 200 version number or to the lowest one in no version is given. 201 202 Current version number will be sorted at app/installers/installer_name_version.txt. 203 204 Example: 205 >> migrate framework install 206 207 Will run the default database schema for the framework. 208 This generates the tables for handling database driven sessions and cache. 209 210 '] = 'Description: 211 Database migrations is a sort of SCM like subversion, but for database settings. 212 213 The migration command takes the name of an installer located on your 214 /app/installers folder and runs one of the following commands: 215 216 - "install" + (options version number): Will update to the provided version 217 number or to the latest one in no version is given. 218 219 - "uninstall" + (options version number): Will downgrade to the provided 220 version number or to the lowest one in no version is given. 221 222 Current version number will be sorted at app/installers/installer_name_version.txt. 223 224 Example: 225 >> migrate framework install 226 227 Will run the default database schema for the framework. 228 This generates the tables for handling database driven sessions and cache. 229 230 '; 231 232 // 2008-09-24 14:29:45 233 234 235 $dictionary[' 236 237 Could not locate the installer file %file 238 239 '] = ' 240 241 Could not locate the installer file %file 242 243 '; 244 245 // 2008-09-24 14:29:54 246 247 248 $dictionary['Can\'t go up to version %version, you\'re already on version %version'] = 'Can\'t go up to version %version, you\'re already on version %version'; 249 250 // 2008-09-24 14:30:02 251 252 253 $dictionary['Downgrading'] = 'Downgrading'; 254 255 // 2008-09-24 16:45:22 256 257 258 $dictionary['Could not create or alter table %name using the SQL 259 -------- 260 %sql 261 -------- 262 '] = 'Could not create or alter table %name using the SQL 263 -------- 264 %sql 265 -------- 266 '; 267 268 161 269 ?> -
events/phpframework/akelos/trunk/config/routes.php
r19707 r19814 4 4 5 5 $Map->connect('/:controller/:action/:id', array('controller' => 'page', 'action' => 'index')); 6 $Map->connect('/', array('controller' => ' page', 'action' => 'index'));6 $Map->connect('/', array('controller' => 'users', 'action' => 'home')); 7 7 8 8 ?>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)