Jump to content
Larry Ullman's Book Forums

kleeh

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by kleeh

  1. Try enclosing the variable names in curly brackets. Like '{$fac_school}'
  2. I think the problem, at least for me, is that on page 200 where the Rectangle class is shown, there is no "extends". It just says "class Rectangle {". The Triangle class says "class Triangle extends Shape {". So I couldn't see how Rectangle was accessing getArea() until I looked at Triangle and realized it was a book mistake. It's also a mistake in the code example for Rectangle.
  3. Ok I'll quote what the current version says toward the end the Static Pages section( page 208 in my PDF, page 122 in my nook: "“You can also create a nested directory structure. For example, say you wanted to have a series of static files about the company, stored within the views/site/pages/company directory. To refer to those files, just prepend the value of $_GET['view'] with "company/": /site/page/view/company/board would display the protected/views/site/pages/company/board.php page.”. Since the yii 2 docs say they've eliminated the 'protected' directory, I'm confused why it's referenced here. Just wanted to bring attention to it.
  4. Is there, or shouldn't there be, a place to post potential Errata for the Yii2 book? I've stumbled across a few things here and there and don't see them mentioned in the forum. For instance, on page 684 (as of the PDF versioin I have which I just dowloaded) there are references to the "protected/views/site/pages/company" path. But the Yii2 book and the documentation specify that the "protected" folder has been eliminated.This just leads to confusion in what can be an already-confusing quest for a MVC and Yii noobie. Thanks
×
×
  • Create New...