summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-08-02 12:12:19 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-08-02 12:12:19 +0000
commite62dfb1a310aff5efa285e8bde018314e6f70b50 (patch)
tree48ef6707c44ec8a4f8307bec0dc30b0ef589d023 /poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts
parent16cb6f4e2c7820f8e5d31c23d3497c459041bb6d (diff)
download2012-php-weave-e62dfb1a310aff5efa285e8bde018314e6f70b50.tar.gz
2012-php-weave-e62dfb1a310aff5efa285e8bde018314e6f70b50.tar.bz2
2012-php-weave-e62dfb1a310aff5efa285e8bde018314e6f70b50.zip
Application Blog fonctionnelle avec repertoire du framework separé et mod-rewrite utilisé (donc le index.php à la racine ne sert pas, c'est le app/webroot/index.php qui sert)
git-svn-id: file:///var/svn/2012-php-weave/trunk@9 d972a294-176a-4cf9-8ea1-fcd5b0c30f5c
Diffstat (limited to 'poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts')
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/html/default.ctp29
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/text/default.ctp21
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/ajax.ctp19
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/default.ctp61
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/error.ctp61
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/flash.ctp37
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/js/default.ctp2
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/rss/default.ctp14
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/xml/default.ctp1
9 files changed, 245 insertions, 0 deletions
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/html/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/html/default.ctp
new file mode 100644
index 0000000..4d360d9
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/html/default.ctp
@@ -0,0 +1,29 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts.Emails.html
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+<head>
+ <title><?php echo $title_for_layout;?></title>
+</head>
+<body>
+ <?php echo $content_for_layout;?>
+
+ <p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>
+</body>
+</html> \ No newline at end of file
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/text/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/text/default.ctp
new file mode 100644
index 0000000..94ed222
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/text/default.ctp
@@ -0,0 +1,21 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts.Emails.text
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+?>
+<?php echo $content_for_layout;?>
+
+This email was sent using the CakePHP Framework, http://cakephp.org.
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/ajax.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/ajax.ctp
new file mode 100644
index 0000000..c0da850
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/ajax.ctp
@@ -0,0 +1,19 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+?>
+<?php echo $this->fetch('content'); ?>
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/default.ctp
new file mode 100644
index 0000000..39704bf
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/default.ctp
@@ -0,0 +1,61 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+
+$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <?php echo $this->Html->charset(); ?>
+ <title>
+ <?php echo $cakeDescription ?>:
+ <?php echo $title_for_layout; ?>
+ </title>
+ <?php
+ echo $this->Html->meta('icon');
+
+ echo $this->Html->css('cake.generic');
+
+ echo $this->fetch('meta');
+ echo $this->fetch('css');
+ echo $this->fetch('script');
+ ?>
+</head>
+<body>
+ <div id="container">
+ <div id="header">
+ <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>
+ </div>
+ <div id="content">
+
+ <?php echo $this->Session->flash(); ?>
+
+ <?php echo $this->fetch('content'); ?>
+ </div>
+ <div id="footer">
+ <?php echo $this->Html->link(
+ $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
+ 'http://www.cakephp.org/',
+ array('target' => '_blank', 'escape' => false)
+ );
+ ?>
+ </div>
+ </div>
+ <?php echo $this->element('sql_dump'); ?>
+</body>
+</html>
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/error.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/error.ctp
new file mode 100644
index 0000000..4947734
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/error.ctp
@@ -0,0 +1,61 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+
+$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <?php echo $this->Html->charset(); ?>
+ <title>
+ <?php echo $cakeDescription ?>:
+ <?php echo $title_for_layout; ?>
+ </title>
+ <?php
+ echo $this->Html->meta('icon');
+
+ echo $this->Html->css('cake.generic');
+
+ echo $this->fetch('meta');
+ echo $this->fetch('css');
+ echo $this->fetch('script');
+ ?>
+</head>
+<body>
+ <div id="container">
+ <div id="header">
+ <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>
+ </div>
+ <div id="content">
+
+ <?php echo $this->Session->flash(); ?>
+
+ <?php echo $this->fetch('content'); ?>
+ </div>
+ <div id="footer">
+ <?php echo $this->Html->link(
+ $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
+ 'http://www.cakephp.org/',
+ array('target' => '_blank', 'escape' => false)
+ );
+ ?>
+ </div>
+ </div>
+ <?php echo $this->element('sql_dump'); ?>
+</body>
+</html>
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/flash.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/flash.ctp
new file mode 100644
index 0000000..76fae34
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/flash.ctp
@@ -0,0 +1,37 @@
+<?php
+/**
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.View.Layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<?php echo $this->Html->charset(); ?>
+<title><?php echo $page_title; ?></title>
+
+<?php if (Configure::read('debug') == 0) { ?>
+<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
+<?php } ?>
+<style><!--
+P { text-align:center; font:bold 1.1em sans-serif }
+A { color:#444; text-decoration:none }
+A:HOVER { text-decoration: underline; color:#44E }
+--></style>
+</head>
+<body>
+<p><a href="<?php echo $url; ?>"><?php echo $message; ?></a></p>
+</body>
+</html> \ No newline at end of file
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/js/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/js/default.ctp
new file mode 100644
index 0000000..7239b5d
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/js/default.ctp
@@ -0,0 +1,2 @@
+<?php echo $scripts_for_layout; ?>
+<script type="text/javascript"><?php echo $this->fetch('content'); ?></script>
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/rss/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/rss/default.ctp
new file mode 100644
index 0000000..077de61
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/rss/default.ctp
@@ -0,0 +1,14 @@
+<?php
+if (!isset($channel)) {
+ $channel = array();
+}
+if (!isset($channel['title'])) {
+ $channel['title'] = $title_for_layout;
+}
+
+echo $this->Rss->document(
+ $this->Rss->channel(
+ array(), $channel, $this->fetch('content')
+ )
+);
+?>
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/xml/default.ctp b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/xml/default.ctp
new file mode 100644
index 0000000..fbd5ee0
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/xml/default.ctp
@@ -0,0 +1 @@
+<?php echo $this->fetch('content'); ?>