mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Now we use DEBUG=0 as default... Also potential security hole - error pages showing database info - are only show when DEBUG>1.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@270 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
dd5f22418e
commit
0535607f5a
6 changed files with 27 additions and 23 deletions
|
@ -16,7 +16,9 @@ view file, a user-customizable error page for handling invalid action dispatches
|
|||
<em><?=Inflector::camelize($this->name);?></em>
|
||||
</p>
|
||||
|
||||
<?if (DEBUG>1):?>
|
||||
<h2>Controller dump:</h2>
|
||||
<pre>
|
||||
<? print_r($this); ?>
|
||||
</pre>
|
||||
<?endif?>
|
|
@ -13,8 +13,9 @@ view file, a user-customizable error page for handling invalid controller dispat
|
|||
<strong>Fatal</strong>: Unable to load controller <em><?=$this->missingController;?></em>
|
||||
</p>
|
||||
|
||||
|
||||
<?if (DEBUG>1):?>
|
||||
<h2>Controller dump:</h2>
|
||||
<pre>
|
||||
<? print_r($this); ?>
|
||||
</pre>
|
||||
<?endif?>
|
|
@ -15,8 +15,9 @@ view file, a user-customizable error page for handling missing/invalid views dur
|
|||
action <em><?=$this->params['controller'];?>::<?=$this->params['action'];?></em>
|
||||
</p>
|
||||
|
||||
|
||||
<?if (DEBUG>1):?>
|
||||
<h2>Controller dump:</h2>
|
||||
<pre>
|
||||
<? print_r($this); ?>
|
||||
</pre>
|
||||
<?endif?>
|
|
@ -2,8 +2,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
|
||||
<head>
|
||||
<title><?=$title_for_layout?></title>
|
||||
<?=$this->charsetTag('UTF-8')?>
|
||||
<?=$this->cssTag('default')?>
|
||||
<?=$html->charsetTag('UTF-8')?>
|
||||
<?=$html->cssTag('default')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<h2>Introducing Cake</h2>
|
||||
|
||||
<p>Cake is a structure of libraries, classes and run-time infrastructure for PHP programmers. It's also what I use at work. It's based on certain conventions, so you may find it rigid at first. The directory structure is already laid out, and it's different from what most people use. From what I've experienced, a great many PHP programmers start as web- or graphic-designers, i.e. they are not university-educated programmers as many in C++ and Java-land. They invent their own, peculiar ways of solving problems and stick to them. Perhaps that's why so few people use PEAR and PECL libraries – they don't usually re-use their code. And I was one of them. (<?=$this->linkOut('continued...','http://sputnik.pl/docs/intro')?>)</p>
|
||||
<p>Cake is a structure of libraries, classes and run-time infrastructure for PHP programmers. It's also what I use at work. It's based on certain conventions, so you may find it rigid at first. The directory structure is already laid out, and it's different from what most people use. From what I've experienced, a great many PHP programmers start as web- or graphic-designers, i.e. they are not university-educated programmers as many in C++ and Java-land. They invent their own, peculiar ways of solving problems and stick to them. Perhaps that's why so few people use PEAR and PECL libraries – they don't usually re-use their code. And I was one of them. (<?=$html->linkOut('continued...','http://sputnik.pl/docs/intro')?>)</p>
|
||||
|
||||
<h2>Features</h2>
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
|||
|
||||
<h2>Getting involved</h2>
|
||||
|
||||
<p><b>NEW! <?=$this->linkOut('My Amazon Wishlish','http://www.amazon.com/gp/registry/registry.html?id=NODP8QT6LFTO')?></b> for when you'll want to show your appreciation.</p>
|
||||
<p><b>NEW! <?=$html->linkOut('My Amazon Wishlish','http://www.amazon.com/gp/registry/registry.html?id=NODP8QT6LFTO')?></b> for when you'll want to show your appreciation.</p>
|
||||
|
||||
<p><?=$this->linkOut('Cake PHP Google Group','http://groups-beta.google.com/group/cake-php')?> · <?=$this->linkOut('Cake Wiki (temporary)','http://cake.bplusf.net/')?> · <?=$this->linkOut('Cake TRAC (SVN repository, etc.)','https://developers.nextco.com/cake')?></p>
|
||||
<p><?=$html->linkOut('Cake PHP Google Group','http://groups-beta.google.com/group/cake-php')?> · <?=$html->linkOut('Cake Wiki (temporary)','http://cake.bplusf.net/')?> · <?=$html->linkOut('Cake TRAC (SVN repository, etc.)','https://developers.nextco.com/cake')?></p>
|
||||
|
||||
<p>See <?=$this->linkOut('Cake website','http://sputnik.pl/cake')?> for more information.</p>
|
||||
<p>See <?=$html->linkOut('Cake website','http://sputnik.pl/cake')?> for more information.</p>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* - 1: development
|
||||
* - 2: full debug with sql
|
||||
*/
|
||||
define ('DEBUG', 1);
|
||||
define ('DEBUG', 0);
|
||||
|
||||
/**
|
||||
* Compress output CSS (removing comments, whitespace, repeating tags etc.)
|
||||
|
|
Loading…
Reference in a new issue