Author: uncleringo
Date: 2010-09-22 12:36:02 +0200 (Wed, 22 Sep 2010)
New Revision: 30962

Modified:
   
plugins/sfTrafficCMSPlugin/trunk/modules/sfTrafficCMSPlugin/actions/actions.class.php
Log:
Added slot to indicate the page being show for use with a nav menu on-state



Modified: 
plugins/sfTrafficCMSPlugin/trunk/modules/sfTrafficCMSPlugin/actions/actions.class.php
===================================================================
--- 
plugins/sfTrafficCMSPlugin/trunk/modules/sfTrafficCMSPlugin/actions/actions.class.php
       2010-09-22 09:36:43 UTC (rev 30961)
+++ 
plugins/sfTrafficCMSPlugin/trunk/modules/sfTrafficCMSPlugin/actions/actions.class.php
       2010-09-22 10:36:02 UTC (rev 30962)
@@ -38,6 +38,8 @@
     $this->page = $this->getRoute()->getObject();
 
     $this->forward404Unless($this->page);
+
+    $this->getResponse()->setSlot('simple_page-' . $this->page->slug, true);
   }
 
   public function executeShowSubPage(sfWebRequest $request)
@@ -47,5 +49,7 @@
             ->fetchOne();
 
     $this->forward404Unless($this->subPage);
+
+    $this->getResponse()->setSlot('simple_sub_page-' . $this->subPage->slug, 
true);
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to