Skip to content

Instantly share code, notes, and snippets.

View KorsaR-ZN's full-sized avatar

Stanislav Kiryukhin KorsaR-ZN

View GitHub Profile
<ul class="pagination">
<li <?= ($pagination['isFirst'] ? 'class="disabled"' : '') ?>>
<a href="<?= $pagination['prev_url'] ?>" class="btn-page btn-page-next"
data-start="<?= $pagination['prev_num'] ?>">
&laquo;
</a>
</li>
<?php foreach($pagination['pages'] as $page): ?>
<li class="<?= $page['class'] ?>">
<?php if(!$page['isSeparator']): ?>
@KorsaR-ZN
KorsaR-ZN / gist:e649cf5a1325112472d3
Created May 5, 2015 18:57
Phalcon Paginator tests
<?php
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file docs/LICENSE.txt. |
@KorsaR-ZN
KorsaR-ZN / gist:d8806544e46e7b720366
Created April 17, 2015 21:33
Phalcon extended view
<?php
/**
* ViewCascade.php 2014-07-23 20:31
* ----------------------------------------------
*
*
* @author Stanislav Kiryukhin <korsar.zn@gmail.com>
* @copyright Copyright (c) 2014, CKGroup.ru
*
* @version 0.0.1
@KorsaR-ZN
KorsaR-ZN / gist:f1d853fda1e70037ec01
Last active August 29, 2015 14:18
Specifies which related objects should be eagerly loaded for Phalcon models
<?php
/**
* WithTrait.php
* ----------------------------------------------
*
*
* @author Stanislav Kiryukhin <korsar.zn@gmail.com>
* @copyright Copyright (c) 2015, CKGroup.ru
*
* ----------------------------------------------