質問

cakePhpの配列から表示するデータを取得しようとしています。配列には、find()出力とデータ出力の他の部分からすべてのデータがあります。

私がアクセスしようとしているデータは会社内の名前フィールドです。私が使用しているコードは echo $quote['Company']['name'] しかし、インデックスが定義されていないことを言って、それは戻ってきてエラーがあります。コード echo $quote['Status']['name'] 正常に動作します

配列の内容は次のようになります

    Array ( 
[Quote] => Array ( [id] => 3 [name] => Eighties Yeh that aint right [revision] => 1 [status_id] => 1 [contact_id] => 1 [totalcost] => 500 [created] => 2010-01-20 13:26:36 ) [Status] => Array ( [id] => 1 [name] => Open 
[Quote] => Array ( [id] => 3 [name] => Eighties Yeh that aint right [revision] => 1 [status_id] => 1 [contact_id] => 1 [totalcost] => 500 [created] => 2010-01-20 13:26:36 
[0] => Array ( [id] => 3 [name] => Eighties Yeh that aint right [revision] => 1 [status_id] => 1 [contact_id] => 1 [totalcost] => 500 [created] => 2010-01-20 13:26:36 ) 

[1] => Array ( [id] => 4 [name] => Test [revision] => 12 [status_id] => 1 [contact_id] => 1 [totalcost] => 23 [created] => 2010-01-20 19:05:36 ) ) ) 
[Contact] => Array ( [id] => 1 [company_id] => 1 [name] => Kieran Hutchinson [email] => kieran@redmeetsblue.com.au 
[Company] => Array ( [id] => 1 [name] => Red Meets Blue ) 
[Quote] => Array ( [id] => 2 [name] => Test Quote 2 [revision] => 1 [status_id] => 0 [contact_id] => 1 [totalcost] => 300 [created] => 2010-01-17 10:30:31 
[0] => Array ( [id] => 2 [name] => Test Quote 2 [revision] => 1 [status_id] => 0 [contact_id] => 1 [totalcost] => 300 [created] => 2010-01-17 10:30:31 ) 
[1] => Array ( [id] => 5 [name] => test 4 [revision] => 1 [status_id] => 3 [contact_id] => 1 [totalcost] => 233 [created] => 2010-01-20 19:05:55 ) 
[2] => Array ( [id] => 3 [name] => Eighties Yeh that aint right [revision] => 1 [status_id] => 1 [contact_id] => 1 [totalcost] => 500 [created] => 2010-01-20 13:26:36 ) [3] => Array ( [id] => 4 [name] => Test [revision] => 12 [status_id] => 1 [contact_id] => 1 [totalcost] => 23 [created] => 2010-01-20 19:05:36 ) 
[4] => Array ( [id] => 6 [name] => Test Lost Quote [revision] => 1 [status_id] => 4 [contact_id] => 1 [totalcost] => 123 [created] => 2010-01-21 16:00:43 ) 
[5] => Array ( [id] => 7 [name] => Test Pending QUote [revision] => 1 [status_id] => 2 [contact_id] => 1 [totalcost] => 321 [created] => 2010-01-21 16:00:57 ) ) ) [QuoteItem] => Array ( ) ) 
役に立ちましたか?

解決

dex2jar-0.0.9.8.zipファイルを抽出し、dex2jar-0.0.9.7 ...のようなデスクトップフォルダに移動してから、Android app classes.dexファイルを取り、このディレクトリに移動します。DEX2JAR Directory..TYPEこのコマンド

./d2j-dex2jar.sh classes.dex
.

classesdex2.jarファイルを取得し、Java Decompiler ... を使用してこのファイルを開くことができます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top