本文整理汇总了PHP中Layout::input方法的典型用法代码示例。如果您正苦于以下问题:PHP Layout::input方法的具体用法?PHP Layout::input怎么用?PHP Layout::input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Layout
的用法示例。
在下文中一共展示了Layout::input方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
$navigation = Part::block('parts/navigation');
示例2: HtmlBlock
<?php
Layout::input($title, 'string');
Layout::input($body, 'Block');
Layout::input($navigation, 'Block', new HtmlBlock());
Layout::input($style, 'Block', new HtmlBlock());
?>
<html>
<head>
<?php
if (!$style->draw()) {
Part::draw('parts/style');
}
?>
<title>{{appName}} - <?php
echo $title;
?>
</title>
</head>
<body>
<div class="container">
<div class="span-24">
<h1>{{appName}}</h1>
</div>
<div class="span-24 last">
<div class="navigation">
<?php
echo $navigation;
?>
</div>
<?php
示例3: HtmlBlock
<?php
Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
Layout::input($scripts, 'Block', new HtmlBlock());
$title .= ' > Database > ';
$navigation = Part::block('layouts/navigation', 'Database');
示例4:
<?php
Layout::extend('layouts/master');
Layout::input($body, 'Block');
Layout::input($title, 'string');
$title .= ' > Home > ';
$navigation = Part::block('layouts/navigation', '');
示例5:
<?php
Layout::extend('middle.master');
Layout::input($string, 'string');
$string .= ' middle';
$number = 2;
示例6:
<?php
Layout::input($context, 'string');
echo $context;
示例7:
<?php
Layout::input($string, 'string');
Layout::input($int, 'int');
Layout::input($object, 'ReallyObnoxiousClass');
if ($string == 'foo' && $int == 1 && get_class($object) == 'ReallyObnoxiousClass') {
echo 'great success';
} else {
echo 'fail.';
}
示例8:
<?php
Layout::input($default, 'string', 'great success');
echo $default;
示例9:
<?php
Layout::input($string, 'string');
Layout::input($number, 'int');
$string .= ' master';
for ($i = 0; $i < $number; $i++) {
echo $string;
}