Andrew Brereton's Lifestream - tagged with frameworks http://andrewbrereton.com/feed en-us http://blogs.law.harvard.edu/tech/rss Sweetcron beredon@gmail.com Model Infrastructure - phly, boy, phly http://andrewbrereton.com/items/view/1664

The Model is a complex subject. However, it is often boiled down to either a single model class or a full object relational mapping (ORM).

]]>
Wed, 21 Jul 2010 10:09:00 +1000 http://andrewbrereton.com/items/view/1664
Zend Framework Book: Surviving The Deep End http://andrewbrereton.com/items/view/402 ]]> Wed, 07 Oct 2009 14:33:00 +1100 http://andrewbrereton.com/items/view/402 Adding theme support to your Zend Framework application http://andrewbrereton.com/items/view/330

This is a brief explanation on how to add theme support to your Zend Framework application and how to ensure those themes are self-contained, easy to distribute and install. Themes are very powerful and extremely easy to develop. They allow developers to quickly switch between layouts and users to change the look and feel of an application. Making a Zend Framework application theme-able is a three-step process. First, modify your directory structure: application/ controllers/ library/ public/ themes/ default/ css/ images/ templates/ custom/ css/ images/ templates/ Then, edit your Bootstrap class: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initView() { $theme = 'default'; if (isset($this->config->app->theme)) { $theme = $this->config->app->theme; } $path = PUBLIC_PATH.'/themes/'.$theme.'/templates';

    $layout = Zend_Layout::startMvc()
        ->setLayout('layout')
        ->setLayoutPath($path)
        ->setContentKey('content');

    $view = new Zend_View();
    $view->setBasePath($path);
    $view->setScriptPath($baseDir);

    return $view;
}

} And finally, copy your view scripts and layouts to the templates directory: application/ library/ public/ themes/ default/ css/ images/ templates/ error/ index/ partials/ layout.phtml Voila, mission accomplished. Posted in Frameworks, Open-source, PHP

]]>
Mon, 21 Sep 2009 08:43:00 +1000 http://andrewbrereton.com/items/view/330
eKini: Web Developer Blog " Zend Framework: Navigation and Breadcrumbs ... http://andrewbrereton.com/items/view/145

Zend Framework: Navigation and Breadcrumbs with an XML File in ZF 1.8

]]>
Fri, 14 Aug 2009 14:57:00 +1000 http://andrewbrereton.com/items/view/145
eKini: Web Developer Blog " Zend Framework: Navigation and Breadcrumbs ... http://andrewbrereton.com/items/view/406

Zend Framework: Navigation and Breadcrumbs with an XML File in ZF 1.8

]]>
Fri, 14 Aug 2009 14:57:00 +1000 http://andrewbrereton.com/items/view/406
Online resources for Zend Framework ~ Robert Basic http://andrewbrereton.com/items/view/141 ]]> Fri, 14 Aug 2009 10:41:00 +1000 http://andrewbrereton.com/items/view/141 Online resources for Zend Framework ~ Robert Basic http://andrewbrereton.com/items/view/407 ]]> Fri, 14 Aug 2009 10:41:00 +1000 http://andrewbrereton.com/items/view/407