Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 54

Přidáno uživatelem Tomáš Dulík před více než 16 roky(ů)

My_Controller: do require_once doplneno APPPATH.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/config/database.php
<?php defined('SYSPATH') or die('No direct script access.');
/**
* @package Database
*
* Database connection settings, defined as arrays, or "groups". If no group
* name is used when loading the database library, the group named "default"
* will be used.
*
* Each group can be connected to independantly, and multiple groups can be
* connected at once.
*
* Group Options:
* benchmark - Enable or disable database benchmarking
* persistent - Enable or disable a persistent connection
* connection - DSN identifier: driver://user:password@server/database
* character_set - Database character set
* table_prefix - Database table prefix
* object - Enable or disable object results
* cache - Enable or disable query caching
*/
$config['default'] = array
(
'benchmark' => TRUE,
'persistent' => FALSE,
'connection' => 'mysql://root:@localhost/freenetis2',
'character_set' => 'utf8',
'table_prefix' => '',
'object' => TRUE,
'cache' => FALSE
);
<?php defined('SYSPATH') or die('No direct script access.');
/**
* @package Database
*
* Database connection settings, defined as arrays, or "groups". If no group
* name is used when loading the database library, the group named "default"
* will be used.
*
* Each group can be connected to independantly, and multiple groups can be
* connected at once.
*
* Group Options:
* benchmark - Enable or disable database benchmarking
* persistent - Enable or disable a persistent connection
* connection - DSN identifier: driver://user:password@server/database
* character_set - Database character set
* table_prefix - Database table prefix
* object - Enable or disable object results
* cache - Enable or disable query caching
*/
$config['default'] = array
(
'benchmark' => TRUE,
'persistent' => FALSE,
'connection' => 'mysql://freenetis:bcac568614812719@freenetis.slfree.net/freenetis',
'character_set' => 'utf8',
'table_prefix' => '',
'object' => TRUE,
'cache' => FALSE
);
freenetis/trunk/kohana/application/config/config.php
/**
* Domain name, with the installation directory. Default: localhost/kohana/
*/
$config['site_domain'] = 'localhost/kohana/';
$config['site_domain'] = 'freenetis.slfree.net/';
/**
* Default protocol used to access the website. Default: http
freenetis/trunk/kohana/application/libraries/MY_Controller.php
url::redirect(url_lang::base().'login', 'redirect');
die();
}
require_once('application/vendors/phpgacl/gacl.class.php');
require_once(APPPATH.'vendors/phpgacl/gacl.class.php');
$this->gacl_class = new gacl();
}
freenetis/trunk/kohana/.htaccess
RewriteEngine On
RewriteBase /kohana/
RewriteBase /
# Protect application and system files from being viewed
#RewriteCond $1 ^(application|system)
......
# Silently prepend index.php to EVERY URL.
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^(.*)$ index.php/$1 [L]

Také k dispozici: Unified diff