Permalink
Browse files

documentation about api.js

  • Loading branch information...
1 parent 8cdae7b commit 14d87a6dfd11e48fcdeb787e085f80118c97e43f @ghua committed Oct 29, 2012
Showing with 10 additions and 1 deletion.
  1. +9 −0 Resources/doc/index.eng.md
  2. +1 −1 Resources/doc/index.rus.md
View
9 Resources/doc/index.eng.md
@@ -96,6 +96,15 @@ Alternative way, add to deps file:
defaults: { _controller: chat_service:chat, params: true, form: true }
</pre>
+### Add to the template ###
+
+ <script type="text/javascript" src="{{ url('ExtDirectBundle_api')}}"></script>
+
+Add a extdirect provider in your ExtJS application:
+
+ Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);
+
+
Example of Use
--------------------
View
2 Resources/doc/index.rus.md
@@ -100,7 +100,7 @@ DirectBundle -- это реализация ExtDirect спецификации
В вашем базовом шаблоне, добавьте:
- <script type="text/javascript" src="/api.js"></script>
+ <script type="text/javascript" src="{{ url('ExtDirectBundle_api')}}"></script>
В ExtJS приложении добавьте параметры подключения ExtDirect:

0 comments on commit 14d87a6

Please sign in to comment.