1 diff --git a/.gitignore b/.gitignore
7 +apps/todos/src/Todo/conf/todo.php
8 +tests/conf/pluf.config.php
9 diff --git a/apps/todos/src/Todo/conf/todo.php b/apps/todos/src/Todo/conf/todo.php
10 deleted file mode 100644
11 index 0e5f430..0000000
12 --- a/apps/todos/src/Todo/conf/todo.php
16 -/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
18 -# ***** BEGIN LICENSE BLOCK *****
19 -# This file is part of Plume Framework, a simple PHP Application Framework.
20 -# Copyright (C) 2001-2006 Loic d'Anterroches and contributors.
22 -# Plume Framework is free software; you can redistribute it and/or modify
23 -# it under the terms of the GNU Lesser General Public License as published by
24 -# the Free Software Foundation; either version 2.1 of the License, or
25 -# (at your option) any later version.
27 -# Plume Framework is distributed in the hope that it will be useful,
28 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
29 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 -# GNU Lesser General Public License for more details.
32 -# You should have received a copy of the GNU Lesser General Public License
33 -# along with this program; if not, write to the Free Software
34 -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
36 -# ***** END LICENSE BLOCK ***** */
40 -// Set the debug variable to true to force the recompilation of all
41 -// the templates each time during development
42 -$cfg['debug'] = true;
44 -// If your models are using models from applications outside of the
45 -// base objects of the framework, you need to list them here.
46 -// You need to include the name of the current application.
47 -$cfg['installed_apps'] = array('Pluf', 'Todo');
49 -// Base URL of the application. Note that it is not something like
50 -// 'root_base' not to overwrite the base of another application when
51 -// several application are running on the same host.
53 -$cfg['todo_base'] = '/~loa/todo/index';
55 -// View file of the Todo application. They can be hardcoded in the
56 -// Dispatcher, but it is often better to have them in a separated file
58 -$cfg['todo_urls'] = dirname(__FILE__).'/urls.php';
60 -// Temporary folder where the script is writing the compiled templates,
61 -// cached data and other temporary resources.
62 -// It must be writeable by your webserver instance.
63 -// It is mandatory if you are using the template system.
64 -$cfg['tmp_folder'] = '/tmp';
66 -// The folder in which the templates of the application are located.
67 -$cfg['template_folders'] = array(dirname(__FILE__).'/../templates');
69 -// Default mimetype of the document your application is sending.
70 -// It can be overwritten for a given response if needed.
71 -$cfg['mimetype'] = 'text/html';
73 -$cfg['template_tags'] = array(
74 - 'url' => 'Pluf_Template_Tag_Url',
77 -// Default database configuration. The database defined here will be
78 -// directly accessible from Pluf::db() of course it is still possible
79 -// to open any other number of database connections through Pluf_DB
80 -$cfg['db_login'] = '';
81 -$cfg['db_password'] = '';
82 -$cfg['db_server'] = '';
83 -$cfg['db_database'] = $cfg['tmp_folder'].'/todo.db';
85 -// Must be shared by all the installed_apps and the core framework.
86 -// That way you can have several installations of the core framework.
87 -$cfg['db_table_prefix'] = 'pluf_testapp_';
89 -// Starting version 4.1 of MySQL the utf-8 support is "correct".
90 -// The reason of the db_version for MySQL is only for that.
91 -$cfg['db_version'] = '';
92 -$cfg['db_engine'] = 'SQLite';
94 diff --git a/tests/conf/pluf.config.php b/tests/conf/pluf.config.php
95 deleted file mode 100644
96 index 93188ae..0000000
97 --- a/tests/conf/pluf.config.php
101 -/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
103 -# ***** BEGIN LICENSE BLOCK *****
104 -# This file is part of Plume Framework, a simple PHP Application Framework.
105 -# Copyright (C) 2001-2007 Loic d'Anterroches and contributors.
107 -# Plume Framework is free software; you can redistribute it and/or modify
108 -# it under the terms of the GNU Lesser General Public License as published by
109 -# the Free Software Foundation; either version 2.1 of the License, or
110 -# (at your option) any later version.
112 -# Plume Framework is distributed in the hope that it will be useful,
113 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
114 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
115 -# GNU Lesser General Public License for more details.
117 -# You should have received a copy of the GNU Lesser General Public License
118 -# along with this program; if not, write to the Free Software
119 -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
121 -# ***** END LICENSE BLOCK ***** */
125 -$cfg['test'] = false;
126 -$cfg['timezone'] = 'Europe/Berlin';
127 -// Set the debug variable to true to force the recompilation of all
128 -// the templates each time during development
129 -$cfg['debug'] = true;
130 -$cfg['installed_apps'] = array('Pluf');
131 -// Temporary folder where the script is writing the compiled templates,
132 -// cached data and other temporary resources.
133 -// It must be writeable by your webserver instance.
134 -// It is mandatory if you are using the template system.
135 -$cfg['tmp_folder'] = dirname(__FILE__).'/../tmp';
137 -// The folder in which the templates of the application are located.
138 -$cfg['templates_folder'] = array(dirname(__FILE__).'/../templates');
140 -$cfg['pluf_use_rowpermission'] = true;
142 -// Default mimetype of the document your application is sending.
143 -// It can be overwritten for a given response if needed.
144 -$cfg['mimetype'] = 'text/html';
146 -// Some views for testing.
147 -$cfg['app_views'] = dirname(__FILE__).'/views.php';
149 -// Default database configuration. The database defined here will be
150 -// directly accessible from Pluf::db() of course it is still possible
151 -// to open any other number of database connections through Pluf_DB
152 -$cfg['db_login'] = 'testpluf';
153 -$cfg['db_password'] = 'testpluf';
154 -$cfg['db_server'] = 'localhost';
155 -$cfg['db_database'] = dirname(__FILE__).'/../tmp/tmp.sqlite.db';
157 -$cfg['app_base'] = '/testapp';
158 -$cfg['url_format'] = 'simple';
160 -$cfg['template_tags'] = array(
161 - 'mytag' => 'Pluf_Template_Tag_Mytag',
164 -// Must be shared by all the installed_apps and the core framework.
165 -// That way you can have several installations of the core framework.
166 -$cfg['db_table_prefix'] = 'pluf_unit_tests_';
168 -// Starting version 4.1 of MySQL the utf-8 support is "correct".
169 -// The reason of the db_version for MySQL is only for that.
170 -$cfg['db_version'] = '5.0';
171 -$cfg['db_engine'] = 'SQLite';