-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGETTING_STARTED
38 lines (30 loc) · 1.53 KB
/
GETTING_STARTED
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
* GETTING STARTED *
** BASIC INFO **
The Caspar framework is found in the caspar/ subfolder of the download (or in
the repository on github).
In addition to this, there are two other main folders:
* "application" - this is where your application is located, including routing
configuration, database configuration, class files, etc.
* "public" - this is the webroot folder. You can either set up url rewriting
so this folder is the documentroot for the server where your
application is located, or edit the public/index.php so the
basepath (CASPAR_PATH) is correct.
By default, Caspar expects the application/ subfolder to be located "next to"
the caspar/ folder. If you want to put the Caspar framework files in one
specific location, you can specify a custom CASPAR_APPLICATION_PATH f.ex. in
public/index.php.
It's a good idea to symlink the folders in application/resources to folders
inside the webroot (by default this is the public/ folder), so you have these
resources available from the webroot. A barebone public folder will then look
like this:
/public
- css -> ../application/resources/css
- js -> ../application/resources/js
- images -> ../application/resources/images
index.php
.htaccess
When this is set up, your application is self-contained within the application/
folder.
To get started, update application/configuration/caspar.yml and set the
core -> url setting to the correct url, then access this url via your web
browser and you should be all set.