[fw-general] Release of the ZF + Doctrine 1 Integration

2010-05-23 Thread Benjamin Eberlei
Hello everyone, I completed a first version of Zend + Doctrine 1 integration today and want to share it with all you. Since currently the status on a 1.11 release is unclear I contacted all the contributors to various Doctrine-related components and combined them into a single release and

Re: [fw-general] pass parameters with contextSwitching

2010-05-23 Thread Hector Virgen
ContextSwitch doesn't support per-context variables, but you can accomplish this using the built-in params. For example, you can use a switch on the format parameter in your list action: $format = $this-_request-getParam('format'); switch ($format) { case 'list': /* ... */

[fw-general] Zend View Helper

2010-05-23 Thread Andreas Kraftl
Hello, what is the simplest way to get a working Zend_View_Helper? I init a clean project with Zend Tool and add a layout with Zend Tool. Then I add a class in application/views/helpers/Sujet.php class Zend_View_Helper_Sujet extends Zend_View_Helper_Abstract { public function sujet()

Re: [fw-general] pass parameters with contextSwitching

2010-05-23 Thread shahrzad khorrami
thanks :) -- Shahrzad Khorrami

[fw-general] call a function from another module..

2010-05-23 Thread shahrzad khorrami
hi all, I have a soap module, Soap_IndexController class and its methods. I want to use of these functions results in another module, controller action.. how I can do that? call that function, assign the output of that function to a variable...note that I can't use of _forward because it can't

Re: [fw-general] call a function from another module..

2010-05-23 Thread Hector Virgen
You can instantiate a controller like any other class, but you'll need to pass the request and response to the constructor. From there, if your method is public, you should be able to call it no problem. However, I'm not sure if the built-in autoloader is set up to handle controllers. You may

Re: [fw-general] call a function from another module..

2010-05-23 Thread shahrzad khorrami
Thanks for reply, Hector, is this your mean: in xio module: class Xio_IndexController extends Zend_Controller_Action { public function listAction() { include '../../soap/controllers/IndexController.php'; $soap = new Soap_IndexController(); $kj = $soap-salam(); and

Re: [fw-general] call a function from another module..

2010-05-23 Thread shahrzad khorrami
and in soap module: class Soap_IndexController extends Zend_Controller_Action { public function salam(){ return salam; }