Skip to content

Commit e966a70

Browse files
committed
docs: add note in case you cannot use spark command
1 parent ebda766 commit e966a70

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

user_guide_src/source/installation/running.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,40 @@ Checking PHP ini Settings
8181

8282
.. versionadded:: 4.5.0
8383

84-
PHP ini settings change the behaviors of PHP. CodeIgniter provides a command to
84+
`PHP ini settings`_ change the behaviors of PHP. CodeIgniter provides a command to
8585
check important PHP settings.
8686

87+
.. _PHP ini settings: https://www.php.net/manual/en/ini.list.php
88+
8789
.. code-block:: console
8890
8991
php spark phpini:check
9092
9193
The *Recommended* column shows the recommended values for production environment.
9294
They may differ in development environments.
9395

96+
.. note::
97+
If you cannot use the spark command, you can use ``CheckPhpIni::run(false)``
98+
in your controller.
99+
100+
E.g.,
101+
102+
.. code-block:: php
103+
104+
<?php
105+
106+
namespace App\Controllers;
107+
108+
use CodeIgniter\Security\CheckPhpIni;
109+
110+
class Home extends BaseController
111+
{
112+
public function index(): string
113+
{
114+
return CheckPhpIni::run(false);
115+
}
116+
}
117+
94118
************************
95119
Local Development Server
96120
************************

0 commit comments

Comments
 (0)