小编Oua*_*die的帖子

如何为BottomAppBar WP8.1指定最小化模式

Mode="Minimized"WP8.1 WINRT中设置了一个BottomAppBar

appbar winrt-xaml windows-phone-8.1

13
推荐指数
2
解决办法
2617
查看次数

如何获取jasper文件中定义的参数?

我需要获取jasper文件中定义的参数,以便根据这些参数的类型生成输入以填充报告. 我正在和我一起工作
jasperreports-5.0.0

jasper-reports ireport java-ee

7
推荐指数
1
解决办法
4639
查看次数

svn:忽略本地到电脑?

当我从SVN中排除文件svn:ignore然后另一个人尝试提交排除的文件时,svn阻止他?或者他必须在他的电脑里做同样的命令?

svn version-control

4
推荐指数
1
解决办法
3412
查看次数

php scandir()没有显示文件 - 只显示目录

我有一个目录结构如下:

/ 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

php scandir

3
推荐指数
1
解决办法
1744
查看次数

magento - 在magento 1.7.0.2中添加客户名称以订购网格

我正在尝试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)

客户电子邮件是可以的,但添加客户名称不起作用!

有人可以帮我解决这个问题吗?

magento magento-1.7

2
推荐指数
1
解决办法
5359
查看次数

从静态方法Symfony2重定向?

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().谢谢.

php methods redirect static symfony

1
推荐指数
1
解决办法
3665
查看次数

jquery阻止调用函数

<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.

jquery

0
推荐指数
1
解决办法
50
查看次数