Hi all,
A really simple question for you guys.
In my effort to learn the framework I run into a lot of examples of the
different components. For example, when reading about the
zend_navigation I see the following,
-----------------
*Example 37.9. Creating a custom page type using the page factory*
To create a custom page type using the factory, use the option |type| to
specify a class name to instantiate.
|
class My_Navigation_Page extends Zend_Navigation_Page
{
protected $_fooBar = 'ok';
public function setFooBar($fooBar)
{
$this->_fooBar = $fooBar;
}
}
$page = Zend_Navigation_Page::factory(array(
'type' => 'My_Navigation_Page',
'label' => 'My custom page',
'foo_bar' => 'foo bar'
));
|
----------------
How do I know where in the project structure this class/file should be
created? All examples are like this and I don't in any case understand
where to create things.
Regards,
Joakim