SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 105 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This example
shows how we might implement the default.php file:









Namefoobar->name; ?>
Descriptionfoobar->description; ?>

Component Design
[ 78 ]
We access foobar using $this->foobar. We can do this because
we used the assignRef() method to assign this data to the view.
This example assumes that the entity Foobar has the attributes name
and description.
A more complete description of how to build and use layouts is available in Chapter 8.
Building a Controller
We can use controllers in many different ways. The MVC design pattern might
insinuate that we only need one controller; in reality, it can be very useful to
implement multiple controllers, one controller per entity.
Controllers extend the abstract JController class, which we import from the joomla.
application.component.controller library. It can be useful to add an extra layer
of inheritance with an additional abstract controller class; this makes particular sense
if we are using multiple controllers, which use common methods.


Pages:
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6