-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain-config.php
112 lines (110 loc) · 4.45 KB
/
main-config.php
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
'name' => 'Facebook Reflection',
// preloading 'log' component
'preload' => array('log', 'bootstrap'),
// autoloading model and component classes
'import' => array(
'application.models.*',
'application.components.*',
'application.components.Facebook-sdk4.*',
'ext.giix-components.*',
// 'ext.editable.*',
),
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'generatorPaths' => array(
'ext.giix-core', // giix generators
),
'password' => 'godgodgod',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters' => array('127.0.0.1', '::1'),
// 'generatorPaths' => array(
// 'bootstrap.gii',
// ),
),
),
// application components
'components' => array(
// 'bootstrap' => array(
// 'class' => 'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
// ),
'facebook' => array(
'class' => 'ext.yii-facebook-opengraph.SFacebook',
//'fileUpload'=>false, // needed to support API POST requests which send files
//'trustForwarded'=>false, // trust HTTP_X_FORWARDED_* headers ?
//'locale'=>'en_US', // override locale setting (defaults to en_US)
//'jsSdk'=>true, // don't include JS SDK
//'async'=>true, // load JS SDK asynchronously
//'jsCallback'=>false, // declare if you are going to be inserting any JS callbacks to the async JS SDK loader
//'status'=>true, // JS SDK - check login status
//'cookie'=>true, // JS SDK - enable cookies to allow the server to access the session
//'oauth'=>true, // JS SDK - enable OAuth 2.0
//'xfbml'=>true, // JS SDK - parse XFBML / html5 Social Plugins
//'frictionlessRequests'=>true, // JS SDK - enable frictionless requests for request dialogs
//'html5'=>true, // use html5 Social Plugins instead of XFBML
//'ogTags'=>array( // set default OG tags
//'title'=>'MY_WEBSITE_NAME',
//'description'=>'MY_WEBSITE_DESCRIPTION',
//'image'=>'URL_TO_WEBSITE_LOGO',
//),
),
'user' => array(
// enable cookie-based authentication
'allowAutoLogin' => true,
),
// uncomment the following to enable URLs in path-format
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
'db' => array(
'emulatePrepare' => true,
'charset' => 'utf8',
),
'errorHandler' => array(
// use 'site/error' action to display errors
'errorAction' => 'site/error',
),
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning, info',
),
// uncomment the following to show log messages on web pages
array(
'class' => 'CWebLogRoute',
'levels' => 'error, warning, info',
'showInFireBug' => false,
'ignoreAjaxInFireBug' => false,
),
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params' => array(
// this is used in contact page
// 'adminEmail' => '[email protected]',
'app_id' => '549567871741754', // needed for JS SDK, Social Plugins and PHP SDK
'app_secret' => 'c15a20dec1d41b78e9ef267814ac4c0f', // needed for the PHP SDK
'cookie' => true,
),
);