[_] Zend Framework :: require once!
Tom Holder
tom at simpleweb-online.com
Wed Jun 11 09:24:23 BST 2008
Hi Dan,
I'm not sure if it helps you now but I've just written a Zend website and
used a base class for all this stuff.
Instead of your controller classes inheriting Zend_Controller_Action, extend
MyBaseController and in it put:
<?php
class MyBaseController extends Zend_Controller_Action
{
public function init()
{
parent::init();
}
You can then put code to load up shared models etc in this base class. My
setup is a bit more complicated as I also have another level
SecureBaseController responsible for making sure all security checks are
run.
Tom
2008/6/9 Dan Course <dan at thoughtden.co.uk>:
> Hey Joel (the elder),
>
> Cheers with that, cor' it seems like it should be something simple!
>
> <rant>
> It's so frustrating, there's loads of tutorials to show you how to
> get a "Hello World" but none to show you how to really use the
> Framework properly. Like something which covers multiple pages so you
> get the idea of how it fits together!</rant>
>
> cheers again,
>
> Never mind! On with figuring out some global configs :)
>
> dan course
>
> Thought Den.
> technical director
> 07790 13 83 23
>
> • Ace news online - Thanks Guardian!
> • What are Thought Den reading? - Loads o' stuff
> • A day in the industry for students - Industry day launches
>
>
>
>
>
>
> --
> underscore_ list info/archive ->
> http://www.under-score.org.uk/mailman/listinfo/underscore
>
--
Tom Holder
Director
The Web People Ltd.
12 Kings Road
Bristol
Avon
BS8 4AB
Tel: 0117 973 9494
Web: http://www.thewebpeople.biz/
The Web People is registered in England.
Registration no: 06567894
Please consider the environment before printing this email.