Skip to content

Commit 989d6d8

Browse files
committed
Completed Articles Controller section.
0 parents  commit 989d6d8

82 files changed

Lines changed: 6426 additions & 0 deletions

Some content is hidden

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

‎.editorconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.bat]
14+
end_of_line = crlf
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2

‎.gitattributes‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Define the line ending behavior of the different file extensions
2+
# Set default behaviour, in case users don't have core.autocrlf set.
3+
* text=auto
4+
* text eol=lf
5+
6+
# Explicitly declare text files we want to always be normalized and converted
7+
# to native line endings on checkout.
8+
*.php text
9+
*.default text
10+
*.ctp text
11+
*.sql text
12+
*.md text
13+
*.po text
14+
*.js text
15+
*.css text
16+
*.ini text
17+
*.properties text
18+
*.txt text
19+
*.xml text
20+
*.svg text
21+
*.yml text
22+
.htaccess text
23+
24+
# Declare files that will always have CRLF line endings on checkout.
25+
*.bat eol=crlf
26+
27+
# Declare files that will always have LF line endings on checkout.
28+
*.pem eol=lf
29+
30+
# Denote all files that are truly binary and should not be modified.
31+
*.png binary
32+
*.jpg binary
33+
*.gif binary
34+
*.ico binary
35+
*.mo binary
36+
*.pdf binary
37+
*.phar binary
38+
*.woff binary
39+
*.woff2 binary
40+
*.ttf binary
41+
*.otf binary
42+
*.eot binary

‎.github/ISSUE_TEMPLATE.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
This is a (multiple allowed):
2+
3+
* [x] bug
4+
* [ ] enhancement
5+
* [ ] feature-discussion (RFC)
6+
7+
* CakePHP Application Skeleton Version: EXACT RELEASE VERSION OR COMMIT HASH, HERE.
8+
* Platform and Target: YOUR WEB-SERVER, DATABASE AND OTHER RELEVANT INFO AND HOW THE REQUEST IS BEING MADE, HERE.
9+
10+
### What you did
11+
EXPLAIN WHAT YOU DID, PREFERABLY WITH CODE EXAMPLES, HERE.
12+
13+
### What happened
14+
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.
15+
16+
### What you expected to happen
17+
EXPLAIN WHAT IS TO BE EXPECTED, HERE.
18+
19+
P.S. Remember, an issue is not the place to ask questions. You can use [Stack Overflow](https://stackoverflow.com/questions/tagged/cakephp)
20+
for that or join the #cakephp channel on irc.freenode.net, where we will be more
21+
than happy to help answer your questions.
22+
23+
Before you open an issue, please check if a similar issue already exists or has been closed before.

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**PLEASE NOTE:**
2+
3+
This is only a issue tracker for issues related to the CakePHP Application Skeleton.
4+
For CakePHP Framework issues please use this [issue tracker](https://github.com/cakephp/cakephp/issues).
5+
6+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
7+
8+
The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.
9+
10+
Always follow the [contribution guidelines](https://github.com/cakephp/cakephp/blob/master/.github/CONTRIBUTING.md) guidelines when submitting a pull request. In particular, make sure existing tests still pass, and add tests for all new behavior. When fixing a bug, you may want to add a test to verify the fix.

‎.gitignore‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# CakePHP specific files #
2+
##########################
3+
/config/app.php
4+
/config/.env
5+
/tmp/*
6+
/logs/*
7+
/tmp/*
8+
/vendor/*
9+
10+
# OS generated files #
11+
######################
12+
.DS_Store
13+
.DS_Store?
14+
._*
15+
.Spotlight-V100
16+
.Trashes
17+
Icon?
18+
ehthumbs.db
19+
Thumbs.db
20+
21+
# Tool specific files #
22+
#######################
23+
*~ # vim
24+
*.swp # vim
25+
*.swo # vim
26+
*.sublime-* # sublime text
27+
*.tmlanguage.cache # sublime text & textmate
28+
*.tmPreferences.cache # sublime text & textmate
29+
*.stTheme.cache # cache files for sublime text
30+
.settings/* # Eclipse
31+
.idea/* # JetBrains, aka PHPStorm, IntelliJ IDEA
32+
nbproject/* # NetBeans
33+
.vscode # Visual Studio Code
34+
.sass-cache/ # Sass preprocessor

‎.htaccess‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Uncomment the following to prevent the httpoxy vulnerability
2+
# See: https://httpoxy.org/
3+
#<IfModule mod_headers.c>
4+
# RequestHeader unset Proxy
5+
#</IfModule>
6+
7+
<IfModule mod_rewrite.c>
8+
RewriteEngine on
9+
RewriteRule ^$ webroot/ [L]
10+
RewriteRule (.*) webroot/$1 [L]
11+
</IfModule>

‎.travis.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
3+
dist: trusty
4+
5+
sudo: false
6+
7+
php:
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
12+
matrix:
13+
fast_finish: true
14+
15+
include:
16+
- php: 7.0
17+
env: PHPCS=1
18+
19+
before_script:
20+
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:~2.1; fi
21+
- if [[ $PHPCS != 1 ]]; then composer install; fi
22+
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.0"; fi
23+
- if [[ $PHPCS != 1 ]]; then composer run-script post-install-cmd --no-interaction; fi
24+
25+
script:
26+
- if [[ $PHPCS != 1 ]]; then vendor/bin/phpunit; fi
27+
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot; fi
28+
29+
notifications:
30+
email: false

‎README.md‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# CakePHP Application Skeleton
2+
3+
[![Build Status](https://img.shields.io/travis/cakephp/app/master.svg?style=flat-square)](https://travis-ci.org/cakephp/app)
4+
[![License](https://img.shields.io/packagist/l/cakephp/app.svg?style=flat-square)](https://packagist.org/packages/cakephp/app)
5+
6+
A skeleton for creating applications with [CakePHP](https://cakephp.org) 3.x.
7+
8+
The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp).
9+
10+
## Installation
11+
12+
1. Download [Composer](https://getcomposer.org/doc/00-intro.md) or update `composer self-update`.
13+
2. Run `php composer.phar create-project --prefer-dist cakephp/app [app_name]`.
14+
15+
If Composer is installed globally, run
16+
17+
```bash
18+
composer create-project --prefer-dist cakephp/app
19+
```
20+
21+
In case you want to use a custom app dir name (e.g. `/myapp/`):
22+
23+
```bash
24+
composer create-project --prefer-dist cakephp/app myapp
25+
```
26+
27+
You can now either use your machine's webserver to view the default home page, or start
28+
up the built-in webserver with:
29+
30+
```bash
31+
bin/cake server -p 8765
32+
```
33+
34+
Then visit `http://localhost:8765` to see the welcome page.
35+
36+
## Update
37+
38+
Since this skeleton is a starting point for your application and various files
39+
would have been modified as per your needs, there isn't a way to provide
40+
automated upgrades, so you have to do any updates manually.
41+
42+
## Configuration
43+
44+
Read and edit `config/app.php` and setup the `'Datasources'` and any other
45+
configuration relevant for your application.
46+
47+
## Layout
48+
49+
The app skeleton uses a subset of [Foundation](http://foundation.zurb.com/) CSS
50+
framework by default. You can, however, replace it with any other library or
51+
custom styles.

‎bin/cake‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env sh
2+
################################################################################
3+
#
4+
# Cake is a shell script for invoking CakePHP shell commands
5+
#
6+
# CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
7+
# Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
8+
#
9+
# Licensed under The MIT License
10+
# For full copyright and license information, please see the LICENSE.txt
11+
# Redistributions of files must retain the above copyright notice.
12+
#
13+
# @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
14+
# @link https://cakephp.org CakePHP(tm) Project
15+
# @since 1.2.0
16+
# @license https://opensource.org/licenses/mit-license.php MIT License
17+
#
18+
################################################################################
19+
20+
# Canonicalize by following every symlink of the given name recursively
21+
canonicalize() {
22+
NAME="$1"
23+
if [ -f "$NAME" ]
24+
then
25+
DIR=$(dirname -- "$NAME")
26+
NAME=$(cd -P "$DIR" > /dev/null && pwd -P)/$(basename -- "$NAME")
27+
fi
28+
while [ -h "$NAME" ]; do
29+
DIR=$(dirname -- "$NAME")
30+
SYM=$(readlink "$NAME")
31+
NAME=$(cd "$DIR" > /dev/null && cd $(dirname -- "$SYM") > /dev/null && pwd)/$(basename -- "$SYM")
32+
done
33+
echo "$NAME"
34+
}
35+
36+
CONSOLE=$(dirname -- "$(canonicalize "$0")")
37+
APP=$(dirname "$CONSOLE")
38+
39+
if [ $(basename $0) != 'cake' ]
40+
then
41+
exec php "$CONSOLE"/cake.php $(basename $0) "$@"
42+
else
43+
exec php "$CONSOLE"/cake.php "$@"
44+
fi
45+
46+
exit

‎bin/cake.bat‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2+
::
3+
:: Cake is a Windows batch script for invoking CakePHP shell commands
4+
::
5+
:: CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
6+
:: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
7+
::
8+
:: Licensed under The MIT License
9+
:: Redistributions of files must retain the above copyright notice.
10+
::
11+
:: @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
12+
:: @link https://cakephp.org CakePHP(tm) Project
13+
:: @since 2.0.0
14+
:: @license https://opensource.org/licenses/mit-license.php MIT License
15+
::
16+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
17+
18+
@echo off
19+
20+
SET app=%0
21+
SET lib=%~dp0
22+
23+
php "%lib%cake.php" %*
24+
25+
echo.
26+
27+
exit /B %ERRORLEVEL%

0 commit comments

Comments
 (0)