Automate Zend Framework

February 21, 2007

earlier i wrote a framework for php 5.1 that supports MVC concept and automate all work use a nice concept for namespace.for example if we have needed to load db plugin do like this(in my framework)
$this->plugin->db->connect(1)
that connect to db that speceficed it configed with profile id 1 in config file for this controller and action.
it s a duration that i port from my framework to ZF
it ’s have a great concepts in its MVC design and plugin design too. I write a simple plugin to auto find default config , constant, template file name and message for every loaded controller and action. I write a simple Action class that inherit from Action Abstrat class that have a getter magic method. for implement this class use like this

<?phprequire_once 'Zend/Widget/Controller/ActionProvider.php';

class TestController extends Zend_Widget_Controller_ActionProvider{

function MyAction(){

echo 'hello world';

echo $this->__cons->pi."";

echo $this->__msg->fa->hello."";

echo $this->__msg->en->hello."";

}

}

?>

use This link to download this plugin and tell me if you test it

Leave a Reply