• 05-10-2022, 09:29:03
    #1
    hazır bir script kurdum index.php üzerinde bazı değişiklikler yapmak istiyorum ama nereden çekiyor bulamadım .

    index.php kodları aşağıdaki gibidir.
    yardımcı olabilir misiniz ?


    <?php

    // Path to the front controller (this file)
    define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);

    /*
    *---------------------------------------------------------------
    * BOOTSTRAP THE APPLICATION
    *---------------------------------------------------------------
    * This process sets up the path constants, loads and registers
    * our autoloader, along with Composer's, loads our constants
    * and fires up an environment-specific bootstrapping.
    */

    // Ensure the current directory is pointing to the front controller's directory
    chdir(__DIR__);

    // Load our paths config file
    // This is the line that might need to be changed, depending on your folder structure.
    $pathsConfig = FCPATH . 'app/Config/Paths.php';
    // ^^^ Change this if you move your application folder
    require realpath($pathsConfig) ?: $pathsConfig;

    $paths = new ConfigPaths();

    // Location of the framework bootstrap file.
    $bootstrap = rtrim($paths->systemDirectory, '\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
    $app = require realpath($bootstrap) ?: $bootstrap;

    $dbArray = new ConfigDatabase();
    if (!empty($dbArray) && !empty($dbArray->default)) {
    if (empty($dbArray->default['database']) || empty($dbArray->default['username'])) {
    $root = (isset($_SERVER['HTTPS']) ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
    $root .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
    header('Location: ' . $root . 'install/welcome.php');
    exit();
    }
    }

    /*
    *---------------------------------------------------------------
    * LAUNCH THE APPLICATION
    *---------------------------------------------------------------
    * Now that everything is setup, it's time to actually fire
    * up the engines and make this app do its thang.
    */
    $app->run();

  • 05-10-2022, 09:36:35
    #2
    $pathsConfig = FCPATH . 'app/Config/Paths.php';
    // ^^^ Change this if you move your application folder
    require realpath($pathsConfig) ?: $pathsConfig;

    $paths = new ConfigPaths();

    // Location of the framework bootstrap file.
    $bootstrap = rtrim($paths->systemDirectory, '/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
    $app = require realpath($bootstrap) ?: $bootstrap;

    realpath ile veriyi çekip app e eşitlemiş

    not : çok bi php bilgim yok bildiğim kadarıyla söyledim
  • 05-10-2022, 09:37:37
    #3
    fatihgunhiz adlı üyeden alıntı: mesajı görüntüle
    $pathsConfig = FCPATH . 'app/Config/Paths.php';
    // ^^^ Change this if you move your application folder
    require realpath($pathsConfig) ?: $pathsConfig;

    $paths = new ConfigPaths();

    // Location of the framework bootstrap file.
    $bootstrap = rtrim($paths->systemDirectory, '/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
    $app = require realpath($bootstrap) ?: $bootstrap;

    realpath ile veriyi çekip app e eşitlemiş

    not : çok bi php bilgim yok bildiğim kadarıyla söyledim
    üzerinde değişiklik yapmak istiyorum nasıl yapabilirim ?
  • 05-10-2022, 09:53:06
    #4
    BlackSoul adlı üyeden alıntı: mesajı görüntüle
    üzerinde değişiklik yapmak istiyorum nasıl yapabilirim ?
    hocam "app/Config/Paths.php" bu yolu izlemen gerek
    yani; Script klasörünün içinde APP Klasörü / Config Klasörü ardından paths.php e erişip birşeyler yapabilirsin.
  • 05-10-2022, 09:54:55
    #5
    HelixTR adlı üyeden alıntı: mesajı görüntüle
    hocam "app/Config/Paths.php" bu yolu izlemen gerek
    yani; Script klasörünün içinde APP Klasörü / Config Klasörü ardından paths.php e erişip birşeyler yapabilirsin.


    <?php

    namespace Config;

    /**
    * Paths
    *
    * Holds the paths that are used by the system to
    * locate the main directories, app, system, etc.
    *
    * Modifying these allows you to restructure your application,
    * share a system folder between multiple applications, and more.
    *
    * All paths are relative to the project's root folder.
    */
    class Paths
    {
    /**
    * ---------------------------------------------------------------
    * SYSTEM FOLDER NAME
    * ---------------------------------------------------------------
    *
    * This must contain the name of your "system" folder. Include
    * the path if the folder is not in the same directory as this file.
    *
    * @var string
    */
    public $systemDirectory = __DIR__ . '/../../system';

    /**
    * ---------------------------------------------------------------
    * APPLICATION FOLDER NAME
    * ---------------------------------------------------------------
    *
    * If you want this front controller to use a different "app"
    * folder than the default one you can set its name here. The folder
    * can also be renamed or relocated anywhere on your getServer. If
    * you do, use a full getServer path.
    *
    * @see http://codeigniter.com/user_guide/ge...ging_apps.html
    *
    * @var string
    */
    public $appDirectory = __DIR__ . '/..';

    /**
    * ---------------------------------------------------------------
    * WRITABLE DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of your "writable" directory.
    * The writable directory allows you to group all directories that
    * need write permission to a single place that can be tucked away
    * for maximum security, keeping it out of the app and/or
    * system directories.
    *
    * @var string
    */
    public $writableDirectory = __DIR__ . '/../../writable';

    /**
    * ---------------------------------------------------------------
    * TESTS DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of your "tests" directory.
    *
    * @var string
    */
    public $testsDirectory = __DIR__ . '/../../tests';

    /**
    * ---------------------------------------------------------------
    * VIEW DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of the directory that
    * contains the view files used by your application. By
    * default this is in `app/Views`. This value
    * is used when no value is provided to `Services::renderer()`.
    *
    * @var string
    */
    public $viewDirectory = __DIR__ . '/../Views';
    }



    paths.php de boyle hocam burada da bir şey yok
  • 05-10-2022, 10:01:01
    #6
    Düzenlemek istediğiniz şey tam olarak nedir hocam ?
  • 05-10-2022, 10:03:47
    #7
    BlackSoul adlı üyeden alıntı: mesajı görüntüle

    <?php

    namespace Config;

    /**
    * Paths
    *
    * Holds the paths that are used by the system to
    * locate the main directories, app, system, etc.
    *
    * Modifying these allows you to restructure your application,
    * share a system folder between multiple applications, and more.
    *
    * All paths are relative to the project's root folder.
    */
    class Paths
    {
    /**
    * ---------------------------------------------------------------
    * SYSTEM FOLDER NAME
    * ---------------------------------------------------------------
    *
    * This must contain the name of your "system" folder. Include
    * the path if the folder is not in the same directory as this file.
    *
    * @var string
    */
    public $systemDirectory = __DIR__ . '/../../system';

    /**
    * ---------------------------------------------------------------
    * APPLICATION FOLDER NAME
    * ---------------------------------------------------------------
    *
    * If you want this front controller to use a different "app"
    * folder than the default one you can set its name here. The folder
    * can also be renamed or relocated anywhere on your getServer. If
    * you do, use a full getServer path.
    *
    * @see http://codeigniter.com/user_guide/ge...ging_apps.html
    *
    * @var string
    */
    public $appDirectory = __DIR__ . '/..';

    /**
    * ---------------------------------------------------------------
    * WRITABLE DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of your "writable" directory.
    * The writable directory allows you to group all directories that
    * need write permission to a single place that can be tucked away
    * for maximum security, keeping it out of the app and/or
    * system directories.
    *
    * @var string
    */
    public $writableDirectory = __DIR__ . '/../../writable';

    /**
    * ---------------------------------------------------------------
    * TESTS DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of your "tests" directory.
    *
    * @var string
    */
    public $testsDirectory = __DIR__ . '/../../tests';

    /**
    * ---------------------------------------------------------------
    * VIEW DIRECTORY NAME
    * ---------------------------------------------------------------
    *
    * This variable must contain the name of the directory that
    * contains the view files used by your application. By
    * default this is in `app/Views`. This value
    * is used when no value is provided to `Services::renderer()`.
    *
    * @var string
    */
    public $viewDirectory = __DIR__ . '/../Views';
    }



    paths.php de boyle hocam burada da bir şey yok
    Hocam admin paneli tarzı biryer vardır diye düşünüyorum.

    yada http://codeigniter.com/user_guide/ge...ging_apps.html buradan bilgi aldınız mı ?
  • 05-10-2022, 10:06:06
    #8
    HelixTR adlı üyeden alıntı: mesajı görüntüle
    Hocam admin paneli tarzı biryer vardır diye düşünüyorum.

    yada http://codeigniter.com/user_guide/ge...ging_apps.html buradan bilgi aldınız mı ?
    admin var hocam ama yapmak istediğimi oradan yapamiyorum
  • 05-10-2022, 10:09:38
    #9
    BlackSoul adlı üyeden alıntı: mesajı görüntüle
    admin var hocam ama yapmak istediğimi oradan yapamiyorum
    Mesela hocam şu anlamda söyledim; Wordpress tabanlı scriptlerde Tema Dosya Düzenleyicisi ile halledebiliyor.