You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>This would have two apps, <strong>foo</strong> and <strong>bar</strong>, both having standard application directories
382
+
<p>This would have two apps, <strong>blog</strong> and <strong>shop</strong>, both having standard application directories
383
383
and a <strong>public</strong> folder, and sharing a common <strong>codeigniter4/framework</strong>.</p>
384
384
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">$systemDirectory</span></code> variable in <strong>app/Config/Paths.php</strong> inside each
385
385
of those would be set to refer to the shared common <strong>codeigniter4/framework</strong> folder:</p>
@@ -397,17 +397,18 @@ <h1>Managing your Applications<a class="headerlink" href="#managing-your-applica
397
397
<spanclass="p">}</span>
398
398
</pre></div>
399
399
</div>
400
-
<divclass="admonition note">
401
-
<pclass="admonition-title">Note</p>
402
-
<p>If you install CodeIgniter from the Zip file, the <codeclass="docutils literal notranslate"><spanclass="pre">$systemDirectory</span></code> would be <codeclass="docutils literal notranslate"><spanclass="pre">__DIR__</span><spanclass="pre">.</span><spanclass="pre">'/../../../codeigniter4/system'</span></code>.</p>
403
-
</div>
404
400
<p>And modify the <codeclass="docutils literal notranslate"><spanclass="pre">COMPOSER_PATH</span></code> constant in <strong>app/Config/Constants.php</strong> inside each
<p>If you install CodeIgniter from the Zip file, the <codeclass="docutils literal notranslate"><spanclass="pre">$systemDirectory</span></code> would be <codeclass="docutils literal notranslate"><spanclass="pre">__DIR__</span><spanclass="pre">.</span><spanclass="pre">'/../../../codeigniter4/system'</span></code>.
410
+
If you don’t use Composer, you don’t have to edit the <codeclass="docutils literal notranslate"><spanclass="pre">COMPOSER_PATH</span></code>.</p>
411
+
</div>
411
412
<p>Only when you change the Application Directory, see <aclass="reference internal" href="#renaming-app-directory"><spanclass="std std-ref">Renaming or Relocating the Application Directory</span></a> and modify the paths in the <strong>index.php</strong> and <strong>spark</strong>.</p>
<spanid="switch-to-dev-version"></span><h3><aclass="toc-backref" href="#id16" role="doc-backlink">Latest Dev</a><aclass="headerlink" href="#latest-dev" title="Link to this heading"></a></h3>
461
461
<p>The App Starter repo comes with a <codeclass="docutils literal notranslate"><spanclass="pre">builds</span></code> scripts to switch Composer sources between the
462
462
current stable release and the latest development branch of the framework. Use this script
463
-
for a developer who is willing to live with the latest unreleased changes, which may be unstable.</p>
463
+
for a developer who is willing to live with the latest unreleased changes, which may be unstable.
464
+
This way you can help find bugs and improve new features.</p>
464
465
<p>The <aclass="reference external" href="https://codeigniter4.github.io/CodeIgniter4/">development user guide</a> is accessible online.
465
466
Note that this differs from the released user guide, and will pertain to the
466
467
develop branch explicitly.</p>
468
+
<p>Before running the script, check <codeclass="docutils literal notranslate"><spanclass="pre">$files</span></code>, which is the list of files to be changed.
469
+
This is useful if you have additional places in the code that mention the directory with the framework.</p>
467
470
<divclass="admonition note">
468
471
<pclass="admonition-title">Note</p>
469
472
<p>You should not rely on the version of the framework in your project
<li><p>Copy the <strong>app</strong>, <strong>public</strong>, <strong>tests</strong> and <strong>writable</strong> folders from <strong>vendor/codeigniter4/framework</strong> to your project root</p></li>
534
-
<li><p>Copy the <strong>env</strong>, <strong>phpunit.xml.dist</strong> and <strong>spark</strong> files, from <strong>vendor/codeigniter4/framework</strong> to your project root</p></li>
537
+
<li><p>Copy the <strong>env</strong>, <strong>phpunit.dist.xml</strong> and <strong>spark</strong> files, from <strong>vendor/codeigniter4/framework</strong> to your project root</p></li>
535
538
<li><p>You will have to adjust the <codeclass="docutils literal notranslate"><spanclass="pre">$systemDirectory</span></code> property in <strong>app/Config/Paths.php</strong> to refer to the vendor one, e.g., <codeclass="docutils literal notranslate"><spanclass="pre">__DIR__</span><spanclass="pre">.</span><spanclass="pre">'/../../vendor/codeigniter4/framework/system'</span></code>.</p></li>
<p>These will be updated along with the framework whenever you do a <codeclass="docutils literal notranslate"><spanclass="pre">composer</span><spanclass="pre">update</span></code>.</p>
601
+
<p>Copy the <strong>vendor/codeigniter4/translations/Language</strong> folder contents in it to your <strong>app/Language</strong> folder.
602
+
These will be updated along with the framework whenever you do a <codeclass="docutils literal notranslate"><spanclass="pre">composer</span><spanclass="pre">update</span></code>.</p>
<li><p>Configure your worker settings in <strong>app/Config/WorkerMode.php</strong> if needed.
433
433
The defaults are recommended for most applications.</p></li>
434
434
</ol>
435
+
<divclass="admonition note">
436
+
<pclass="admonition-title">Note</p>
437
+
<p>When changing the project directory, see the section <aclass="reference internal" href="../general/managing_apps.html#renaming-app-directory"><spanclass="std std-ref">Renaming or Relocating the Application Directory</span></a> and update your <strong>public/frankenphp-worker.php</strong>.</p>
438
+
</div>
435
439
</section>
436
440
<sectionid="running-the-worker">
437
441
<h3><aclass="toc-backref" href="#id6" role="doc-backlink">Running the Worker</a><aclass="headerlink" href="#running-the-worker" title="Link to this heading"></a></h3>
<h2><aclass="toc-backref" href="#id5" role="doc-backlink">Testing Your Application</a><aclass="headerlink" href="#testing-your-application" title="Link to this heading"></a></h2>
368
368
<sectionid="phpunit-configuration">
369
369
<h3><aclass="toc-backref" href="#id6" role="doc-backlink">PHPUnit Configuration</a><aclass="headerlink" href="#phpunit-configuration" title="Link to this heading"></a></h3>
370
-
<p>In your CodeIgniter project root, there is the <codeclass="docutils literal notranslate"><spanclass="pre">phpunit.xml.dist</span></code> file. This
370
+
<p>In your CodeIgniter project root, there is the <codeclass="docutils literal notranslate"><spanclass="pre">phpunit.dist.xml</span></code> file. This
371
371
controls unit testing of your application. If you provide your own <codeclass="docutils literal notranslate"><spanclass="pre">phpunit.xml</span></code>,
372
372
it will over-ride this.</p>
373
373
<p>By default, test files are placed under the <strong>tests</strong> directory in the project root.</p>
0 commit comments