mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-19 12:49:09 +00:00
- 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:
@@ -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');
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user