[ask]Newbie problems

first, I’m so sorry if I’m not fluently in english, twice, I want to ask about the code in this solution, I have same problems and there is a solution for my problems, but I don’t know where is that solution must be place in my code, and this is my code :




	public function search()

	{

		// @todo Please modify the following code to remove attributes that should not be searched.


		$criteria=new CDbCriteria;

		$criteria->together=true;

		$criteria->with=array('rkt','kategori','program');


		if($this->TH_RKT){

			$column_split_array = explode('.', $column);

			if(count($column_split_array) > 1)

			{

				foreach($column_split_array as $key => $column_split){

					$column_split_array[$key] = '"'.$column_split.'"';

				}

				$column =  implode('.', $column_split_array);

			}

			$criteria->compare('rkt.TH_RKT',$this->TH_RKT,true);

		}

		if($this->NAMAKATEGORI){

			$criteria->compare('kategori.NAMAKATEGORI',$this->NAMAKATEGORI,true);

		}

		//$criteria->compare('rkt.TH_RKT',$this->TH_RKT,true);

		//$criteria->compare('rkt.TH_RKT',$this->IDRKT);

		$criteria->compare('ID_DET_BUKU_AJAR',$this->ID_DET_BUKU_AJAR);

		$criteria->compare('NAMA_MATERI_PEMBELAJARAN',$this->NAMA_MATERI_PEMBELAJARAN,true);

		$criteria->compare('STATUS',$this->STATUS);

		$criteria->compare('KETERANGAN',$this->KETERANGAN,true);

		$criteria->compare('VOLUME',$this->VOLUME);

		$criteria->compare('NAMA_KEGIATAN',$this->NAMA_KEGIATAN,true);

		$criteria->compare('SATUAN',$this->SATUAN,true);

		$criteria->compare('IDRKT',$this->IDRKT);

		$criteria->compare('IDKATEGORI',$this->IDKATEGORI);

		$criteria->compare('IDPROGRAM',$this->IDPROGRAM);




		return new CActiveDataProvider($this, array(

			'criteria'=>$criteria,

		));

	}



The first thing I can see is that the attribute $column is not set. What is this?

If it’s a global variable you must declare it as such.