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
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':
/* ... */
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()
thanks :)
--
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
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
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
and in soap module:
class Soap_IndexController extends Zend_Controller_Action
{
public function salam(){
return salam;
}