php - I cant display data in textbox for update data using yii framework -


I'm new to the yii framework I'm trying to edit the data , I use the text box Can not display data in, the first step of update data. My Controller is sitecontroller.php , my view file update-jobseeker.php . I have 5 tables user , job_seeker_profile , job_profile , location , and category .

I got the error "Fatal error: Call on a member function on attribute referrals () at a non object in C: \ wamp \ www \ yii_new \ framework \ web \ helpers \ CHtml.php My Controller is site controller , this action is:

    {$ Id = $ _ GET ['Id']; $ model = Yii :: app () -> gtc- gt; createCommand () - & gt; select ('*') -> ('user' ') - & gt; Join ('job_seeker_profile s', 'u.id = s.user_id') - & gt; Join ('job_profile j', 'u.id = j.user_id') - & gt; Join ('place l' , 'L.id = s.loc Ation_id ') - & gt; (' U.id =: id ', array (': id '= & gt; $ id)) - & gt; QueryAll (' category c ',' c.id = j.category_id ') -> $ -This-> Submission (' update_jobseeker ', array (' model '=>);}}? & Gt;   

My view file update_jobseeker.php

  
<< L1; h1> Update personal details
(L" client option '= & Gt; Array ('validateOnSubmit' = & gt; true),));? & Gt; & lt; p class = "note" & gt; with field & lt; span class = "required" & gt; * & Lt; / span & gt; Required. & Lt; / p & gt; & lt; div class = "line" & gt; & gt; php echo $ form- & gt; label x ($ model, Mobile No ');? & Gt; & lt ;? php echo $ form- & gt; textField ($ model,' contact_no ');? & Gt; & lt ;? php acres $ form-> error ($ Model, 'contact_no');? & Gt; & lt; / div & gt; & lt; div class = "row button" & gt; & lt ;? php echo CHtml: : SubmitButton ('Save');? & Gt; & lt; / div & gt; & lt ;? php $ this- & gt; Endvijet ();? & Gt; & lt; / div & gt; & lt; // div> itemprop = "text">

If the name of your model is a user, then active records will be similar:

  $ criteria = new cdccitrea (); $ Criteria- & gt; Join = 'Jobseeker_profile' on T.ID = s.user_id on Internal Job _profile j On t.id = j.user_id instead of joining l.id = s.location_id on the Inner Inner category category C on c.id = J.category_id '; $ Criteria- & gt; Compare ('tid.id', id); $ Model = user :: model () - & gt; Search ($ criteria);    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -