Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ext JS Data-driven Application Design

You're reading from   Ext JS Data-driven Application Design Learn how to build a user-friendly database in Ext JS using data from an existing database with this step-by-step tutorial. Takes you from first principles right through to implementation.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782165446
Length 162 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Kazuhiro Kotsutsumi Kazuhiro Kotsutsumi
Author Profile Icon Kazuhiro Kotsutsumi
Kazuhiro Kotsutsumi
Arrow right icon
View More author details
Toc

Reading data


Here, we will start to learn about how the various sections of our application will read data.

MyAccount

To begin with, let's start working on MyAccount. Let's create a class for Ext Direct. Here we will add the source code for a new PHP.

Because the source code is going to be a little long to be added to this text, please refer to your source file at: 09_reading_data_myaccount/php/classes/MyAppMyAccount.php.

Implement the readForm method. When a person logs in, it acquires the account information from the database by using the saved ID as a reference.

I'll hold back from explaining the PHP processing that happens around here. The main point is the returned associative array key.

The access key is a flag that gives the value true or false indicating whether the form's acquisition was successful or not. The data for each field is configured as an associative array in the data key. In order to use this readForm in Ext Direct, update the REMOTING_API output configurations.

We will add...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image