Skip to content

Commit 18ffe1f

Browse files
committed
New version 0.5.9
1 parent 30f2f5a commit 18ffe1f

File tree

250 files changed

+11361
-382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+11361
-382
lines changed

CHANGELOG

+36
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
DEMO ----------------------------------------------------
2+
- Bug:
3+
- Enh:
4+
- Chg: Updating JQuery UI to 1.8.17
5+
- New:
6+
---------------------------------------------------------
7+
8+
Version 0.5.9 - 29 Dec, 2014
9+
----------------------------
10+
- New: added new helper CArray
11+
- Enh: added translation into Hebrew
12+
- Enh: in CActiveRecords added new method updateByPk
13+
- Enh: in CActiveRecords findByPk() returns object instead of array
14+
- Enh: in CActiveRecords added new method refresh() and improved method count()
15+
- Enh: in CActiveRecords added new method sum()
16+
- Enh: in CActiveRecords improved method count()
17+
- Enh: minor changes in CGridView, CBreadCrumbs, CValidator, CDataForm
18+
- Enh: minor changes in CDatabase db class
19+
- Enh: added new method updateAll in CActiveRecords
20+
- Enh: minor changes in CDebug core class
21+
- Enh: minor changes in CHttpRequest
22+
- Enh: minor changes in CHttpSession component
23+
- Enh: minor changes in CMenu, CValidator helpers
24+
- Enh: minor changes in CLanguageSelector
25+
- Enh: minor changes in CFile in copy folder permissions
26+
- Enh: minor changes in CConfig collection class
27+
- Bug: fixed issue using cache in application bootstrap component
28+
- Bug: fixed wrong SQL in max() method of CActiveRecords
29+
- Bug: fixed missing COUNT(*) in count() method of CActiveRecords
30+
- Bug: fixed in returning current language
31+
- Bug: fixed in CDebug class
32+
- Bug: fixed in CMailer class phpMail() for sending HTML messages
33+
- Bug: fixed in CFormView when drawing disabled or hidden fields
34+
- Bug: fixed issue when error 404 is not shown for module CMS
35+
- Bug: fixed accessa permissions issue in CFile::copyDirectory()
36+
137

238
Version 0.4.4 - 29 Apr, 2014
339
----------------------------

demos/hello-world/.htaccess

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine On
3+
4+
RewriteCond %{REQUEST_FILENAME} !-d
5+
RewriteCond %{REQUEST_FILENAME} !-f
6+
RewriteCond %{REQUEST_FILENAME} !-l
7+
8+
# Rewrite all other URLs to index.php/URL
9+
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
10+
</IfModule>
11+
12+
<IfModule !mod_rewrite.c>
13+
ErrorDocument 404 index.php
14+
</IfModule>
15+

demos/hello-world/index.php

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Public index file
4+
*
5+
* @project ApPHP Framework
6+
* @author ApPHP <[email protected]>
7+
* @link http://www.apphpframework.com/
8+
* @copyright Copyright (c) 2012 - 2013 ApPHP Framework
9+
* @license http://www.apphpframework.com/license/
10+
*/
11+
12+
// change the following paths if necessary
13+
defined('APPHP_PATH') || define('APPHP_PATH', dirname(__FILE__));
14+
// directory separator
15+
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
16+
// production | debug | demo | test
17+
defined('APPHP_MODE') or define('APPHP_MODE', 'production');
18+
19+
20+
$apphp = dirname(__FILE__).'/../../framework/Apphp.php';
21+
$config = APPHP_PATH.'/protected/config/';
22+
23+
require_once($apphp);
24+
A::init($config)->run();

demos/hello-world/protected/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Empty folder
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
return array(
4+
// application data
5+
'name'=>'Hello World',
6+
'version'=>'0.0.1',
7+
8+
'defaultTemplate' => '',
9+
'defaultController' => 'Index',
10+
'defaultAction' => 'index',
11+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
class ErrorController extends CController
4+
{
5+
6+
public function indexAction()
7+
{
8+
//echo 'Error controller!';
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
class IndexController extends CController
4+
{
5+
6+
public function __construct()
7+
{
8+
parent::__construct();
9+
}
10+
11+
public function indexAction()
12+
{
13+
$this->_view->text = 'Hello World!';
14+
$this->_view->render('index/index');
15+
}
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1><?php echo $text; ?></h1>

demos/index.php

+141
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5+
<title>Demos Index | ApPHP Framework</title>
6+
<meta name="description" content="ApPHP Framework - Index page for free demo scripts" />
7+
<style>
8+
html, body { background: #fefefe; font-family: "helvetica neue", helvetica, arial, sans-serif; font-size: 14px; padding:0px; margin:0px; }
9+
h1 { font-size:22px; font-weight:bold; }
10+
h2 { font-size:19px; font-weight:bold; margin:7px 0;background-color:#f1f2f3; }
11+
h3 { font-size:14px; font-weight:bold; margin:5px 0; }
12+
a { color: #356AA0; }
13+
a:hover { color: #B02B2C; }
14+
header { background: #1a1a1a; color: #fff; height:40px; width:100%; }
15+
header nav { margin:0 20px; padding:0px; }
16+
header nav ul { margin:0; float:left; padding:0px; }
17+
header nav ul li { padding:10px; float:left; display: block; margin-right:5px; }
18+
header nav ul li.active { }
19+
header nav ul li.active a { color: #fff; }
20+
header nav ul li:hover { background-color: #2a2a2a; }
21+
header nav ul li:hover a { color: #efefef; }
22+
header nav a { color: #999999; font-size:15px; text-decoration: none; }
23+
section { background: #fff; padding:20px 0px 20px 10px; /*min-height:620px;*/ }
24+
.description { color:#555; background-color: #f1f2f3; border-radius:6px; padding:8px; }
25+
</style>
26+
</head>
27+
<body>
28+
<header>
29+
<nav>
30+
<ul class="menu">
31+
<li><a href="../docs/index.php">Documentation</a></li>
32+
<li><a href="../utils/requirements/index.php">Requirements</a></li>
33+
<li><a href="../utils/tests/index.php">Tests</a></li>
34+
<li><a href="../utils/generators/index.php">Code Generators</a></li>
35+
<li class="active"><a href="../demos/index.php">Demo</a></li>
36+
</ul>
37+
<ul class="menu" style="float:right">
38+
<li><a href="../index.html">&laquo; Index</a></li>
39+
</ul>
40+
</nav>
41+
</header>
42+
<section>
43+
These examples demonstrate just a small part of ApPHP Framework abilities.
44+
Select required example and click the link below:
45+
<br /><br />
46+
47+
<table width="860px">
48+
<tr>
49+
<td width="80px">Example 1.</td>
50+
<td> - </td>
51+
<td><a href="hello-world/">Hello World</a></td>
52+
</tr>
53+
<tr>
54+
<td></td>
55+
<td></td>
56+
<td>
57+
<div class="description">
58+
This is a simplest code that outputs "Hello, world" in the browser. It demonstrates a
59+
basic logic of MVC framework work.
60+
</div>
61+
</td>
62+
</tr>
63+
<tr><td colspan="3" nowrap height="10px"></td></tr>
64+
<tr>
65+
<td>Example 2.</td>
66+
<td> - </td>
67+
<td><a href="static-site/">Static Site</a></td>
68+
</tr>
69+
<tr>
70+
<td></td>
71+
<td></td>
72+
<td>
73+
<div class="description">
74+
This is a static web site, consists from the few pages. It allows page navigation by using a
75+
top menu, adding/editing content of the pages, changing HTML code, etc. No database used to
76+
store page contents, it may be done directly via the code of appropriate controller. This script
77+
uses a template feature of the framework.
78+
</div>
79+
</td>
80+
</tr>
81+
<tr><td colspan="3" nowrap height="10px"></td></tr>
82+
<tr>
83+
<td>Example 3.</td>
84+
<td> - </td>
85+
<td><a href="login-system/">Simple Login System</a></td>
86+
</tr>
87+
<tr>
88+
<td></td>
89+
<td></td>
90+
<td>
91+
<div class="description">
92+
This is a simple login system, consists from the few pages and login module. It allows page
93+
navigation by using a top menu, adding/editing content of the pages, changing HTML code, etc.
94+
Logged user has access to the protected area of the site. This script includes setup module.
95+
</div>
96+
</td>
97+
</tr>
98+
<tr><td colspan="3" nowrap height="10px"></td></tr>
99+
<tr>
100+
<td>Example 4.</td>
101+
<td> - </td>
102+
<td><a href="simple-blog/">Simple Blog</a></td>
103+
</tr>
104+
<tr>
105+
<td></td>
106+
<td></td>
107+
<td>
108+
<div class="description">
109+
This simple blog site demonstrates some advanced features of the framework, it inludes: setup
110+
and login modules, work with database and web forms, CRUD operations, form validation, etc. In
111+
administration area you could configure blog settings, author profile info, edit blog categories,
112+
create and manage your posts. On the Front-End visitors can see last the posts, sorted by
113+
categories or date of posting.
114+
</div>
115+
</td>
116+
</tr>
117+
<tr><td colspan="3" nowrap height="10px"></td></tr>
118+
<tr>
119+
<td>Example 5.</td>
120+
<td> - </td>
121+
<td><a href="simple-cms/">Simple CMS</a></td>
122+
</tr>
123+
<tr>
124+
<td></td>
125+
<td></td>
126+
<td>
127+
<div class="description">
128+
This simple CMS site demonstrates some advanced features of the framework like: setup
129+
and login modules, advanced widgets, work with database and web forms, CRUD operations, form
130+
validation, etc. In administration area you could configure all major CMS settings, admin
131+
profile info, edit site categories, create and manage pages. On the Front-End visitors can
132+
see last the menu and pages. This script may be used as a basis for creating your own advanced
133+
application.
134+
</div>
135+
</td>
136+
</tr>
137+
</table>
138+
139+
</section>
140+
</body>
141+
</html>

demos/login-system/.htaccess

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Deny directory browsing
2+
Options -Indexes
3+
4+
## Mod Rewrite
5+
<IfModule mod_rewrite.c>
6+
RewriteEngine On
7+
8+
RewriteCond %{REQUEST_FILENAME} !-d
9+
RewriteCond %{REQUEST_FILENAME} !-f
10+
RewriteCond %{REQUEST_FILENAME} !-l
11+
12+
# Rewrite all other URLs to index.php/URL
13+
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
14+
</IfModule>
15+
16+
<IfModule !mod_rewrite.c>
17+
ErrorDocument 404 index.php
18+
</IfModule>
19+
1.95 KB
Loading

demos/login-system/index.php

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Public index file
4+
*
5+
* @project ApPHP Framework
6+
* @author ApPHP <[email protected]>
7+
* @link http://www.apphpframework.com/
8+
* @copyright Copyright (c) 2012 - 2013 ApPHP Framework
9+
* @license http://www.apphpframework.com/license/
10+
*/
11+
12+
// change the following paths if necessary
13+
defined('APPHP_PATH') || define('APPHP_PATH', dirname(__FILE__));
14+
// directory separator
15+
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
16+
// production | debug | demo | test
17+
defined('APPHP_MODE') or define('APPHP_MODE', 'production');
18+
19+
20+
$apphp = dirname(__FILE__).'/../../framework/Apphp.php';
21+
$config = APPHP_PATH.'/protected/config/';
22+
23+
require_once($apphp);
24+
A::init($config)->run();
25+
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Empty folder

0 commit comments

Comments
 (0)