snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#42492

HTML

Lock the layout's resolution to a 1:1 ratio so that each pixel exactly lines up with the pixels in the iPad's screen.

<meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />
https://snipt.net/embed/72b2329ba95806f00012979169d12492/
https://snipt.net/raw/72b2329ba95806f00012979169d12492/
72b2329ba95806f00012979169d12492
html
HTML
1
2014-04-16T21:30:53
True
False
/api/public/snipt/42492/
lock-the-layouts-resolution-to-a-11-ratio-so-that-each-pixel-exactly-lines-up-with-the-pixels-in-the-ipads-screen
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nt">&lt;meta</span> <span class="na">name=</span><span class="s">&quot;viewport&quot;</span> <span class="na">content=</span><span class="s">&quot;width=768px, minimum-scale=1.0, maximum-scale=1.0&quot;</span> <span class="nt">/&gt;</span> </span></pre></div> </td></tr></table>
ipad, layout, meta, screen
#36554

PHP

Zend disable from controller layout and view renderer

1
2
3
4
<?php

$this->_helper->layout()->disableLayout();//enableLayout();
 $this->_helper->viewRenderer->setNoRender(true);
https://snipt.net/embed/21572be175a2991d2f952318bc80e806/
https://snipt.net/raw/21572be175a2991d2f952318bc80e806/
21572be175a2991d2f952318bc80e806
php
PHP
4
2014-04-17T01:09:58
True
False
/api/public/snipt/36554/
zend-disable-from-controller-layout-and-view-renderer
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">_helper</span><span class="o">-&gt;</span><span class="na">layout</span><span class="p">()</span><span class="o">-&gt;</span><span class="na">disableLayout</span><span class="p">();</span><span class="c1">//enableLayout();</span> </span><span id="L-4"><a name="L-4"></a> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">_helper</span><span class="o">-&gt;</span><span class="na">viewRenderer</span><span class="o">-&gt;</span><span class="na">setNoRender</span><span class="p">(</span><span class="k">true</span><span class="p">);</span> </span></pre></div> </td></tr></table>
layout, view, zend