Skip to content

Commit 4e57d17

Browse files
committed
Photoblog example code
0 parents  commit 4e57d17

File tree

938 files changed

+218345
-0
lines changed

Some content is hidden

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

938 files changed

+218345
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/app/Config
2+
/app/tmp
3+
/lib/Cake/Console/Templates/skel/tmp/
4+
/plugins
5+
/vendors
6+
.DS_Store
7+
tags

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "app/Plugin/DebugKit"]
2+
path = app/Plugin/DebugKit
3+
url = [email protected]:cakephp/debug_kit.git

.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine on
3+
RewriteRule ^$ app/webroot/ [L]
4+
RewriteRule (.*) app/webroot/$1 [L]
5+
</IfModule>

README

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
2+
3+
The Cake Software Foundation - promoting development related to CakePHP
4+
http://cakefoundation.org/
5+
6+
CakePHP - the rapid development PHP framework
7+
http://www.cakephp.org
8+
9+
Cookbook - user documentation for learning about CakePHP
10+
http://book.cakephp.org
11+
12+
API - quick reference to CakePHP
13+
http://api.cakephp.org
14+
15+
The Bakery - everything CakePHP
16+
http://bakery.cakephp.org
17+
18+
The Show - live and archived podcasts about CakePHP and more
19+
http://live.cakephp.org
20+
21+
CakePHP TV - screen casts from events and video tutorials
22+
http://tv.cakephp.org
23+
24+
CakePHP Google Group - community mailing list and forum
25+
http://groups.google.com/group/cake-php
26+
27+
#cakephp on irc.freenode.net - chat with CakePHP developers
28+
irc://irc.freenode.net/cakephp

app/.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine on
3+
RewriteRule ^$ webroot/ [L]
4+
RewriteRule (.*) webroot/$1 [L]
5+
</IfModule>

app/Console/Command/Task/empty

Whitespace-only changes.

app/Console/Templates/empty

Whitespace-only changes.

app/Console/cake

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
################################################################################
3+
#
4+
# Bake is a shell script for running CakePHP bake script
5+
# PHP 5
6+
#
7+
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8+
# Copyright 2005-2011, Cake Software Foundation, Inc.
9+
#
10+
# Licensed under The MIT License
11+
# Redistributions of files must retain the above copyright notice.
12+
#
13+
# @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
14+
# @link http://cakephp.org CakePHP(tm) Project
15+
# @package app.Console
16+
# @since CakePHP(tm) v 2.0
17+
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18+
#
19+
################################################################################
20+
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")
21+
22+
while [ -h "$LIB" ]; do
23+
DIR=$(dirname -- "$LIB")
24+
SYM=$(readlink "$LIB")
25+
LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
26+
done
27+
28+
LIB=$(dirname -- "$LIB")/
29+
APP=`pwd`
30+
31+
exec php -q "$LIB"cake.php -working "$APP" "$@"
32+
33+
exit;

app/Console/cake.bat

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2+
::
3+
:: Bake is a shell script for running CakePHP bake script
4+
:: PHP 5
5+
::
6+
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7+
:: Copyright 2005-2011, Cake Software Foundation, Inc.
8+
::
9+
:: Licensed under The MIT License
10+
:: Redistributions of files must retain the above copyright notice.
11+
::
12+
:: @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
13+
:: @link http://cakephp.org CakePHP(tm) Project
14+
:: @package app.Console
15+
:: @since CakePHP(tm) v 2.0
16+
:: @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17+
::
18+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
19+
20+
:: In order for this script to work as intended, the cake\console\ folder must be in your PATH
21+
22+
@echo.
23+
@echo off
24+
25+
SET app=%0
26+
SET lib=%~dp0
27+
28+
php -q "%lib%cake.php" -working "%CD% " %*
29+
30+
echo.
31+
32+
exit /B %ERRORLEVEL%

app/Console/cake.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/php -q
2+
<?php
3+
/**
4+
* Command-line code generation utility to automate programmer chores.
5+
*
6+
* PHP 5
7+
*
8+
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
9+
* Copyright 2005-2011, Cake Software Foundation, Inc.
10+
*
11+
* Licensed under The MIT License
12+
* Redistributions of files must retain the above copyright notice.
13+
*
14+
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
15+
* @link http://cakephp.org CakePHP(tm) Project
16+
* @package app.Console
17+
* @since CakePHP(tm) v 2.0
18+
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
19+
*/
20+
$ds = DIRECTORY_SEPARATOR;
21+
$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
22+
$found = false;
23+
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
24+
25+
foreach ($paths as $path) {
26+
if (file_exists($path . $ds . $dispatcher)) {
27+
$found = $path;
28+
}
29+
}
30+
31+
if (!$found && function_exists('ini_set')) {
32+
$root = dirname(dirname(dirname(__FILE__)));
33+
ini_set('include_path', $root . $ds. 'lib' . PATH_SEPARATOR . ini_get('include_path'));
34+
}
35+
36+
if (!include($dispatcher)) {
37+
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
38+
}
39+
unset($paths, $path, $found, $dispatcher, $root, $ds);
40+
41+
return ShellDispatcher::run($argv);

0 commit comments

Comments
 (0)