- 1
- 2
- 3
- 4
- 5
- 6
- 7
<?php
if ($this->user->is_phone == 1 OR $this->user->is_phone == true OR $this->user->is_phone == 'true') {
$this->smarty->assign('is_phone', 1);
} elseif ($this->user->is_phone == 0 OR $this->user->is_phone == false OR $this->user->is_phone == 'false') {
$this->smarty->assign('is_phone', 0);
}
m0003r 16.10.2015 15:26 # +1
guest 16.10.2015 22:09 # +3
$this->render('view', [
'is_phone' => $is_phone)
])
В пизду ваши смарти
inkanus-gray 16.10.2015 22:39 # 0
progsmile 18.10.2015 22:06 # 0
Stallman 18.10.2015 22:12 # +3
Vasiliy 19.10.2015 12:39 # +4