http___promosyonurunleriantalya.com__1.xml
1.1 2.1 2.2 3.1 4.1 5.1 6.1 7.1 7.2 8.1 9.1 10.1 10.2 11.1 12.1 13.1 14.1 15.1 16.1 17.1 18.1 19.1 19.2 19.3 19.4 20.1 21.1 22.1 23.1 24.1 25.1 26.1 26.2 27.1 28.1 29.1 30.1 30.2 31.1 32.1 33.1 33.2 34.1 35.1 36.1 37.1 38.1 39.1 40.1 41.1 42.1 43.1 44.1 45.1 46.1 46.2 47.1 48.1 49.1 50.1 51.1 52.1 53.1 54.1 55.1 56.1 57.1 57.2 57.3 57.4 57.5 57.6 58.1 60.1 61.1 63.1 64.1 66.1 67.1 69.1 71.1 73.1 75.1 77.1 79.1 80.1 82.1 84.1 86.1 88.1 89.1 91.1 93.1 94.1 96.1 98.1 99.1 100.1 100.2
Config Class¶ The Config class provides a means to retrieve configuration preferences. These preferences can come from the default config file (application/config/config.php) or from your own custom config files. Note This class is initialized automatically by the system so there is no need to do it manually. Working with the Config Class¶ Anatomy of a Config File¶ By default, CodeIgniter has one primary config file, located at application/config/config.php. If you open the file using your text editor you’ll see that config items are stored in an array called $config. You can add your own config items to this file, or if you prefer to keep your configuration items separate (assuming you even need config items), simply create your own file and save it in config folder. Note If you do create your own config files use the same format as the primary one, storing your items in an array called $config. CodeIgniter will intelligently manage these files so there will be no conflict even though the array has the same name (assuming an array index is not named the same as another). Loading a Config File¶ Note CodeIgniter automatically loads the primary config file (application/config/config.php), so you will only need to load a config file if you have created your own. There are two ways to load a config file: Manual Loading¶ To load one of your custom config files you will use the following function within the controller that needs it: $this->config->load('filename'); Where filename is the name of your config file, without the .php file extension. If you need to load multiple config files normally they will be merged into one master config array. Name collisions can occur, however, if you have identically named array indexes in different config files. To avoid collisions you can set the second parameter to TRUE and each config file will be stored in an array index corresponding to the name of the config file. Example: // Stored in an array with this prototype: $this->config['blog_settings'] = $config $this->config->load('blog_settings', TRUE); Please see the section entitled Fetching Config Items below to learn how to retrieve config items set this way. The third parameter allows you to suppress errors in the event that a config file does not exist: $this->config->load('blog_settings', FALSE, TRUE); Auto-loading¶ If you find that you need a particular config file globally, you can have it loaded automatically by the system. To do this, open the autoload.php file, located at application/config/autoload.php, and add your config file as indicated in the file. Fetching Config Items¶ To retrieve an item from your config file, use the following function: $this->config->item('item_name'); Where item_name is the $config array index you want to retrieve. For example, to fetch your language choice you’ll do this: $lang = $this->config->item('language'); The function returns NULL if the item you are trying to fetch does not exist. If you are using the second parameter of the $this->config->load function in order to assign your config items to a specific index you can retrieve it by specifying the index name in the second parameter of the $this->config->item() function. Example: // Loads a config file named blog_settings.php and assigns it to an index named "blog_settings" $this->config->load('blog_settings', TRUE); // Retrieve a config item named site_name contained within the blog_settings array $site_name = $this->config->item('site_name', 'blog_settings'); // An alternate way to specify the same item: $blog_config = $this->config->item('blog_settings'); $site_name = $blog_config['site_name']; Setting a Config Item¶ If you would like to dynamically set a config item or change an existing one, you can do so using: $this->config->set_item('item_name', 'item_value'); Where item_name is the $config array index you want to change, and item_value is its value. Environments¶ You may load different configuration files depending on the current environment. The ENVIRONMENT constant is defined in index.php, and is described in detail in the Handling Environments section. To create an environment-specific configuration file, create or copy a configuration file in application/config/{ENVIRONMENT}/{FILENAME}.php For example, to create a production-only config.php, you would: - Create the directory application/config/production/ - Copy your existing config.php into the above directory - Edit application/config/production/config.php so it contains your production settings When you set the ENVIRONMENT constant to ‘production’, the settings for your new production-only config.php will be loaded. You can place the following configuration files in environment-specific folders: - Default CodeIgniter configuration files - Your own custom configuration files Note CodeIgniter always loads the global config file first (i.e., the one in application/config/), then tries to load the configuration files for the current environment. This means you are not obligated to place all of your configuration files in an environment folder. Only the files that change per environment. Additionally you don’t have to copy all the config items in the environment config file. Only the config items that you wish to change for your environment. The config items declared in your environment folders always overwrite those in your global config files. Class Reference¶ class CI_Config¶ $config Array of all loaded config values $is_loaded Array of all loaded config files item($item[, $index=''])¶ Fetch a config file item. set_item($item, $value)¶ Sets a config file item to the specified value. slash_item($item)¶ This method is identical to item(), except it appends a forward slash to the end of the item, if it exists. load([$file = ''[, $use_sections = FALSE[, $fail_gracefully = FALSE]]])¶ Loads a configuration file. site_url()¶ This method retrieves the URL to your site, along with the “index” value you’ve specified in the config file. This method is normally accessed via the corresponding functions in the URL Helper. base_url()¶ This method retrieves the URL to your site, plus an optional path such as to a stylesheet or image. This method is normally accessed via the corresponding functions in the URL Helper. system_url()¶ This method retrieves the URL to your CodeIgniter system/ directory. Note This method is DEPRECATED because it encourages usage of insecure coding practices. Your system/ directory shouldn’t be publicly accessible.
1.1 2.1 3.1 4.1 5.1
Sistemde PHP yazılım dili ve Codeigniter framework kullanılmıştır. Default controller olarak site controllerı tanımlanmıştır. Site controllerı içerisinde ana sayfa tasarımı (slider dahil) ve footer, sidebar, header gibi bileşenler de barındırılmaktadır. Web servis client uygulaması sunucuya ilk yüklendiğinde site içi linklemenin doğru olması için, application/config/config.php dosyasındaki $config['base_url'] değişkeni içerisine çalışmayı sunucuya yüklediğiniz klasörün yolunu yazmanız gerekmektedir. Site title (başlık) bilgisini değiştirmek için application/config/constants.php dosyasındaki sayfanın en alt satırında bulunan SITE_NAME sabitinin değerini değiştirmeniz gerekmektedir. View katmanına gönderilen değişkenlere sadık kalarak web site tasarımı değiştirebilirsiniz. Bu bilgilendirme mesajını silmek için /application/modules/site/views/header.php dosyasını düzenleyebilirsiniz.