You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2019. It is now read-only.
To run the serverside php + mysql code in this chapter you need php5 and mysql support.
1
+
To run the serverside php + mysql example code in this chapter you need php5 and mysql support.
2
2
3
3
4
+
Installing the software
5
+
-----------------------
6
+
4
7
On ubuntu linux you can install the required files like this as root:
5
8
6
9
apt-get install php5-mysql php5-json
7
10
11
+
On Mac osx you can use homebrew (further instructions at http://brew.sh )
12
+
13
+
On windows you can use the installers available from php.net and mysql.com
14
+
8
15
9
-
Database setup:
16
+
Mysql database setup
17
+
--------------------
10
18
11
19
The example file crud.php assumes that you have a database called "extjsinaction" accessible as user root with no pasword. Feel free to change this to your liking.
12
20
13
-
Tweaking the datastores to run locally:
21
+
You can find further instructions on user account management in section 6.3 in the mysql manual (available here: http://dev.mysql.com/doc/refman/5.6/en/user-account-management.html )
22
+
23
+
24
+
25
+
Tweaking the datastores to run locally
26
+
--------------------------------------
14
27
15
28
In 7.5_The_Employee_Store.html you can tweak urlRoot to match your local crud.php installation. Just remove "http://extjsinaction.com/" from urlRoot and you should pickup you local file. Remember to alter the proxy type from "jsonp" to "ajax" now that you are running locally. Now you should be able to experiment with datastores from your console in your browser.
0 commit comments