pluf2

pluf2 Commit Details


Date:2008-11-14 01:53:55 (16 years 1 month ago)
Author:Loic d'Anterroches
Branch:master
Commit:4b263d8d2ee436a06c91a7eb495e6a1b8d4534c4
Parents: 680dfdcc7b762fddcc57cc70bd7bbb8616eb9b30
Message:Improved the default configuration of the Todo application.

Changes:

File differences

apps/todos/src/Todo/conf/todo.php-dist
2727
2828
2929
30
31
32
33
34
3530
3631
3732
3833
39
40
41
42
43
44
34
35
36
37
38
39
40
4541
4642
4743
......
4945
5046
5147
52
53
54
55
56
57
58
59
60
61
62
6348
6449
6550
......
7661
7762
7863
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
7989
// the templates each time during development
$cfg['debug'] = true;
// If your models are using models from applications outside of the
// base objects of the framework, you need to list them here.
// You need to include the name of the current application.
$cfg['installed_apps'] = array('Pluf', 'Todo');
// Base URL of the application. Note that it is not something like
// 'root_base' not to overwrite the base of another application when
// several application are running on the same host.
// No / at the end.
$cfg['todo_base'] = '/~loa/todo/index';
// View file of the Todo application. They can be hardcoded in the
// Dispatcher, but it is often better to have them in a separated file
// for readability.
$cfg['todo_urls'] = dirname(__FILE__).'/urls.php';
//
// If you access the index.php file in the www folder using the url:
// http://localhost/todos/www/index.php
// you must put:
// $cfg['todo_base'] = '/todos/www/index.php';
//
$cfg['todo_base'] = '/todos/www/index.php';
// Temporary folder where the script is writing the compiled templates,
// cached data and other temporary resources.
// It is mandatory if you are using the template system.
$cfg['tmp_folder'] = '/tmp';
// The folder in which the templates of the application are located.
$cfg['template_folders'] = array(dirname(__FILE__).'/../templates');
// Default mimetype of the document your application is sending.
// It can be overwritten for a given response if needed.
$cfg['mimetype'] = 'text/html';
$cfg['template_tags'] = array(
'url' => 'Pluf_Template_Tag_Url',
);
// Default database configuration. The database defined here will be
// directly accessible from Pluf::db() of course it is still possible
// to open any other number of database connections through Pluf_DB
// The reason of the db_version for MySQL is only for that.
$cfg['db_version'] = '';
$cfg['db_engine'] = 'SQLite';
// -- From this point you do not need to update anything --
// If your models are using models from applications outside of the
// base objects of the framework, you need to list them here.
// You need to include the name of the current application.
$cfg['installed_apps'] = array('Pluf', 'Todo');
// View file of the Todo application. They can be hardcoded in the
// Dispatcher, but it is often better to have them in a separated file
// for readability.
$cfg['todo_urls'] = dirname(__FILE__).'/urls.php';
// The folder in which the templates of the application are located.
$cfg['template_folders'] = array(dirname(__FILE__).'/../templates');
// Default mimetype of the document your application is sending.
// It can be overwritten for a given response if needed.
$cfg['mimetype'] = 'text/html';
$cfg['template_tags'] = array(
'url' => 'Pluf_Template_Tag_Url',
);
return $cfg;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05850s using 13 queries.