Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to check session in zend layout
    primarykey
    data
    text
    <p>layout.phtml:</p> <pre><code>&lt;?php echo $this-&gt;doctype() ?&gt; &lt;html&gt; &lt;head&gt; &lt;?php echo $this-&gt;headTitle()."\n"; ?&gt; &lt;?php echo $this-&gt;headLink() ."\n"; ?&gt; &lt;?php echo $this-&gt;headScript(); ?&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrap"&gt; &lt;div class="header"&gt; &lt;div class="logo"&gt;&lt;a href="index.html"&gt;&lt;img src="../../images/logo.gif" alt="" title="" border="0" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div id="menu"&gt; &lt;ul&gt; &lt;li class="selected"&gt;&lt;a href="index.html"&gt;home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="about.phtml"&gt;about us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="category.phtml"&gt;books&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="specials.phtml"&gt;specials books&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="myaccount.phtml"&gt;my accout&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="register.phtml"&gt;register&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="details.phtml"&gt;prices&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.phtml"&gt;contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="addbook.phtml"&gt;adddbook&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="center_content"&gt; &lt;div class="left_content"&gt; &lt;?php echo $this-&gt;layout()-&gt;content ?&gt; </code></pre> <p>I am new to zend framework here i am facing problem with displaying navigations. in pure php i can serve my navigation by checking sessions. like this:</p> <pre><code>&lt;?php if($_SESSION['usertype']=='admin') { echo "&lt;li&gt;&lt;a href="addbook.phtml"&gt;adddbook&lt;/a&gt; &lt;/li&gt;"; } ?&gt; </code></pre> <p>My question is how can i implement this in zend framework. Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload