Magento编译在管理面板中未启用(Magento Compilation Not enabling in Admin panel)
我试图在Magento管理面板中启用“编译” 。 当我单击启用按钮时,它显示“ 编译器包含路径已启用 ”meassage,但magento“ 编译器状态 ”显示“ 禁用” ,按钮在右上角显示“ 启用 ”选项。
如何在管理面板中解决此问题? 请建议我解决这个问题?
谢谢
I have tried to enable "Compilation" in Magento admin panel. When I click enable button it shows "Compiler include path is enabled" meassage, But magento "Compiler Status" shows "Disable" and button shows "Enable" option in top right.
How to fix this issue in admin panel? Please suggest me to solve this problem?
Thanks
原文:https://stackoverflow.com/questions/11372661
最满意答案
尝试
'order' => array( 'Attraction.sequence' => 'asc', 'Attraction.id' => 'asc' ),
编辑:
排序方向必须在数组值中,而字段名称应该是索引。 我在文件中找到的考试总是表明这一点
try
'order' => array( 'Attraction.sequence' => 'asc', 'Attraction.id' => 'asc' ),
edit:
The sorting direction must be in the array value, while the field name should be the index. The examles I found in the documentations are always showing that
相关问答
更多-
为什么CakePHP 3.2 Paginator不会对我的查询结果进行排序?(Why won't CakePHP 3.2 Paginator sort on my query results?)[2024-01-15]
您需要将要允许排序的字段列入白名单,如: 分页 public $paginate = [ 'sortWhitelist' => [ 'id', 'title', 'Users.username', 'created' ] ]; 否则默认情况下,蛋糕3阻止它 You need to whitelist the fields that you want to allow to be sorted like in: Pagination public $paginate = [ ... -
Router::connect('/cumple/*', array('controller' => 'birth', 'action' => 'index')); Router::connect('/cumple/*', array('controller' => 'birth', 'action' => 'index'));
-
我弄明白发生了什么。 我在Paginator组件中遇到这种情况: if ($requestedPage > $page) { throw new NotFoundException(); } 使用额外的过滤器,我没有足够的结果来保证第2页,因此抛出了异常。 我不确定如何解决它。 如果用户在第2页,第3页等结果并选择另一个过滤器,如果过滤结果低于我的限制,我需要丢弃分页。 The answer ended up being right in the document ...
-
尝试 'order' => array( 'Attraction.sequence' => 'asc', 'Attraction.id' => 'asc' ), 编辑: 排序方向必须在数组值中,而字段名称应该是索引。 我在文件中找到的考试总是表明这一点 try 'order' => array( 'Attraction.sequence' => 'asc', 'Attraction.id' => 'asc' ), edit: The sorting directi ...
-
bindModel无法处理Paginator条件[CakePHP](bindModel not working on Paginator conditions [CakePHP])[2023-01-21]
我找到了解决方案,在这里,以防有人需要它: 我像这样设置分页: $this->paginate['Payment'] = array( 'contain'=>array( 'Sale'=>array( 'Customer' ) ), 'joins'=>array( array( 'table'=>'customers', 'alias'=>'Customer', 'type'=>'INNER', 'con ... -
如何使用CakePHP 3中的Paginator对外部字段进行排序(How to sort external fields using Paginator in CakePHP 3)[2023-08-20]
正如JoséLorenzo在Cakephp 3.x中所说的分页排序一样 ,Paginator会阻止主表中不可用的每个字段。 因此,如果您需要通过外部字段进行排序,则必须在连接表中指定cakephp使用的完全限定名称。 在我的示例中,我需要指定以下内容: $this->paginate = [ 'contain' => ['Actors'], 'sortWhitelist'=>['Actors.description'] ]; 并在视图中使用此表达式: = $this->Paginato ... -
cakephp 1.3,如何使用Paginator-> sort()两列?(cakephp 1.3, how to use Paginator->sort() for two columns?)[2022-05-03]
我认为这将有效 - 在控制器中创建两个不同的变量: $paginate1 = $this->paginate('conditions...') $paginate2 = $this->paginate('conditions...') 如果没有弄错,我曾经遇到类似的问题,这就是我解决它的方法。 I think this will work - create two different variables in the controller: $paginate1 = $this->paginate('con ... -
CakePHP paginator忽略了顺序,但只针对某些值(CakePHP paginator ignoring order, but only for certain values)[2022-11-14]
哎呀。 这是一个数据库错误; 不知何故,创建的记录只包含其中的一些字段(例如,_ id,创建,修改和其他一些字段),这不是巧合的唯一可以排序的字段。 删除它让一切恢复正常。 奇怪的是,进行搜索可以正常工作,但使用相同参数进行分页则不会。 也许它毕竟是插件/ Cake bug? Oops. It was a database error; somehow, a record got created with only a few of the fields in it (e.g., _id, created, ... -
你如何对CakePHP中使用的paginator和CSS进行样式化?(How do you style the paginator used in CakePHP with CSS?)[2022-08-31]
请参阅: http : //www.switchonthecode.com/tutorials/cakephp-part-6-pagination和http://api.cakephp.org/class/paginator-helper 这里突出的是你可以将选项传递给next(),prev()和numbers() 你想要做的是通过类选项。 例如 $paginator->prev( '<< Previous', array( 'class' => 'PrevPg' ) ... -
首先,你需要确保你用于Paginator的路由有一个Query String子路由,我建议你有一个专门用于分页列表的路由,例如: 'router' => array( 'routes' => array( 'paginator_route' => array( 'type' => 'segment', 'options' => array( 'route' => '/list/:controller/:ac ...