Поиск шаблона компонента в папке основного шаблона. Для упращения разработки нового шаблона совместно с компонентами
This commit is contained in:
parent
03cd371095
commit
95fc1b28c8
2 changed files with 18 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Коллекция
|
||||
*
|
||||
*
|
||||
*/
|
||||
class Collection implements ArrayAccess
|
||||
{
|
||||
|
|
@ -56,7 +56,7 @@ class Collection implements ArrayAccess
|
|||
return isset($this->data[$key]) && $this->data[$key] != '' ? $this->data[$key] : $default;
|
||||
}
|
||||
|
||||
public function getInt($key, $default = 0)
|
||||
public function getInt($key, $default = 0)
|
||||
{
|
||||
return (int)$this->get($key, $default);
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ class Collection implements ArrayAccess
|
|||
public function getNat($key, $default = 1)
|
||||
{
|
||||
$result = (int)$this->get($key, $default);
|
||||
return (($result > 0) ? $result : $default);
|
||||
return (($result > 0) ? $result : $default);
|
||||
}
|
||||
|
||||
public function clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue