hacker Posted June 24, 2014 Share Posted June 24, 2014 Larry, Is there any particular reason why the properties (or attributes) of the two classess (Page and User) in Chapter 9 were declared protected opposed to private? I haven't quite made it to the end of Chapter 9; however, Page and/or User do not appear to be extended. Do you use these classes in later chapters? Thank you, Hacker Link to comment Share on other sites More sharing options...
Larry Posted June 25, 2014 Share Posted June 25, 2014 Good question! No, I don't think they're extended, but I set them as protected to allow them to be extended. Link to comment Share on other sites More sharing options...
hacker Posted June 26, 2014 Author Share Posted June 26, 2014 OK then... I'll see what I can do with this. Should the classes be extended in order to create the edit_page.php script? I just integrated (earlier this week) TinyMCE into header.inc.php so it'll work with a textarea element having the attribute and value name='content'. Thanks for the reply, Hacker Link to comment Share on other sites More sharing options...
Larry Posted June 27, 2014 Share Posted June 27, 2014 I don't think the classes *need* to be extended, they just can be. It's up to you. For example, if you develop a more complex system with multiple page or user types. Link to comment Share on other sites More sharing options...
Recommended Posts