6
webdev
7y

tl;dr never heard about rubber duck debugging before devrant

i didnt worked with Yii fw in the past but we bouth a site written in Yii and i wanted to add a form but could not pass the model to the view so i went for a smoke with my roommate to think about it

"i have the view, i have the model, the action but dont know how to pass the model variable because its an existing view..."

"...it should be passed to the render function in the existing index action but thats written somewhere else, so if i could pass it there..."

"...i can write the action there and then i should pass the variable to the render function in the index action and goddamit, so thats how you do it, thanks mate!"

he stared at me like wtf? o.O

room mate debugging ftw!

Comments
Add Comment