Permalink
Browse files

update for 0.0.10

  • Loading branch information...
1 parent c09a80b commit 9014f63cd090044b52b40b5eead04a77bb22c9ea Yoshi committed Jun 2, 2012
@@ -46,7 +46,7 @@ public function indexAction()
/**
* @Route("/content", name="rock_flow_demo_ajax_partial", defaults={"_format"="html"}, requirements={"_format"="html"})
* @Route("/content/{state}", name="rock_flow_demo_ajax_partial_state", defaults={"_format"="html"}, requirements={"_format"="html"})
- * @WAT("Demo", route="rock_flow_demo_ajax_partial_state", vars={"isHandleBefore"=false, "useUrlClean"=false})
+ * @WAT("Demo", route="rock_flow_demo_ajax_partial_state", vars={"isHandleBefore"=false, "useCleanUrl"=false, "uniqueBy"="id"})
* @Template("DemoFrontendBundle:BasicDemo:content/{state}.html.twig")
*/
public function contentAction(Request $request)
@@ -53,12 +53,13 @@ public function partAction()
}
/**
- * @WAT("Demo", route="rock_flow_demo_basic_state", vars={"isHandleBefore"=true, "useUrlClean"=false})
+ * @Route("/partial")
* @Template("DemoFrontendBundle:BasicDemo:content/first.html.twig")
+ * @WAT("Demo", route="rock_flow_demo_basic_state", vars={"isHandleBefore"=true, "useCleanUrl"=false})
*/
public function partialAction(IFlowTraversal $_traversal)
{
- return array();
+ //return array();
}
}
@@ -40,8 +40,7 @@ class CrudDemoController extends Controller
* @Route("/list/{page}", name="rock_flow_crud_demo_list_state", defaults={"state"="show"})
* @Template("DemoFrontendBundle:CrudDemo:list.html.twig")
* @WAT("PagerList", route="rock_flow_crud_demo_list_state")
- * @WATVars({"routeVars"={"page"}})
- * @WATVars({"cleanOnComplete" = false, "useUrlClean"=false})
+ * @WATVars({"cleanOnComplete" = false, "useCleanUrl"=false})
* @WATDelegate("*:show", provider="TestDelegates", method="onCollectData")
* @WATVars({"DataCollectionDelegates.sizePerPage"=3});
*/
@@ -68,4 +68,15 @@ public function downloadAction()
//return new RedirectResponse($this->generateUrl('_demo_home'));
}
+
+
+ /**
+ * @Route("/clear", name="demo_clear")
+ */
+ public function clear()
+ {
+ $this->get('session')->remove('rock.wat');
+
+ return new RedirectResponse($this->generateUrl('_demo_home'));
+ }
}
@@ -27,6 +27,7 @@
<ul id="menu">
{% block content_header_more %}
<li><a href="{{ path('_demo_home') }}">Demo Home</a></li>
+ <li><a href="{{ path('demo_clear') }}">Clear</a></li>
{% endblock %}
</ul>

0 comments on commit 9014f63

Please sign in to comment.