我正在尝试调整此代码以对结果进行排序:
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication2"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<local:Control1 StackPanelInsideUserControl.TextBoxInsideUserControl.Text="{Binding SomeText}" />
</Grid>
我试过了:
$result = $this->Paginate('ReceivedCargo',
array('PNR_BROKERS' => $id )
);`
我做错了什么?
答案 0 :(得分:1)
尝试以下方法:
var TodoList = Backbone.Collection.extend({
model: TodoModel,
localStorage: true
});
顺便说一下,$this->Paginator->settings['ReceivedCargo']['conditions']['PNR_BROKERS']=$id
$this->Paginator->settings['ReceivedCargo']['order']=array(
'ReceivedCargo.PNR' => 'DESC'
);
$result = $this->Paginator->paginate('ReceivedCargo');
已弃用(为了向后兼容而提供)。您应该直接访问$this->Paginate()
。
有关详细信息,请参阅: