2008年9月1日星期一

Re: [fw-mvc] Zend http_post_fields()

2008/9/1 SeanZend <programmatik@hotmail.com>:
> I am trying to post data from one controller to another without submitting a
> form. Does anyone have an example code of how to accomplish this? That is if
> Zend supports this feature?

Consider building a Zend_Request object and using some methods of the
ActionStack helper in your controller. However, you could consider to
factor out the repeated code from the controller to your model, making
it more useful and testable.

--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno

[fw-mvc] Zend http_post_fields()

Hi i'm new to the Zend framework, and I wanted to know if Zend has a feature
such as http_post_fields()? Or something that serves the same purpose.

I am trying to post data from one controller to another without submitting a
form. Does anyone have an example code of how to accomplish this? That is if
Zend supports this feature?

Thanks

--
View this message in context: http://www.nabble.com/Zend-http_post_fields%28%29-tp19258609p19258609.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-mvc] Custom Form Decorator

$element->addDecorator(new My_Form_Decorator_separator(),
array('title'=>'test'));

Neither works, just shows me '<br/> <hr/>' and not 'title'

Thanks Matthew


Matthew Weier O'Phinney-3 wrote:
>
> -- Benjamin.Gonzales <iadvmc@yahoo.com> wrote
> (on Monday, 01 September 2008, 08:41 AM -0700):
>> I send you as the parameter to the method setTitle?
>>
>>
>> if I do it this way does not work
>> $element->addDecorator(new My_Form_Decorator_separator(),
>> array('title','test'));
>
> That should be array('title' => 'test') -- in other words, make sure you
> pass an *associative* array.
>
>> I send you as the parameter to the method setTitle?
>
> --
> Matthew Weier O'Phinney
> Software Architect | matthew@zend.com
> Zend Framework | http://framework.zend.com/
>
>

--
View this message in context: http://www.nabble.com/Custom-Form-Decorator-tp19256766p19257366.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-mvc] Custom Form Decorator

-- Benjamin.Gonzales <iadvmc@yahoo.com> wrote
(on Monday, 01 September 2008, 08:41 AM -0700):
> I send you as the parameter to the method setTitle?
>
>
> if I do it this way does not work
> $element->addDecorator(new My_Form_Decorator_separator(),
> array('title','test'));

That should be array('title' => 'test') -- in other words, make sure you
pass an *associative* array.

> I send you as the parameter to the method setTitle?

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

[fw-mvc] Custom Form Decorator

My Decorator

class My_Form_Decorator_separator extends Zend_Form_Decorator_Abstract
{

protected $_title='';

public function setTitle($title='')
{
$this->_title = $title;
return $this->_title
}

public function render ($content)
{

$html = $this->_title.'<br/><hr/>';

$placement = $this->getPlacement();
$separator = $this->getSeparator();
switch ($placement) {
case self::PREPEND:
return $html . $separator . $content;
case self::APPEND:
default:
return $content . $separator . $html;
}
}
}

$element = new Zend_Form_Element_Text('test');
$element->addDecorator(new My_Form_Decorator_separator());


I send you as the parameter to the method setTitle?


if I do it this way does not work
$element->addDecorator(new My_Form_Decorator_separator(),
array('title','test'));


I send you as the parameter to the method setTitle?

--
View this message in context: http://www.nabble.com/Custom-Form-Decorator-tp19256766p19256766.html
Sent from the Zend MVC mailing list archive at Nabble.com.

Re: [fw-mvc] Zend_Db_Profiler_Firebug with large number of request

-- agatone <zoran.zoki@gmail.com> wrote
(on Monday, 01 September 2008, 01:39 AM -0700):
>
> Confirmed.
> v. FirePHP 0.1.2 with r11117 is working.
>
> With FirePHP 0.1.1 is NOT working.

Right, and that's what Christoph noted. To fix the issue required both
changes in ZF's code as well as in FirePHP.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

Re: [fw-mvc] Zend_Db_Profiler_Firebug with large number of request

Confirmed.
v. FirePHP 0.1.2 with r11117 is working.

With FirePHP 0.1.1 is NOT working.


--
View this message in context: http://www.nabble.com/Zend_Db_Profiler_Firebug-with-large-number-of-request-tp18912121p19250297.html
Sent from the Zend MVC mailing list archive at Nabble.com.