-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
54 lines (39 loc) · 1.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
::: INSTALLING
Temporary instructions for installing
Most things in this document should be done by install scripts
FOLDER CREATION
./app/data/output
./app/data/output/cache (make writable for php on unix/linux/mac systems
CONFIG
./config.local.php
<?php
$config = array(
'database' => array(
'type' => 'mysql',
'user' => 'heidi',
'password' => 'klum',
'name' => 'stallcount9',
'host' => '127.0.0.1'),
'skin' => 'default'
);
::: PROGRAMMING
AUTOLOADING
Classes are autoloaded if you use the following convention:
class name: SC9_Controller_Home
class file: lib/SC9/Controller/Home.php
ADDING MODELS
edit the ./app/build/schema/base.yml file to add your model info.
next run (from commandline) php ./generate.php
This will create (or update) your models in ./app/lib/SC9/Model
These files are generated but can be committed.
more info at: http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files/en
and for yaml, keep in mind, don't use TAB's but use 2 spaces: http://en.wikipedia.org/wiki/Yaml
FIXTURES
fixtures are prefilled sets of data, more info later.
ADDING SITE SECTIONS
urls are automatically mapped to corresponding controllers located in
./app/lib/SC9/Controller/
The url index.php?n=/contact/nfb will load the class SC9_Controller_Contact (file: Contact.php)
and call the method "nfbAction($req)"
Convention: each section controller should use the similar named folder in skin/default
for its templates.