Storage Directory

  • The correct way to do in pagekit is with

    $app['path.storage']


    There is also a shortcut storage: for use in url / paths available (works in services which support it).


    Source code reference:

    PHP: /pagekit/app/system/modules/finder/index.php
    1. 'main' => function ($app) {
    2. $this->config['storage'] = '/' . trim(($this->config['storage'] ?: 'storage'), '/');
    3. $app['path.storage'] = $app['path'] . $this->config['storage'];
    4. $app['locator']->add('storage:', $app['path.storage']);
    5. },

    The LORD is my strength and my shield; in him my heart trusts, and I am helped; my heart exults, and with my song I give thanks to him. Psalm 28,7

    Edited 2 times, last by SAB ().

    • Helpful

    General solution for all registered paths:

    You can access them via:

    $app['path(.*)']

    The LORD is my strength and my shield; in him my heart trusts, and I am helped; my heart exults, and with my song I give thanks to him. Psalm 28,7