A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$db is deprecated
Filename: core/Loader.php
Line Number: 396
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$parser is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 292
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 166
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 235
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 315
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 356
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$session is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$navigation is deprecated
Filename: models/Master_model.php
Line Number: 10
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 10
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$categories is deprecated
Filename: models/Master_model.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$site_info is deprecated
Filename: models/Master_model.php
Line Number: 12
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 12
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$posts is deprecated
Filename: models/Master_model.php
Line Number: 13
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 13
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$master_model is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$masterData is deprecated
Filename: controllers/Post.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$posts is deprecated
Filename: models/Post_model.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$table is deprecated
Filename: models/Post_model.php
Line Number: 12
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 12
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$author is deprecated
Filename: models/Post_model.php
Line Number: 13
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 13
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$comments is deprecated
Filename: models/Post_model.php
Line Number: 14
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 14
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$comment is deprecated
Filename: models/Post_model.php
Line Number: 15
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 15
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$post_model is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$model is deprecated
Filename: controllers/Post.php
Line Number: 18
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 18
Function: _error_handler
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$parser is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$master_model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$masterData is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$post_model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
Codeigniter Config Sınıfı | Sabri Kaş Freelance Web Developer
Bazen projelerimizde veritabanında tutmak istemediğimiz seçenekler,ayarlamalar olabilir. Bu tip işleri halletmenin farklı yolları da var ben şuan codeigniter framework'ünde standart tanımlı olan sınıfı sizlere tanıtıcam. Codeigniter'ın default config klasörü bu şekildeprojeniz > application > config bu klasörün içerisine ayar.php dosyası oluşturalım
$config["site_key"]="23asfagr341eqsa1345y6752sa";
$config["img_dir"]="resimler";
ayar.php dosyasını kaydettikten sonra ister autoload.php den isterseniz controller dosyasından bu php dosyasını yükleyebilirsinizautoload.php için yükleme işlemi
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array("ayar");
Controller dosyasında yükleme işlemi
$this -> config -> load ( 'ayar' ); Kullanımı İse Şu Şekilde
$key = $this->config->item("site_key");
$img_dir = $this->config->item("img_dir");
echo $key;
echo $img_dir;
Daha Detaylı Bilgi İçin Codeigniter Userguide İncelebilirsiniz. En basit kullanımı bu şekildedir. Herkese İyi Çalışmalar
Yorumlar (0)
Bu İçeriğe Henüz Yorum Yapılmamış..
Yorum Bırakın
Mail Adresiniz Diğer Kullanıcılara Gösterilmez
Yorum Kaydediliyor Lütfen Bekleyiniz.