谁Mode="Minimized"在WP8.1 WINRT中设置了一个BottomAppBar?
我需要获取jasper文件中定义的参数,以便根据这些参数的类型生成输入以填充报告.
我正在和我一起工作jasperreports-5.0.0
当我从SVN中排除文件svn:ignore然后另一个人尝试提交排除的文件时,svn阻止他?或者他必须在他的电脑里做同样的命令?
我有一个目录结构如下:
/ files
/files/001
/files/001/addfile.php
/files/002
/files/002/deletefile.php
/files/003
/files/003/viewfile.php
我的剧本:
error_reporting(E_ALL);
$directory = 'files';
$files = scandir($directory);
$xml = new DOMDocument('1.0', 'UTF-8');
$xmlFiles = $xml->appendChild($xml->createElement('FILES'));
if(is_dir($directory)) {
print_r($files);
}
/*foreach($files as $file => $key) {
if($file == '.' || $file == '..') { continue; }
echo '$file: '.$file;
if(is_dir("$directory/$file")) {
$xmlDir->appendChild($xml->createElement($file));
}
else {
$xmlFiles->appendChild($xml->createElement('FILE', $file));
}
}*/
echo $xml->saveXML();
Run Code Online (Sandbox Code Playgroud)
我的问题:print_r($files)产出:
数组([0] =>.[1] => .. [2] => 001 [3] => 002 [4] => 003)
为什么scandir只输出目录而不是文件?
TIA,Nate
我正在尝试column在此处的销售订单网格中添加一个新的客户名称:
App/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php
Run Code Online (Sandbox Code Playgroud)
我想在管理客户中添加名称,如姓名.
我添加了以下代码:
protected function _getCollectionClass()
{
return 'sales/order_grid_collection';
}
protected function _prepareCollection()
{
$collection = Mage::getResourceModel($this->_getCollectionClass());
/*junpeng add start*/
$collection->getSelect()
->join(
'customer_entity',
'main_table.customer_id = customer_entity.entity_id', array('email' => 'email'));
$collection->getSelect()->join(
'customer_entity_varchar',
'main_table.entity_id = customer_entity_varchar.entity_id', array('name' => 'value')
);
/*junpeng add end*/
$this->setCollection($collection);
return parent::_prepareCollection();
}
protected function _prepareColumns()
{
$this->addColumn('name', array(
'header' => Mage::helper('sales')->__('Customer Name'),
'index' => 'name',
));
$this->addColumn('email', array(
'header' => Mage::helper('Sales')->__('Customer Email'),
'index' => 'email',
'type' => 'text',
));
}
Run Code Online (Sandbox Code Playgroud)
客户电子邮件是可以的,但添加客户名称不起作用!
有人可以帮我解决这个问题吗?
static public function check( $securityContext)
{
$user = $securityContext->getToken()->getUser();
if(is_object($user) && [...])
return **$this**->redirect(**$this**->generateUrl('route_recruteur_monespace'));
return $user->getRecruteur();
}
Run Code Online (Sandbox Code Playgroud)
我尝试使用新的Controller() - >但它不起作用,所以如何从静态方法调用redirect().谢谢.
<div class="content">
<div style="background:url(...jpg) no-repeat #01AEF0;" class="slide-small">
<div><strong>Title</strong></div>
<div class="read_more"><a class="t_10" href="http://example.com/">Read More</a></div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
当我点击div那个有class="content"我的代码调用功能时.当我点击Read More时,会调用该函数,然后打开新页面.我不需要调用该函数,只需打开href.