1.Rewrite the bootstrap
It defines all kinds of _init methods in the Bootstrap class.It is good idea to tip constructor to finish the inialization.
public function __construct($boostrapEverything = TRUE){
if ($boostrapEverything) {
$this->boostrapEverything();
}
}
public function boostrapEverything(){
// bootstrap the first batch
foreach ($this->_first as $resource) {
$this->bootstrap($resource);
}
// bootstrap the main resources
$methods = get_class_methods($this);
foreach ($methods as $method) {
if (strpos($method, '_init') === 0) {
$resource = substr($method, 5);
if (!in_array($resource, $this->_first) && !in_array($resource, $this->_last)) {
$this->bootstrap($resource);
}
}
}
// bootstrap the last resources
foreach ($this->_last as $resource) {
$this->bootstrap($resource);
}
}
2.Useful third-party library
It offers two extra library to service the infrastruture: ZendX and App. In ZendX namespace, i like the view helper ZendX_JQuery_View_Helper_JQuery.In the App repository, amazon and yahoo utility are ready for future usage.
3.Reference links
https://github.com/christophervalles/Zend-Framework-Skeleton
https://github.com/codeinchaos/restful-zend-framework