Note that there are some explanatory texts on larger screens.

plurals
  1. USRafael
    primarykey
    data
    text
    plurals
    1. COActually, Murphy, no, that's not the problem, because, as I wrote before, I've set an example using 'Anything::model->fieldname->name' the name here stands for the name of the field as a constant, not as a value itself, I don't see why is it so hard to get that kind of information when it's inductive that you have it in the model itself. How is the app to determine which field name I am looking for? That's simple, I'm telling it the field I'm using... in return I want the field name, as it could've been a nickname or so. That's pretty common in Zend framework.
      singulars
    2. COYeah, that's not what I meant... you see, I have this Model already, what I want to know it's a way I can get the field name having sure I didn't wrote it wrong while on a different controller. You see, it's not like the fields change names every day, but I want to make sure that if I change the field name in the Model, I will get a bug thrown up in the screen anytime saying: "Property "Anything.field_name" is not defined." So it's easier to find the bug and solve it.
      singulars
    3. COOnce, while using Zend I noticed that I could change the field name while I didn't need to do that to the variable, so I could use something like: $fieldname_A = "fieldname_B" And go on with it, I didn't noticed a similar structure in Yii. But I'm going to put on what I want, just a second.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload