Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>CONTROLLER: </p> <p>public function notesview() {</p> <pre><code> $allnotes = $this-&gt;User-&gt;Note-&gt;find('all', array('order'=&gt;'Note.created DESC')); if (!empty($this-&gt;params['requested'])) { return $allnotes; } } </code></pre> <p>VIEW:</p> <pre><code>&lt;?php echo $this-&gt;Html-&gt;css('notes'); echo $this-&gt;Html-&gt;script(array('jquery','jquery.elastic','notes')); ?&gt; &lt;div class="notescontainer"&gt; &lt;div class="share"&gt;Share:&lt;/div&gt; &lt;div class="notes"&gt;Notes&lt;/div&gt; &lt;div class="loading"&gt;&lt;/div&gt; &lt;div class="img_top"&gt;&lt;/div&gt; &lt;div class="text_status"&gt; &lt;?php echo $this-&gt;form-&gt;create('Note', array('action' =&gt; 'notes', 'onSubmit' =&gt; 'return loadingicon();')); echo $this-&gt;form-&gt;input('notes',array('class'=&gt;'notesbar','label'=&gt;'','placeholder'=&gt;'Write down you notes ...' )); ?&gt; &lt;/div&gt; &lt;div class="button_outside_border" id="share"&gt; &lt;div class="button_inside_border"&gt; &lt;?php echo $this-&gt;form-&gt;submit('Share',array('class' =&gt; 'sharebutton')); echo $this-&gt;form-&gt;end(); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;?php $allnotes = $this-&gt;requestAction(array('controller'=&gt;'Users', 'action'=&gt;'notesview')); foreach($allnotes as $viewnotes): { echo "&lt;div class='load_status'&gt;"; echo "&lt;img class='status_img' src="; echo $viewnotes['User']['image']; echo "&gt;"; echo "&lt;div class='status_text'&gt;" ?&gt; &lt;a href="users/profileview/&lt;?php echo $viewnotes['User']['id']?&gt;" class='blue'&gt; &lt;?php echo $viewnotes['User']['name']; echo "&lt;/a&gt;"; echo "&lt;p class='text'&gt;"; echo $viewnotes['Note']['notes']; echo "&lt;/p&gt;"; echo " &lt;a href='#' class='light_blue'&gt;Like&lt;/a&gt; &amp;middot; &lt;a href='#' class='light_blue'&gt;Comment&lt;/a&gt; &amp;middot "; echo "&lt;u class='date'&gt;"; echo $viewnotes['Note']['created']; echo"&lt;/u&gt;"; echo $this-&gt;element('comments'); echo "&lt;/div&gt;"; echo "&lt;div class='clear'&gt;&lt;/div&gt;"; echo "&lt;/div&gt;"; } endforeach; ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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