Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
web-configuration.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
11 $hints = [
12  'base_url' => sprintf(
13  '<div><p>%s</p><p>%s</p></div>',
14  'Enter the base URL that brings shoppers to your store (Ex. http://example.com/).',
15  'Leave empty for automatic detection (not recommended for production environment).'
16  ),
17  'encrypt_key' => sprintf(
18  '<p>%s</p>',
19  'Key to encrypt sensitive data such as passwords and personally identifiable customer information in the Magento database. The encryption key is stored in [your Magento install dir]/app/etc/env.php'
20  ),
21  'admin' => sprintf(
22  '<p>%s</p>',
23  'A unique URL helps keep your store and customers safer. Use only letters, numbers, and underscore characters.'
24  )
25 ];
26 ?>
27 
28 <div class="page-web-configuration">
29 
30 <div class="nav-bar-outer-actions">
31  <div class="outer-actions-inner-wrap">
32  <div class="btn-wrap btn-wrap-triangle-right btn-wrap-next">
33  <button type="button" class="btn btn-prime" ng-click="validateUrl()" dis>Next</button>
34  </div>
35  <div class="btn-wrap btn-wrap-triangle-left btn-wrap-prev">
36  <button type="button" class="btn" ng-click="previousState()">Back</button>
37  </div>
38  </div>
39 </div>
40 
41 <h2 class="page-sub-title">{{$state.current.header}}</h2>
42 
43 <div
44  class="message message-error"
45  ng-show="validateUrl.failed !== undefined"
46 >
47  <span class="message-text">{{validateUrl.failed}}</span>
48 </div>
49 
50 <form
51  name="webconfig"
52  role="form"
53  novalidate
54  >
55 
56 <fieldset class="form-fieldset">
57 
58  <div
59  class="row form-row"
60  ng-class="{'has-error': webconfig.base_url.$invalid && webconfig.submitted}"
61  >
62  <div class="col-m-3">
63  <label class="form-label" for="baseUrl">
64  Your Store Address
65  </label>
66  </div>
67  <div class="col-m-4">
68  <input
69  id="baseUrl"
70  class="form-el-input"
71  type="url"
72  name="base_url"
73  ng-model="config.address.base_url"
74  ng-class="{'invalid': webconfig.base_url.$invalid && webconfig.submitted}"
75  ng-init="config.address.auto_base_url = '<?= $this->autoBaseUrl ?>'; fillBaseURL();"
76  ng-blur="addSlash()"
77  ng-change="populateHttps()"
78  ng-pattern="/^(https?:\/\/).*$/"
79  tooltip-placement="right"
80  tooltip-html-unsafe="<?= $hints['base_url'] ?>"
81  tooltip-trigger="focus"
82  tooltip-append-to-body="true"
83  >
84  <div class="error-container">
85  <span ng-show="!webconfig.base_url.valid
86  || webconfig.base_url.$error.required
87  || webconfig.base_url.$error.url"
88  >
89  Please enter a valid base URL path. (ex: http://www.example.com/)
90  </span>
91  </div>
92  </div>
93  </div>
94 
95  <div
96  class="row form-row"
97  ng-class="{'has-error': webconfig.admin.$invalid && webconfig.submitted}"
98  >
99  <div class="col-m-3">
100  <label class="form-label required" for="admin">
101  Magento Admin Address
102  </label>
103  </div>
104  <div class="col-m-4">
105  <div class="form-el-insider-wrap">
106  <div class="form-el-insider">
107  {{config.address.actual_base_url}}
108  </div>
109  <div class="form-el-insider-input">
110  <input
111  id="admin"
112  class="form-el-input"
113  type="text"
114  name="admin"
115  ng-pattern="/^[a-zA-Z0-9_]+$/"
116  ng-model="config.address.admin"
117  ng-class="{'invalid' : webconfig.admin.$invalid && webconfig.submitted }"
118  ng-init="config.address.admin = '<?= $this->autoAdminPath ?>';"
119  required
120  tooltip-placement="right"
121  tooltip-html-unsafe="<?= $hints['admin'] ?>"
122  tooltip-trigger="focus"
123  tooltip-append-to-body="true"
124  >
125  <div class="error-container">
126  <span ng-show="webconfig.admin.$error">
127  Please enter a valid admin URL path. Use only letters, numbers, and underscore characters.
128  </span>
129  </div>
130  </div>
131  </div>
132  </div>
133  </div>
134 
135 </fieldset>
136 
137 <fieldset class="form-fieldset">
138 
139  <legend
140  class="form-legend-expand"
141  ng-click="updateOnExpand(config.advanced)"
142  ng-class="{'expanded' : config.advanced.expanded}"
143  >
144  Advanced Options
145  </legend>
146 
147  <div ng-show="config.advanced.expanded">
148 
149  <div class="row form-row">
150  <div class="col-m-3">
151  <label class="form-label">
152  HTTPS Options
153  </label>
154  </div>
155  <div class="col-m-4">
156  <div class="form-row">
157  <input
158  id="httpsFront"
159  class="form-el-checkbox"
160  type="checkbox"
161  ng-model="config.https.front"
162  ng-checked="config.https.front"
163  >
164  <label class="form-label" for="httpsFront">
165  Use HTTPS for Magento Storefront
166  </label>
167  </div>
168  <div class="form-row">
169  <input
170  id="httpsAdmin"
171  class="form-el-checkbox"
172  type="checkbox"
173  ng-model="config.https.admin"
174  ng-checked="config.https.admin"
175  >
176  <label class="form-label" for="httpsAdmin">
177  Use HTTPS for Magento Admin
178  </label>
179  </div>
180  </div>
181  </div>
182 
183  <div class="row form-row" ng-show="showHttpsField()">
184  <div class="col-m-3">
185  <label
186  ng-show="config.https.front || config.https.admin"
187  class="form-label"
188  for="https"
189  >
190  Your HTTPS Store address:
191  </label>
192  </div>
193  <div class="col-m-4">
194  <input
195  id="https"
196  class="form-el-input"
197  type="url"
198  name="https"
199  ng-model="config.https.text"
200  ng-class="{'invalid': webconfig.https.$invalid && webconfig.submitted}"
201  ng-if="config.https.front || config.https.admin"
202  ng-focus=""
203  ng-pattern="/^(https?:\/\/).*$/"
204  required
205  >
206  <div class="error-container">
207  <span ng-show="!webconfig.https.$error.valid
208  || webconfig.https.$error.required
209  || webconfig.https.$error.url"
210  >
211  Please enter a valid HTTPS base URL path. (ex: https://www.example.com/)
212  </span>
213  </div>
214  </div>
215  </div>
216 
217  <div class="row form-row">
218  <div class="col-m-3">
219  <label class="form-label">
220  Apache Rewrites
221  </label>
222  </div>
223  <div class="col-m-4">
224  <input
225  id="apacheRewrites"
226  class="form-el-checkbox"
227  type="checkbox"
228  ng-model="config.rewrites.allowed"
229  >
230  <label class="form-label" for="apacheRewrites">
231  Use Apache Web Server Rewrites
232  </label>
233  </div>
234  </div>
235 
236  <div class="row form-row">
237  <div class="col-m-3">
238  <label class="form-label required">
239  Encryption Key
240  </label>
241  </div>
242  <div class="col-m-4">
243 
244  <div class="form-row">
245  <input
246  id="encryptionKey"
247  class="form-el-radio"
248  type="radio"
249  ng-model="config.encrypt.type"
250  value="magento"
251  >
252  <label class="form-label" for="encryptionKey">
253  I want to use a Magento generated key
254  </label>
255  </div>
256 
257  <div class="form-row">
258  <input
259  id="encryptionType"
260  class="form-el-radio"
261  type="radio"
262  ng-model="config.encrypt.type"
263  value="user"
264  >
265  <label class="form-label" for="encryptionType">
266  I want to use my own encryption key
267  </label>
268  </div>
269 
270  <div
271  class="form-row"
272  ng-class="{'has-error': webconfig.key.$invalid && webconfig.submitted}"
273  ng-if="showEncryptKey()"
274  >
275  <input
276  class="form-el-input"
277  type="text"
278  name="key"
279  ng-model="config.encrypt.key"
280  ng-class="{'invalid': webconfig.key.$invalid && webconfig.submitted}"
281  tooltip-placement="right"
282  tooltip-html-unsafe="<?= $hints['encrypt_key'] ?>"
283  tooltip-trigger="focus"
284  tooltip-append-to-body="true"
285  ng-minlength="4"
286  required
287  >
288  <div class="error-container">
289  <span ng-show="webconfig.key.$error.required">
290  You must enter an encryption key.
291  </span>
292  <span ng-show="webconfig.key.$error.minlength">
293  Your encryption key must be longer and stronger.
294  </span>
295  </div>
296  </div>
297 
298  </div>
299  </div>
300 
301  <div class="row form-row">
302  <div class="col-m-3">
303  <label class="form-label required">
304  Session Save
305  </label>
306  </div>
307  <div class="col-m-4">
308  <select
309  name="session"
310  class="form-el-select"
311  ng-model="config.sessionSave.type"
312  ng-class="{'invalid': webconfig.session.$invalid && webconfig.submitted}"
313  tooltip-placement="right"
314  tooltip-html-unsafe="The location of session. You can change this later in Magento Admin."
315  tooltip-trigger="focus"
316  tooltip-append-to-body="true"
317  >
318  <?php foreach ($this->sessionSave as $value):?>
319  <?= "<option value=\"" . $value . "\">" . ucfirst($value) . "</option>" ?>
320  <?php endforeach; ?>
321  </select>
322  </div>
323  </div>
324  </div>
325 
326 </fieldset>
327 
328 </form>
329 
330 </div>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$value
Definition: gender.phtml:16