Selaa lähdekoodia

Liens entre my-network et my-network/search

bastien 13 vuotta sitten
vanhempi
commit
a96a6c8790

+ 10 - 0
src/Muzich/MynetworkBundle/Controller/MynetworkController.php Näytä tiedosto

@@ -28,4 +28,14 @@ class MynetworkController extends Controller
28 28
     );
29 29
   }
30 30
   
31
+  /**
32
+   * 
33
+   * @Template()
34
+   */
35
+  public function searchAction()
36
+  {
37
+    
38
+    return array();
39
+  }
40
+  
31 41
 }

+ 6 - 1
src/Muzich/MynetworkBundle/Resources/config/routing.yml Näytä tiedosto

@@ -1,4 +1,9 @@
1 1
 
2 2
 mynetwork_index:
3 3
   pattern:  /my-network
4
-  defaults: { _controller: MuzichMynetworkBundle:Mynetwork:index }
4
+  defaults: { _controller: MuzichMynetworkBundle:Mynetwork:index }
5
+  
6
+mynetwork_search:
7
+  pattern:  /my-network/search
8
+  defaults: { _controller: MuzichMynetworkBundle:Mynetwork:search }
9
+  

+ 6 - 0
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/index.html.twig Näytä tiedosto

@@ -3,6 +3,12 @@
3 3
 {% block title %}Mon réseau{% endblock %}
4 4
 
5 5
 {% block content %}
6
+
7
+  <p>
8
+    <a href="{{ path('mynetwork_search') }}" >
9
+      Rechercher
10
+    </a>
11
+  </p>
6 12
   
7 13
   {% if followeds_users %}
8 14
     <b>Utilisateurs</b>

+ 15 - 0
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/search.html.twig Näytä tiedosto

@@ -0,0 +1,15 @@
1
+{% extends "MuzichMynetworkBundle::layout.html.twig" %}
2
+
3
+{% block title %}Mon réseau{% endblock %}
4
+
5
+{% block content %}
6
+
7
+  <p>
8
+    <a href="{{ path('mynetwork_index') }}" >
9
+      Retour
10
+    </a>
11
+  </p>
12
+  
13
+  
14
+
15
+{% endblock %}