Welcome to Yii Tests

imageSelect Widget Sample



njson

echo NJSON::encode(Person::model()->with('contacts','contacts.emails')->findAll());
[{"id":"1","first_name":"Amr","last_name":"Bedair","contacts":[{"id":"1","address_1":"Amr's Address \u0639\u0646\u0648\u0627\u0646","address_2":null,"email_id":"1","person_id":"1","emails":[{"id":"1","address":"amr_1@amr.amr","server":null,"contact_id":"1"}]},{"id":"2","address_1":"Amr's Seconed Address","address_2":null,"email_id":"2","person_id":"1","emails":[{"id":"2","address":"amr_2@amr.amr","server":null,"contact_id":"2"}]}]},{"id":"2","first_name":"Ali","last_name":"Bedair","contacts":[{"id":"3","address_1":"Ali's Address","address_2":null,"email_id":"3","person_id":"2","emails":[{"id":"3","address":"ali_1@ali.ali","server":null,"contact_id":"3"}]}]}]

I will try to list all my Yii extensions' samples here in this page.