Yii Framework Forum: Chapter 6: Returning back to the owner and requester dropdowns - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chapter 6: Returning back to the owner and requester dropdowns Differences between 1.1.2 (book) and 1.1.5 (actual release)

#1 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 147
  • Joined: 02-January 11

Posted 03 January 2011 - 12:47 AM

hi!

as i see my problem is related to the version differences also, like for many of us. i was also following the book and the code was not working at Chapter 6: Returning back to the owner and requester dropdowns, page 119. when clicking on create issue at project 1 it gave me this error:

CException

IssueController contains improperly nested widget tags in its view "C:\wamp\www\trackstar\protected\views/issue\_form.php". A CActiveForm widget does not have an endWidget() call.


i noticed that there are differences between the sample code and what gii has generated. with the sample code it is working, but i don't really understand the differences and i believe gii was not generating the code to be downgraded back to 1.1.2 so i would be very happy if someone could explain the differences regarding to this section of this chapter, and so i could actualize the book code to the present release version 1.1.5.

thanks!
0

#2 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,193
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 04 January 2011 - 05:18 AM

Instead of writing with deep details, what the problem is, could you simple paste examples of both codes - the one that is in a book (not every one has access to it) and the one generated by Gii. Or in other words - the one that is working and the one that isn't?

From the error you cited I can tell that this is a quite common errors that appears if you use any widget that requires beginWidget, contents in between and endWidget and you omit the last one (i.e. widget's closing tag). And this error rather has nothing to do with changes in versions of Yii. But I might be wrong.
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#3 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 147
  • Joined: 02-January 11

Posted 05 January 2011 - 03:23 PM

View PostTrejder, on 04 January 2011 - 05:18 AM, said:

Instead of writing with deep details, what the problem is, could you simple paste examples of both codes - the one that is in a book (not every one has access to it) and the one generated by Gii. Or in other words - the one that is working and the one that isn't?

From the error you cited I can tell that this is a quite common errors that appears if you use any widget that requires beginWidget, contents in between and endWidget and you omit the last one (i.e. widget's closing tag). And this error rather has nothing to do with changes in versions of Yii. But I might be wrong.


at last!

thanks! there is no missing endWidget as i can see. the problem is, that there are quite a lot of differences and i don't have the knowledge to decide which one is important and which one is not so. anyway i think it would be a little bit too much to paste the code here. a solution could be to get the book or to meet somebody who has the book and ask him about the problem.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users