Сообщения

Сообщения за Сентябрь, 2015

bootstrap often uses elements

src: http://getbootstrap.com/components/!!!!!!! everywhere use col-sm!!!!!!!!!for devices.* left column:<div class="bs-callout bs-callout-info"><h4></h4> <p><?= $template->text ?></p></div>* header + text block:<div class="panel panel-info"><div class="panel-heading"><h3 class="panel-title"><?= $template->name ?></h3></div><div class="panel-body"><?= $template->text ?></div></div>* btn size:btn-lg btn-sm btn-xs.disabled.btn-disabled

zend framework 2 tips

************** basePath in controller
$renderer= $this->serviceLocator->get('Zend\View\Renderer\RendererInterface');$basePath = $renderer->basePath();
* change form element validators list:
$form =newYourForm(); $form->setData ( $yourPostedData ()); $formInputFilter = $form->getInputFilter ();// change filter $formInputFilter->remove ('your_field'); $inputFactory =new \Zend\InputFilter\Factory(); $formInputFilter->add ( $inputFactory->createInput ( array ('name'=>'your_field','required'=>false)));if($form->isValid ()){//... } * change elements for validation:
$form->remove(

ubuntu dropbox

find / -type f -name "dropboxd"
if smth: "echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p""
run it.

ООП

module uses interface to I/O between others modules. Implementation of interface methods could be done through call services from ServiceManager.

принципы:
1. Разделение ответственности между классами
2. Функции не всемогущи, они пишутся под конкретную задачу.

http://larin.in/archives/42

https://ru.wikipedia.org/wiki/%D0%90%D0%B3%D1%80%D0%B5%D0%B3%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5)

http://sergeyteplyakov.blogspot.ru/2012/12/vs-vs.html