本文整理汇总了PHP中Settings::getRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::getRoute方法的具体用法?PHP Settings::getRoute怎么用?PHP Settings::getRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings
的用法示例。
在下文中一共展示了Settings::getRoute方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public static function index()
{
self::setHtmlHead();
if (!self::checkAndLoadInputParams()) {
self::wrongParams();
return;
}
$exportsName = ExportsModel::getTypes();
$data = array('exportsName' => $exportsName, 'formAction' => Settings::getRoute('pageOptions'), 'filename' => InputData::getGet('file'));
view::template('pageSetExportType', $data);
}
示例2: wrongParams
private static function wrongParams()
{
if (!self::$file) {
self::$errors[] = "Липсва файл!";
}
// if (!self::$convertType)
// self::$errors[] = "Липсва вид на конверта!";
if (!self::$convertType) {
Router::redirect(Settings::getRoute('pageSetExport') . '?file=' . self::$file);
}
$data = array('errors' => self::$errors);
View::template("pageError", $data);
}
示例3: index
public static function index()
{
self::setHtmlHead();
self::setHtmlHead();
if (!self::checkAndLoadInputParams()) {
self::wrongParams();
return;
}
$convertObject = new PHPExelLoadModel(InputData::getPost('file'));
if (!$convertObject) {
$this->dump("Error create Convert object");
return;
}
$data = $convertObject->getExelData();
$hotelsNames = array_keys($data['hotels']);
$data = array('hotelsNames' => $hotelsNames, 'formAction' => Settings::getRoute('pageConvert'), 'filename' => InputData::getPost('file'), 'convertType' => InputData::getPost('convertType'));
view::template('pageSetOptions', $data);
}
示例4: array
<br />
<br />
<br />
<br />
<div class="container-fluid container">
<div class="row">
<div class ='col-sm-3 text-left'>
<a href="<?php
echo Settings::getRoute('pageHome');
?>
" class="btn btn-primary btn active" role="button">Начало</a>
</div>
<div class ='col-sm-8 text-left'>
<div class='form-group'>
<label>
<h3>Хотели</h3>
</label>
</div>
<form method="POST" action="<?php
echo $formAction;
?>
" >
<?php
foreach ($hotelsNames as $name) {
?>
<div class='form-group col-sm-3 pull-left'>
<?php
echo View::template('system/htmlInput', array('data' => array('type' => 'checkbox', 'name' => 'hotelsNames[]', 'value' => $name, 'checked' => 'checked')));
echo $name;
?>
示例5: array
<?php
echo View::template('system/htmlInput', array('data' => array('type' => 'submit', 'value' => 'Конвертирай', 'class' => 'btn btn-primary')));
?>
</div>
</div>
</form>
</div>
<div class ='col-sm-4 separator pull-left'>
<label ><h3>Качени файлове:</h3></label>
<div id="existingFiles">
<?php
foreach ($existingFiles as $file) {
$file = end(explode('/', $file));
?>
- <a href="<?php
echo Settings::getRoute('pageSetExport') . '?file=' . $file;
?>
"><?php
echo $file;
?>
</a><br />
<?php
}
?>
</div>
</div>
</div>
</div>
<div id = 'footer'></div>