Архив за месяц: Декабрь 2015

Дополнения для laravel

  1. composer install
  2. php artisan key:generate
  3. composer require illuminate/html
  4. composer require doctrine/dbal
'providers' => [
	...
 
	 Illuminate\Html\HtmlServiceProvider::class,
],
 
'aliases' => [
 
	...
 
        'Form'      => Illuminate\Html\FormFacade::class,
        'Html'      => Illuminate\Html\HtmlFacade::class,
],

Для проверки:

1
2
3
php artisan tinker
> Form::text('foo')
"<input name=\"foo\" type=\"text\">"

CakePHP 3 Datetime picker

[![Build Status](https://travis-ci.org/smalot/bootstrap-datetimepicker.svg?branch=master)](https://travis-ci.org/smalot/bootstrap-datetimepicker)

[Homepage](http://www.malot.fr/bootstrap-datetimepicker/)

[Demo page](http://www.malot.fr/bootstrap-datetimepicker/demo.php)

 <div class="input-append date form_datetime" data-date="<?= date("Y-m-dTh:i:sZ") ?>">
 <label for="begindate">Задача: дата и время начала</label>
 <span class="add-on"><i class="icon-remove"></i></span>
 <span class="add-on"><i class="icon-calendar"></i></span>
 <input size="16" type="text" name="begindate" value="" readonly>
 </div> 
 
 <div class="input-append date form_datetime" data-date="<?= date("Y-m-dTh:i:sZ") ?>"> 
 <label for="enddate">Задача: дата и время окончания</label> 
 <span class="add-on"><i class="icon-remove"></i></span>
 <span class="add-on"><i class="icon-calendar"></i></span>
 <input size="16" type="text" name="enddate" value="" readonly>
 </div>
 <?php 
 // echo $this->Form->input('begindate');
 // echo $this->Form->input('enddate');
 echo $this->Form->input('name');
 echo $this->Form->input('comment');
 ?>
 

 
<script type="text/javascript">
 $(".form_datetime").datetimepicker({
 language: 'ru',
 format: "yyyy-mm-dd hh:ii",
 autoclose: true,
 todayBtn: true,
 startDate: "<?= date("Y-m-d") ?>",
 minuteStep: 30
 });
</script>

windows 10 xampp port 80

I had the same problem on windows 10, IIS/10.0 was using port 80

To solve that:

  • find service «W3SVC»
  • disable it, or set it to «manual»

french name is: «Service de publication World Wide Web»

english name is: «World Wide Web Publishing Services» I think

german name is: «WWW-Publishingdienst» – thanks @fiffy

Polish name is: «Usługa publikowania w sieci WWW» — thanks @KrzysDan

Russian name is «Служба веб-публикаций» – thanks @Kreozot

Службы SQL Server Reporting Services (SQLEXPRESS2014) — при установленном MS SQL так же занимает 80 порт (отключаем при необходимости)