Skip to content

Commit

Permalink
Merge pull request #1 from apphp/dev
Browse files Browse the repository at this point in the history
Dev Merge to Prod
  • Loading branch information
apphp authored Jan 30, 2021
2 parents 1fd90ca + 6781d6a commit 6191ba2
Show file tree
Hide file tree
Showing 147 changed files with 13,538 additions and 10,772 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
Version 1.4.x -
----------------------------
- New: added new helper CSecureHeaders with possibility to define secure headers
- Enh: added possibility to hide system queries in debug panel
- Enh: added possibility to close debug panel to minimum size
- Enh: added possibility to get records by chunks with chuck() method of Active Record
- Bug: fixed wrong assignment of _isRendered in CView


Version 1.3.2 - 24 Jan, 2020
----------------------------
- New: added CRecordEntity to ORM model
- New: added phpunit tests
- New: added PHPUnit tests
- Enh: added possibility to use create() and update() methods in CActiveRecord
- Enh: changes in components CHttpRequest
- Enh: minor changes in database migrations
Expand All @@ -13,7 +22,7 @@ Version 1.3.2 - 24 Jan, 2020
- Enh: added possibility for lazy loading of core components via config
- Enh: fixed wrong path of log file in CLogger component
- Bug: fixed PHP7 syntax requirements in TCPDF vendor, CValidator helper
- Bug: fixed overwriting existing vars in View rendeting
- Bug: fixed overwriting existing vars in View rendering


Version 1.2.2 - 01 Jan, 2019
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<p align="center">
<a href="https://github.com/apphp/php-mvc-framework"><img src="https://github.com/apphp/php-mvc-framework/workflows/build/badge.svg" alt="Build Status"></a>
<a href="https://opensource.org/licenses/lgpl-3.0.html"><img src="http://apphpframework.com/images/badges/license.svg" alt="License LGPL"></a>
<a href="http://apphpframework.com/"><img src="http://apphpframework.com/images/badges/stable.svg" alt="Stable Version"></a>
<a href="http://apphpframework.com"><img src="http://apphpframework.com/images/badges/stable.svg" alt="Stable Version"></a>
<a href="http://apphpframework.com"><img src="https://apphp.com/images/badges/fw-downloads.svg" alt="Total Downloads"></a>
</p>

## About ApPHP Framework
Expand Down Expand Up @@ -96,4 +97,4 @@ Please visit the project website for tutorials, class reference and join discuss

- [Official Website](http://www.apphpframework.com)
- [Website](https://www.apphp.com/php-framework/)
- [GitHub Repository](https://github.com/apphp/php-mvc-framework)
- [GitHub Repository](https://github.com/apphp/php-mvc-framework)
15 changes: 15 additions & 0 deletions bin/aii
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env php
<?php
/**
* ApPHP command line script for Unix/Linux.
*
* This is the bootstrap script for running aii on Unix/Linux.
*
* @project ApPHP Framework
* @author ApPHP <info@apphp.com>
* @link http://www.apphpframework.com/
* @copyright Copyright (c) 2012 - 2020 ApPHP Framework
* @license http://www.apphpframework.com/license/
*/

require_once(dirname(__FILE__).'/aii.php');
23 changes: 23 additions & 0 deletions bin/aii.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

rem -------------------------------------------------------------
rem Aii command line script for Windows.
rem
rem This is the bootstrap script for running aii on Windows.
rem
rem @project ApPHP Framework
rem @author ApPHP <info@apphp.com>
rem @link http://www.apphpframework.com/
rem @copyright Copyright (c) 2012 - 2020 ApPHP Framework
rem @license http://www.apphpframework.com/license/
rem -------------------------------------------------------------

@setlocal

set APPHP_PATH=%~dp0

if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe

"%PHP_COMMAND%" "%APPHP_PATH%aii" %*

@endlocal
23 changes: 23 additions & 0 deletions bin/aii.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

// Change the following paths if necessary
defined('APPHP_PATH') || define('APPHP_PATH', dirname(__FILE__));
// Directory separator
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
// Console mode only
defined('APPHP_MODE') or define('APPHP_MODE', 'console');


$apphp = dirname(__FILE__) . '/../framework/Apphp.php';
$config = APPHP_PATH . '/protected/config/';

require_once($apphp);
A::init($config)->run();

// We get automatically $argv and $argc, as we run command line command
$console = new CConsole($argv);
$consoleCommand = new CConsoleCommand(
$console->getCommand(),
$console->getParams()
);
$consoleCommand->run();
Loading

0 comments on commit 6191ba2

Please sign in to comment.