php - printing a row after finding it in Yii -


I have a model named object with a column object_type in the table. I want to display all the records in a table with object_type = journal , but I'm getting the error "unchanged index: object_name" . I should record how I call ?

  & lt; Tbody & gt; & Lt ;? Php $ type = 'journal'; $ Criteria = new cdccitrea (); $ Criteria- & gt; Condition = "object_type =: object_type"; $ Criteria- & gt; Parameters = Array (': object_type' = & gt; $ type); $ Result = object :: model () - & gt; Search (all criteria); Foreign Currency ($ result as $ value); {Echo '& lt; Tr & gt; & Lt; TD & gt; '. $ Result ['OBJECT_NAME']. ' & Lt; / TD & gt; & Lt; TD & gt; '. $ Result ['object_publisher']. ' & Lt; / TD & gt; & Lt; / TR & gt; '; }? & Gt;   

The code to work below

  & lt; php $ type = 'journal'; $ Criteria = new cdccitrea (); $ Criteria- & gt; Condition = "object_type =: object_type"; $ Criteria- & gt; Parameters = Array (': object_type' = & gt; $ type); $ Result = object :: model () - & gt; Search (all criteria); Forex currency ($ result as $ value) {echo '& lt; Tr & gt; & Lt; TD & gt; '. $ Value- & gt; OBJECT_NAME. ' & Lt; / TD & gt; & Lt; TD & gt; '. $ Value- & gt; Object_publisher_name. ' & Lt; / TD & gt; & Lt; / TR & gt; '; }? & Gt;    

Method SearchCaptivarCard's All Returns Array,

In this way Use:

  $ value- & gt; Object_name $ value- & gt; Object_pluser    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -