Skip to content

Instantly share code, notes, and snippets.

@exa18
exa18 / siatka.php
Last active May 25, 2020 13:57
Oblicz długość siatki budowlanej w rolce oraz powierzchnie ( http://sandbox.onlinephpfunctions.com/ )
<?php
function circuit($sr){
return (2*pi() * ($sr/2));
}
/*
Wprowadź dane:
gr = gramatura w g/m2
Wymiary w cm:
@exa18
exa18 / controller.php
Last active August 31, 2017 20:15
Concrete5 get attribute select in block or controller
<?php
function __construct($obj = null)
{
parent::__construct($obj);
$db = Loader::db();
// attribute to get like selection field
$n='nav_item_class';
// Get SelectOptionID as SOL