voici pour flashmessenger
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
( ! ) Warning: Missing argument 1 for Zend_Controller_Action_Helper_FlashMessenger::direct() in D:\workspaces\projet\library\Zend\Controller\Action\Helper\FlashMessenger.php on line 262
Call Stack
# Time Memory Function Location
1 0.0030 145360 {main}( ) ..\index.php:0
2 0.4070 8703376 Zend_Application->run( ) ..\index.php:49
3 0.4070 8703440 Zend_Application_Bootstrap_Bootstrap->run( ) ..\Application.php:366
4 0.4070 8704120 Zend_Controller_Front->dispatch( ???, ??? ) ..\Bootstrap.php:97
5 0.7851 16472984 Zend_Controller_Dispatcher_Standard->dispatch( object(Zend_Controller_Request_Http)[336], object(Zend_Controller_Response_Http)[349] ) ..\Front.php:954
6 2.5103 27181008 Zend_Controller_Action->dispatch( string(21) ) ..\Standard.php:295
7 2.5103 27201416 Adminv2_CrmController->saveattributionAction( ) ..\Action.php:516
8 3.8794 28090312 FlashMessenger ( ) ..\CrmController.php:1761
9 3.8794 28090424 Zend_Controller_Action_HelperBroker->__call( string(14), array(0) ) ..\CrmController.php:1761
10 3.8904 28115456 call_user_func_array:{D:\workspaces\projet\library\Zend\Controller\Action\HelperBroker.php:328} ( array(2), array(0) ) ..\HelperBroker.php:328
11 3.8914 28115568 Zend_Controller_Action_Helper_FlashMessenger->direct( ??? ) ..\HelperBroker.php:328
Variables in local scope (#11)
$message =
Undefined
( ! ) Notice: Undefined variable: message in D:\workspaces\projet\library\Zend\Controller\Action\Helper\FlashMessenger.php on line 264
Call Stack
# Time Memory Function Location
1 0.0030 145360 {main}( ) ..\index.php:0
2 0.4070 8703376 Zend_Application->run( ) ..\index.php:49
3 0.4070 8703440 Zend_Application_Bootstrap_Bootstrap->run( ) ..\Application.php:366
4 0.4070 8704120 Zend_Controller_Front->dispatch( ???, ??? ) ..\Bootstrap.php:97
5 0.7851 16472984 Zend_Controller_Dispatcher_Standard->dispatch( object(Zend_Controller_Request_Http)[336], object(Zend_Controller_Response_Http)[349] ) ..\Front.php:954
6 2.5103 27181008 Zend_Controller_Action->dispatch( string(21) ) ..\Standard.php:295
7 2.5103 27201416 Adminv2_CrmController->saveattributionAction( ) ..\Action.php:516
8 3.8794 28090312 FlashMessenger ( ) ..\CrmController.php:1761
9 3.8794 28090424 Zend_Controller_Action_HelperBroker->__call( string(14), array(0) ) ..\CrmController.php:1761
10 3.8904 28115456 call_user_func_array:{D:\workspaces\projet\library\Zend\Controller\Action\HelperBroker.php:328} ( array(2), array(0) ) ..\HelperBroker.php:328
11 3.8914 28115568 Zend_Controller_Action_Helper_FlashMessenger->direct( ??? ) ..\HelperBroker.php:328
Variables in local scope (#11)
$message =
Undefined |
dans le controller :
$this->_helper->FlashMessenger()->setNamespace('success')->addMessage("Mise à jour effectuée");
et sur la vue :
1 2 3 4 5 6 7 8 9
|
<?php $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger'); ?>
<?php if ($flashMessenger->setNamespace('success')->hasMessages()): ?>
<div class="alert alert-block alert-error fade in">
<?php foreach ($flashMessenger->getMessages() as $msg): ?>
<?php echo $msg ?>
<?php endforeach; ?>
</div>
<?php endif; ?> |
Partager