This repository has been archived by the owner on Sep 13, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created configs dir and included user inflections, routes and databas…
…e settings Finished paths.php and started dispatcher.php
- Loading branch information
Showing
8 changed files
with
703 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* sunFW(tm) : PHP Web Development Framework (http://www.suncoding.com) | ||
* Copyright 2010, Sun Web Dev, Inc. | ||
* | ||
* Licensed under The GPLv3 License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright 2010, Sun Web Dev, Inc. (http://www.suncoding.com) | ||
* @version 1.0.0 | ||
* @modifiedby Pavan Kumar Sunkara | ||
* @lastmodified Apr 10, 2010 | ||
* @license GPLv3 | ||
*/ | ||
|
||
define('DB_HOST', 'localhost'); | ||
|
||
define('DB_USER', 'user'); | ||
|
||
define('DB_PASS', 'password'); | ||
|
||
define('DB_NAME', 'database_name'); | ||
|
||
define('DB_PREFIX', 'prefix_'); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
/** | ||
* sunFW(tm) : PHP Web Development Framework (http://www.suncoding.com) | ||
* Copyright 2010, Sun Web Dev, Inc. | ||
* | ||
* Licensed under The GPLv3 License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright 2010, Sun Web Dev, Inc. (http://www.suncoding.com) | ||
* @version 1.0.0 | ||
* @modifiedby Pavan Kumar Sunkara | ||
* @lastmodified Apr 10, 2010 | ||
* @license GPLv3 | ||
*/ | ||
|
||
/** | ||
* This is a key => value array of regex used to match words. | ||
* If key matches then the value is returned. | ||
* | ||
* $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice'); | ||
*/ | ||
$pluralRules = array(); | ||
|
||
/** | ||
* This is a key only array of plural words that should not be inflected. | ||
* Notice the last comma | ||
* | ||
* $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox'); | ||
*/ | ||
$uninflectedPlural = array(); | ||
|
||
/** | ||
* This is a key => value array of plural irregular words. | ||
* If key matches then the value is returned. | ||
* | ||
* $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers') | ||
*/ | ||
$irregularPlural = array(); | ||
|
||
/** | ||
* This is a key => value array of regex used to match words. | ||
* If key matches then the value is returned. | ||
* | ||
* $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i') | ||
*/ | ||
$singularRules = array(); | ||
|
||
/** | ||
* This is a key only array of singular words that should not be inflected. | ||
* You should not have to change this value below if you do change it use same format | ||
* as the $uninflectedPlural above. | ||
*/ | ||
$uninflectedSingular = $uninflectedPlural; | ||
|
||
/** | ||
* This is a key => value array of singular irregular words. | ||
* Most of the time this will be a reverse of the above $irregularPlural array | ||
* You should not have to change this value below if you do change it use same format | ||
* | ||
* $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother') | ||
*/ | ||
$irregularSingular = array_flip($irregularPlural); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* sunFW(tm) : PHP Web Development Framework (http://www.suncoding.com) | ||
* Copyright 2010, Sun Web Dev, Inc. | ||
* | ||
* Licensed under The GPLv3 License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright 2010, Sun Web Dev, Inc. (http://www.suncoding.com) | ||
* @version 1.0.0 | ||
* @modifiedby Pavan Kumar Sunkara | ||
* @lastmodified Apr 10, 2010 | ||
* @license GPLv3 | ||
*/ | ||
|
||
/** | ||
* Here, we are connecting '/' (base path) to controller called 'Pages' and action 'home' | ||
* (in this case, /app/views/pages/home.ctp)... | ||
*/ | ||
Router::connect('/', array('controller' => 'pages', 'action' => 'home')); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.