- Creating cards now works. We use Open Sans to make texts beautiful

- Added card counts to default controller
- Load images from our basecards folder in assets
- Administration now includes card counts
- Other misc improvements
This commit is contained in:
Ismo Vuorinen
2013-07-16 19:02:40 +03:00
parent adaca5b8b2
commit fe84af8649
28 changed files with 965 additions and 109 deletions

View File

@@ -76,7 +76,7 @@ $autoload['libraries'] = array('database', 'session');
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('url', 'file');
$autoload['helper'] = array('url', 'file', 'text', 'directory', 'ecards');
/*

View File

@@ -41,6 +41,14 @@ define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
define('FONTPATH', APPPATH . 'fonts/');
define('HEADERTEXT', FONTPATH . 'Open_Sans/OpenSans-Bold.ttf');
define('BODYTEXT', FONTPATH . 'Open_Sans/OpenSans-Regular.ttf');
define('ASSETSPATH', FCPATH . 'assets/');
define('BASECARDS', ASSETSPATH . 'basecards/');
define('CARDPATH', ASSETSPATH . 'cards/');
/* End of file constants.php */

View File

@@ -49,10 +49,12 @@ $route['default_controller'] = "welcome";
$route['404_override'] = 'welcome/error404';
$route['uusi'] = $route['default_controller']."/newCard";
$route['tallenna'] = $route['default_controller']."/saveCard";
$route['kaikki'] = $route['default_controller']."/ecards";
$route['ecards'] = $route['default_controller']."/ecards";
$route['ecards/(:any)'] = $route['default_controller']."/ecards/$1";
$route['info'] = $route['default_controller']."/info";
$route['preview/(:any)'] = $route['default_controller']."/preview/$1";
/* End of file routes.php */
/* Location: ./application/config/routes.php */