English 中文(简体)
• 如何检索在发现或读时使用的电梯
原标题:How to retrieve the cakephp used query in find or read
  • 时间:2012-05-21 05:20:23
  •  标签:
  • cakephp

通常,我们通过检查 s-泵来检查发现。 但是,如果通过麻省进行询问,是不可能的。 我们怎样才能检查一下从背部或以任何方式用手法印刷作业的鞭)。

问题回答

如果你在控制器法中给出<代码>$this->layout=ajax ,那么该编码不会显示问题。 因此,如果你想看问题,就只是确定你正常布局(仅用于测试)的布局,并检查问询,然后恢复守则。

因此,为了找到问题,你必须遵循这些步骤。

1-现在着手打碎盒,找到这个途径cakelibsmodelsourcesdbodbo_mysql.php

2- 职能_execute。 这一职能负责所有问询,即震荡者办公室的职能。

3-bug 美元等变量

function _execute($sql) {
            echo $sql;
        return mysql_query($sql, $this->connection);
    }

4- 在震荡的实验室背景检索功能之后,该代码失效。 喜欢

$referral = $this->find( first , array(
             conditions  => array( Referral.id  => $id)
        ));
die();

5- 如果是麻省,请你在大火中看到问题。

<>说明: 最后一个显示的疑问是您在去世之前的希望询问。





相关问题
PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

specifying date format when using $form->inputs() in CakePHP

I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...

Using DISTINCT in a CakePHP find function

I am writing a CakePHP 1.2 app. I have a list of people that I want the user to be able to filter on different fields. For each filterable field, I have a drop down list. Choose the filter ...

Assistance with CakePHP model relationships

How would I represent the following in a CakePHP model? Product ======= product_id .... Cart ==== cart_id .... Carts_Products ============== cart_id product_id quantity

Prevent controller from trying to autoload model

I am a beginning Cake user and trying to do some work on an already existing application. Running into a problem when I create a new controller. I have created StoreController and when I try to call ...

热门标签