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 İle Dinamik Site Haritası Yapımı | Sabri Kaş Freelance Web Developer
Codeigniter İle Dinamik Site Haritası Yapımı

Çalıştırmak istediğiniz controller dosyasına aşağıdaki kodu yapıştırın $categories, $post değişkenleri sizin veritabanınızdan gelir.
base_url() yerine $_SERVER['HTTP_HOST'] 'da kullanılabilir base_url'i siz tanımlarsınız $_SERVER['HTTP_HOST'] sistem tarafından otomatik algılanır.

 public function sitemap()
 {
   header("Content-type: text/xml");
   echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; //XML etiketimizi başlatıyoruz.
   echo "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">";
   echo "<url><loc>" . base_url() . "</loc></url>"; //Ana Sayfamız
   echo "<url><loc>" . base_url("hakkimda") . "/hakkimda</loc></url>"; //Hakkımda Sayfamız
   echo "<url><loc>" . base_url("iletisim") . "/iletisim</loc></url>"; //İletişim Sayfamız
   $kategoriler=$this->db->get("kategoriler tablosu")->result();
   foreach($kategoriler as $kategori)
    {
     echo "<url><loc>".base_url($kategori->link)."</loc></url>";
    }
    $icerikler=$this->db->get("icerikler tablosu")->result();
    foreach($icerikler as $icerik)
     {
      echo "<url><loc>".base_url($icerik->link)."</loc></url>";
     }

     echo "</urlset>";
 }

Yorumlar (0)

Yorum Bırakın

Mail Adresiniz Diğer Kullanıcılara Gösterilmez

Adınız ve Soyadınız *
Email Adresiniz *
Yorumunuz *