mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating some View files to follow convention
This commit is contained in:
parent
f63aa922f6
commit
39a1d76d08
3 changed files with 13 additions and 13 deletions
|
@ -23,9 +23,9 @@
|
||||||
<?php echo $this->Html->charset(); ?>
|
<?php echo $this->Html->charset(); ?>
|
||||||
<title><?php echo $page_title; ?></title>
|
<title><?php echo $page_title; ?></title>
|
||||||
|
|
||||||
<?php if (Configure::read('debug') == 0) { ?>
|
<?php if (Configure::read('debug') == 0): ?>
|
||||||
<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
|
<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
|
||||||
<?php } ?>
|
<?php endif; ?>
|
||||||
<style><!--
|
<style><!--
|
||||||
P { text-align:center; font:bold 1.1em sans-serif }
|
P { text-align:center; font:bold 1.1em sans-serif }
|
||||||
A { color:#444; text-decoration:none }
|
A { color:#444; text-decoration:none }
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
if (!isset($channel)) {
|
if (!isset($channel)):
|
||||||
$channel = array();
|
$channel = array();
|
||||||
}
|
endif;
|
||||||
if (!isset($channel['title'])) {
|
if (!isset($channel['title'])):
|
||||||
$channel['title'] = $title_for_layout;
|
$channel['title'] = $title_for_layout;
|
||||||
}
|
endif;
|
||||||
|
|
||||||
echo $this->Rss->document(
|
echo $this->Rss->document(
|
||||||
$this->Rss->channel(
|
$this->Rss->channel(
|
||||||
|
|
|
@ -101,12 +101,12 @@ if (isset($filePresent)):
|
||||||
} catch (Exception $connectionError) {
|
} catch (Exception $connectionError) {
|
||||||
$connected = false;
|
$connected = false;
|
||||||
$errorMsg = $connectionError->getMessage();
|
$errorMsg = $connectionError->getMessage();
|
||||||
if (method_exists($connectionError, 'getAttributes')) {
|
if (method_exists($connectionError, 'getAttributes')):
|
||||||
$attributes = $connectionError->getAttributes();
|
$attributes = $connectionError->getAttributes();
|
||||||
if (isset($errorMsg['message'])) {
|
if (isset($errorMsg['message'])):
|
||||||
$errorMsg .= '<br />' . $attributes['message'];
|
$errorMsg .= '<br />' . $attributes['message'];
|
||||||
}
|
endif;
|
||||||
}
|
endif;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
|
@ -127,13 +127,13 @@ if (isset($filePresent)):
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php
|
<?php
|
||||||
App::uses('Validation', 'Utility');
|
App::uses('Validation', 'Utility');
|
||||||
if (!Validation::alphaNumeric('cakephp')) {
|
if (!Validation::alphaNumeric('cakephp')):
|
||||||
echo '<p><span class="notice">';
|
echo '<p><span class="notice">';
|
||||||
echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
|
echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
|
||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
||||||
echo '</span></p>';
|
echo '</span></p>';
|
||||||
}
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue