我需要使用 extjs4 将 php 变量的值传递给另一个文件,我在页面顶部有这个:
$userid = $_POST['userid'];
这是我的 extjs 代码
echo("
{
title: 'Users',
xtype: 'gridpanel',
autoScroll: true,
layout: 'fit',
store: {
storeId: 'test',
fields: [
{name: 'ID', type: 'string'},
{name: 'Name', type: 'string'},
{name: 'Admin', type: 'string'}
],
proxy: {
type: 'ajax',
url : 'GetScripts/getUsers.php',
reader: 'json'
},
autoLoad: true
},
我需要将 $userid 传递给 getUsers.php。我可以得到一些帮助吗?