Skip to content

Instantly share code, notes, and snippets.

bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
@Xannn94
Xannn94 / gist:b84f541f690202e1f946d2ad12e6df78
Created March 7, 2017 10:09
php composer.phar install
PHP Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$'
in /var/www/u0289409/data/www/newtek-schmid.com/artisan on line 31
Script php artisan optimize handling the post-install-cmd event returned with error code 255
public function sendAction() {
if(!$this->_request->getParam('agreement')) {
$this->setErrorMessage($this->getTranslator()->_('Ошибка при отправке формы 1'));
print_r ($this->getForm()->getErrors());
$this->_renderForm();
return false;
}
<form class="online-app__form" method="POST" action="<?=$this->form->getAction()?>" id="js-terminal-form">
<?php if($this->error): ?>
<div class="error"><?php echo ($this->error) ?></div>
<?php endif ?>
<div class="online-app__form">
<!-- <div class="online-app__title">Персональные данные:</div> -->
<div class="b-form__item">
<div class="b-form-item b-form-item_type_text b-form-item_style_default">
@Xannn94
Xannn94 / таблица Photo
Created July 7, 2016 14:02
Название и тип
id int,
name text,
img text,
id album
@Xannn94
Xannn94 / таблица Album
Created July 7, 2016 14:01
Название и тип
id int ,
name text,
slug int,
description text,
@Xannn94
Xannn94 / Photo.php
Created July 7, 2016 13:57
модель App/Photo.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Photo extends Model
{
/**
* The database table used by the model.
@Xannn94
Xannn94 / Album.php
Created July 7, 2016 13:56
модель App/Album.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Album extends Model
{
/**
* The database table used by the model.
@Xannn94
Xannn94 / Album.php
Created July 7, 2016 13:54
Модель App/Admin/Album.php
<?php
/**
* Created by PhpStorm.
* User: daredevil
* Date: 06.07.16
* Time: 21:52
*/
use SleepingOwl\Admin\Model\ModelConfiguration;
AdminSection::registerModel(\App\Album::class, function (ModelConfiguration $model) {