We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Common Style Mistakes, Part 1
|
| Subject: |
|
Style mistakes |
| Date: |
|
2003-06-13 02:53:17 |
| From: |
|
anonymous2
|
|
|
|
Chaining function calls is not a mistake, but is good technique, as long as the functions have meaningful names, and your layout is good....
$self->showPage( 'template.tmpl',
array(
'trees' => $self->getTreesByType( $type ),
'bushes' => $self->getBushesByType( $type )
)
);
$self->addToBasket(
$self->getProductID( $style, $colour, $size ),
$quantity
);
|