def field_pattern data
validation = data[:validation]
validation
end
v = field_pattern validation: {type: 'length', length: '50-200'}
v[:type] # "length"
v[:length] # "50-200"
def field_pattern data
$validation = data[:validation]
$validation
end
$validation[:type] # "length"
$validation[:length] # "50-200"
request = RestClient.get("http://pddimp.yandex.ru/api2/admin/dkim/status?domain=domain.com&secretkey=yes",
:params => { :"PddToken" => "some token" })
active_link_to 'Каталог', controller: 'pages', action: 'index'
$sql = "select * from table where param_1 IN (select param_3 from table where param_3 not null)";
$r = mysql_query($sql);
while($row = mysql_fetch_array($r)) {
echo $row['id'];
}
php artisan cache:clear
chmod -R 777 app/storage
php artisan dump-autoload