Commits

Bogdan Savluk committed 79331ed

add console

Comments (0)

Files changed (5)

testapp/protected/config/console.php

+<?php
+
+return CMap::mergeArray(
+	require(dirname(__FILE__).'/main.php'),
+	array(
+	)
+);

testapp/protected/config/console.php.dist

+<?php
+
+return CMap::mergeArray(
+	require(dirname(__FILE__).'/main.php'),
+	array(
+	)
+);

testapp/protected/yiic

+#!/usr/bin/env php
+<?php
+
+require_once(dirname(__FILE__).'/yiic.php');

testapp/protected/yiic.bat

+@echo off
+
+rem -------------------------------------------------------------
+rem  Yii command line script for Windows.
+rem  This is the bootstrap script for running yiic on Windows.
+rem -------------------------------------------------------------
+
+@setlocal
+
+set BIN_PATH=%~dp0
+
+if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
+
+"%PHP_COMMAND%" "%BIN_PATH%yiic.php" %*
+
+@endlocal

testapp/protected/yiic.php

+<?php
+
+// change the following paths if necessary
+$yiic=dirname(__FILE__).'/../../../yii-1.1.13/framework/yiic.php';
+$config=dirname(__FILE__).'/config/console.php';
+
+require_once($yiic);