Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>@Lunohodov</p> <p>(Sorry for posting an answer instead of a comment but I can't use this way cause of the characters limitation)</p> <p>Here is the action :</p> <pre><code>public function executeShowResult() { $user = $this-&gt;getUser(); $this-&gt;forward404Unless($user-&gt;hasFlash('resultsArray')); $this-&gt;results = $user-&gt;getFlash('resultsArray'); $user-&gt;setFlash('resultsArray', $this-&gt;results); $this-&gt;pager = new myArrayPager(null, 15); $this-&gt;pager-&gt;setResultArray($this-&gt;results); $this-&gt;pager-&gt;setPage($this-&gt;getRequestParameter('page')); $this-&gt;pager-&gt;init(); $this-&gt;myModule = $this-&gt;getRequestParameter('myModule'); $this-&gt;myTemplate = $this-&gt;getRequestParameter('myTemplate'); $forwardPage = '../../'.$this-&gt;getRequestParameter('myModule').'/templates/'.$this-&gt;getRequestParameter('myTemplate'); $this-&gt;setTemplate($forwardPage); return sfView::SUCCESS; } </code></pre> <hr> <p>Edit : Another interesting log. In my action which set the flash, I've put a log to test the set and hasFlash methods... and it worked :</p> <pre><code>$user = $this-&gt;getUser(); $user-&gt;setFlash('resultsArray', $this-&gt;results); if ($user-&gt;hasFlash('resultsArray')) { sfContext::getInstance()-&gt;getLogger()-&gt;info("The flash is set"); } else { sfContext::getInstance()-&gt;getLogger()-&gt;info("The flash is NOT set"); } </code></pre> <p>The logs for that :</p> <blockquote> <p>Mar 16 06:07:13 symfony [info] The flash is set</p> </blockquote> <p>I think I'm missing something big here...</p>
    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