Fusca using CakePHP
Aus Mein Wiki
Sebra (Diskussion | Beiträge) (→multiple Apps with one core) |
Sebra (Diskussion | Beiträge) (→change the HOME(page)) |
||
Zeile 1: | Zeile 1: | ||
+ | == offline / printable manual == | ||
+ | * http://stackoverflow.com/questions/3044536/is-there-a-cakephp-offline-manual | ||
+ | |||
== multiple Apps with one core == | == multiple Apps with one core == | ||
Edit /cakeApp1/index.php (partial, comments removed) | Edit /cakeApp1/index.php (partial, comments removed) | ||
(This is the arrangement on my hosting account, yours may differ) | (This is the arrangement on my hosting account, yours may differ) | ||
- | + | if (!defined('ROOT')) { | |
- | + | define('ROOT', DS.'home'.DS.'username'.DS.'cakeApp1'); | |
- | + | } | |
- | + | if (!defined('APP_DIR')) { | |
- | + | define('APP_DIR',dirname('cakeApp1')); | |
- | + | } | |
- | + | if (!defined('CAKE_CORE_INCLUDE_PATH')) { | |
define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'username'.DS.'cake'); | define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'username'.DS.'cake'); | ||
- | + | } | |
* Source: http://www.virtualapplicationserver.com/CakePHP_MultipleInstallNotes.html | * Source: http://www.virtualapplicationserver.com/CakePHP_MultipleInstallNotes.html | ||
+ | |||
+ | == One Core, one App - multiple Domains == | ||
+ | * http://bakery.cakephp.org/articles/eimermusic/2009/02/18/one-core-one-app-multiple-domains | ||
+ | |||
+ | == change the HOME(page) == | ||
+ | The default loading page is static. To change this you can create an own 'PagesController' in Apps so the default PagesController from core will not be used anymore. Or you can change the default Router-Configuration in ''app/config/routes.php''. | ||
+ | * This should be the default: | ||
+ | Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); | ||
+ | |||
+ | * You can change in something like this: | ||
+ | Router::connect('/', array('controller' => 'news', 'action' => 'index')); |