Ben hattı ile gidersiniz
Is it possible to use Yii just by
copying the Framework to a folder on
the server and then including
something
and answer yes :p Though, you should just follow webapp creation through yiic webapp like
so:
- Yii (yii-someversion.tar.gz ya da ne var) dağılımı indir,
- yere extract (örneğin
/opt/yii * nix veya C:/web/yii pencere.)
- Şimdi, (
$PATH * nix içinde, ya da %PATH% windows) yolunuzda bu dizini koymak
- go to a shell / command prompt, change the directory to your
webserver's document root and do a
yiic webapp <app folder name>
After answering a couple config question, you should have an look at the
index.php created there, you should have something like:
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createWebApplication($config)->run();
ve bunun hakkında: p