From e62dfb1a310aff5efa285e8bde018314e6f70b50 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 2 Aug 2012 12:12:19 +0000 Subject: 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) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-php-weave/trunk@9 d972a294-176a-4cf9-8ea1-fcd5b0c30f5c --- .../in/app/View/Layouts/Emails/html/default.ctp | 29 ++++++++++ .../in/app/View/Layouts/Emails/text/default.ctp | 21 ++++++++ .../src/workdir/in/app/View/Layouts/ajax.ctp | 19 +++++++ .../src/workdir/in/app/View/Layouts/default.ctp | 61 ++++++++++++++++++++++ .../src/workdir/in/app/View/Layouts/error.ctp | 61 ++++++++++++++++++++++ .../src/workdir/in/app/View/Layouts/flash.ctp | 37 +++++++++++++ .../src/workdir/in/app/View/Layouts/js/default.ctp | 2 + .../workdir/in/app/View/Layouts/rss/default.ctp | 14 +++++ .../workdir/in/app/View/Layouts/xml/default.ctp | 1 + 9 files changed, 245 insertions(+) create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/html/default.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/Emails/text/default.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/ajax.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/default.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/error.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/flash.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/js/default.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/rss/default.ctp create mode 100644 poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts/xml/default.ctp (limited to 'poc/poc02-compiling-cake/src/workdir/in/app/View/Layouts') 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 echo $title_for_layout;?> + + + + +

This email was sent using the CakePHP Framework

+ + \ 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 @@ + + + +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 @@ + +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 @@ + + + + + Html->charset(); ?> + + <?php echo $cakeDescription ?>: + <?php echo $title_for_layout; ?> + + Html->meta('icon'); + + echo $this->Html->css('cake.generic'); + + echo $this->fetch('meta'); + echo $this->fetch('css'); + echo $this->fetch('script'); + ?> + + +
+ +
+ + Session->flash(); ?> + + fetch('content'); ?> +
+ +
+ element('sql_dump'); ?> + + 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 @@ + + + + + Html->charset(); ?> + + <?php echo $cakeDescription ?>: + <?php echo $title_for_layout; ?> + + Html->meta('icon'); + + echo $this->Html->css('cake.generic'); + + echo $this->fetch('meta'); + echo $this->fetch('css'); + echo $this->fetch('script'); + ?> + + +
+ +
+ + Session->flash(); ?> + + fetch('content'); ?> +
+ +
+ element('sql_dump'); ?> + + 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 @@ + + + + +Html->charset(); ?> +<?php echo $page_title; ?> + + + + + + + +

+ + \ 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 @@ + + 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 @@ +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 @@ +fetch('content'); ?> -- cgit v1.2.3