ソースを参照

Composer y autoload-vendor

Christian 3 年 前
コミット
6dc297b248
共有5 個のファイルを変更した52 個の追加28 個の削除を含む
  1. 46 23
      .vscode/launch.json
  2. 1 1
      application/config/autoload.php
  3. 2 2
      application/config/config.php
  4. 3 2
      composer.json
  5. BIN
      name-of-the-generated-file.xlsx

+ 46 - 23
.vscode/launch.json ファイルの表示

@@ -1,25 +1,48 @@
1 1
 {
2
-  "version": "0.2.0",
3
-  "configurations": [
4
-    {
5
-      "name": "Listen for XDebug",
6
-      "type": "php",
7
-      "request": "launch",
8
-      "port": 9003,
9
-      "xdebugSettings": {
10
-        "max_children": 999,
11
-      },
12
-      "pathMappings": {
13
-        "/shared/httpd/rielchyc/htdocs": "${workspaceFolder}/htdocs"
14
-      }
15
-    },
16
-    {
17
-      "name": "Launch currently open script",
18
-      "type": "php",
19
-      "request": "launch",
20
-      "program": "${file}",
21
-      "cwd": "${fileDirname}",
22
-      "port": 9003
23
-    }
24
-  ]
2
+    // Use IntelliSense para saber los atributos posibles.
3
+    // Mantenga el puntero para ver las descripciones de los existentes atributos.
4
+    // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
5
+    "version": "0.2.0",
6
+    "configurations": [
7
+        {
8
+            "name": "Listen for Xdebug",
9
+            "type": "php",
10
+            "request": "launch",
11
+            "port": 9003
12
+        },
13
+        {
14
+            "name": "Launch currently open script",
15
+            "type": "php",
16
+            "request": "launch",
17
+            "program": "${file}",
18
+            "cwd": "${fileDirname}",
19
+            "port": 0,
20
+            "runtimeArgs": [
21
+                "-dxdebug.start_with_request=yes"
22
+            ],
23
+            "env": {
24
+                "XDEBUG_MODE": "debug,develop",
25
+                "XDEBUG_CONFIG": "client_port=${port}"
26
+            }
27
+        },
28
+        {
29
+            "name": "Launch Built-in web server",
30
+            "type": "php",
31
+            "request": "launch",
32
+            "runtimeArgs": [
33
+                "-dxdebug.mode=debug",
34
+                "-dxdebug.start_with_request=yes",
35
+                "-S",
36
+                "localhost:0"
37
+            ],
38
+            "program": "",
39
+            "cwd": "${workspaceRoot}",
40
+            "port": 9003,
41
+            "serverReadyAction": {
42
+                "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
43
+                "uriFormat": "http://localhost:%s",
44
+                "action": "openExternally"
45
+            }
46
+        }
47
+    ]
25 48
 }

+ 1 - 1
application/config/autoload.php ファイルの表示

@@ -89,7 +89,7 @@ $autoload['drivers'] = array();
89 89
 |
90 90
 |    $autoload['helper'] = array('url', 'file');
91 91
  */
92
-$autoload['helper'] = array("funciones");
92
+$autoload['helper'] = array("funciones", "url");
93 93
 
94 94
 /*
95 95
 | -------------------------------------------------------------------

+ 2 - 2
application/config/config.php ファイルの表示

@@ -23,7 +23,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
23 23
 | a PHP script and you can easily do that on your own.
24 24
 |
25 25
  */
26
-$config['base_url'] = '';
26
+$config['base_url'] = 'http://liciagbar.test/';
27 27
 
28 28
 /*
29 29
 |--------------------------------------------------------------------------
@@ -136,7 +136,7 @@ $config['subclass_prefix'] = 'MY_';
136 136
 | Note: This will NOT disable or override the CodeIgniter-specific
137 137
 |    autoloading (application/config/autoload.php)
138 138
  */
139
-$config['composer_autoload'] = false;
139
+$config['composer_autoload'] = 'vendor/autoload.php';
140 140
 
141 141
 /*
142 142
 |--------------------------------------------------------------------------

+ 3 - 2
composer.json ファイルの表示

@@ -11,13 +11,14 @@
11 11
 		"source": "https://github.com/bcit-ci/CodeIgniter"
12 12
 	},
13 13
 	"require": {
14
-		"php": ">=5.3.7"
14
+		"php": ">=5.3.7",
15
+		"phpoffice/phpspreadsheet": "^1.21"
15 16
 	},
16 17
 	"suggest": {
17 18
 		"paragonie/random_compat": "Provides better randomness in PHP 5.x"
18 19
 	},
19 20
 	"require-dev": {
20
-		"mikey179/vfsStream": "1.1.*",
21
+		"mikey179/vfsstream": "1.1.*",
21 22
 		"phpunit/phpunit": "4.* || 5.*"
22 23
 	}
23 24
 }

BIN
name-of-the-generated-file.xlsx ファイルの表示