Thanks Peter you solved it! I have full control over the syslog now. :-)
*Bootstrap*
http://pastebin.com/f788c3a29
*Edit view page*
http://pastebin.com/f5f45c31f
On Wed, Sep 30, 2009 at 8:05 AM, Peter Warnock wrote:
> In your example, the logger follows the return, which will never execute
Sorry I thought you were trying to change the id on the form element. I
should have read closer. You can do this with form decorators. You should
be able to add a decorator to the elements that changes the id attribute I
think.
Decorators are kind of tricky.
Fred
On Wed, Sep 30, 2009 at 2:51 P
This seems like a bug. I would think that setElementBelongsTo() would affect
all generated IDs.
--
Hector
On Wed, Sep 30, 2009 at 11:51 AM, Eugene Morgan <
eugenemorganrea...@gmail.com> wrote:
> Thanks for the tip, but it doesn't quite do what I'm looking for ...
> it looks like the id attribut
I need something like:
File NameClass PrefixBase Prefix Model Name
--
Post.php Blog_Model_ Post
(Blog_Model_Post)
BasePost.php Blog_Model_
Thanks for the tip, but it doesn't quite do what I'm looking for ...
it looks like the id attributes of the and tags are
generated based on the element's name rather than its id. So when I
manually change the element's id the and id's are not
affected.
On Wed, Sep 30, 2009 at 11:28 AM, Fred Ji
Can you possible use the setAttribute method to set the id manually?
$element->setAttrib('id', 'instance1_text')
Just append the id with something.
Fred
On Wed, Sep 30, 2009 at 12:01 PM, Jonathan Maron wrote:
> Hello Eugene and others
>
> I have a similar issue when I place multiple navigatio
Hello Eugene and others
I have a similar issue when I place multiple navigation elements
(Zend_Navigation) on to one page. Also in this case, I get multiple id
attributes that are identical, which lead to invalid XHTML 1.0 Strict.
Up to now, I have not found a good solution to this issue.
Howeve
I have a page that can potentially have multiple instances of the same
form. I know I can use setElementsBelongTo() to prevent having more
than one form element with the same name. But is there any similar way
to prevent the dt and dd tags from getting assigned the same id
attributes over and over
I'ts not 3 times slower, my test form depends on db speed, which is changing
like mad :P
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 at 3:58 PM, Саша Стаменковић wrote:
> It failed because I'm adding elements like $this->addElement($brand); and
> name is not provided, this way, you take name
It failed because I'm adding elements like $this->addElement($brand); and
name is not provided, this way, you take name from element:
public function addElement($element, $name = null, $options = null) {
if (!is_array($options)) {
$options = array();
}
// A plu
Thanks for the response Matt.
My profiler says that lot of time is spent on fetching data and
executing setMultiOptions
on select elements. I guess caching can help.
Only I'm thinking about caching strategy...
Will get back after optimization...
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 a
Hi
Can you post your solution here ?
Cheers
holo
2009/9/30 Саша Стаменковић
> Made this method work, form is now 3 times slower :(
>
> Regards,
> Saša Stamenković
>
>
>
> On Wed, Sep 30, 2009 at 11:49 AM, Саша Стаменковић wrote:
>
>> Tried to add
>> public function addElement($element, $name =
Hi everyone,
I used Zend_Navigation to display a menu with several items, and for each
item the corresponding submenu.
I used an XML file to manage the menu/submenu structure.
The problem is when I have a link inside a page which links to a controller
and an action, i have to declare it into
-- umpirsky wrote
(on Wednesday, 30 September 2009, 12:43 AM -0700):
> I have this form:
> During the form initialiation, I'm performing 2 queries to get options for
> selects:
> 0.00131SELECT `brand`.* FROM `brand` ORDER BY `title` ASC
> 0.00082 SELECT `location`.* FROM `locatio
Ladislav Prskavec wrote:
If run zf tool:
>zf version
Fatal error: Cannot redeclare class
phpunit_framework_testsuite_dataprovider in
/usr/local/zend/share/pear/PEAR/PHPUnit/Framework/TestSuite/DataProvider.php
on line 64
Using Ubuntu 9.04 with Zend Server CE 4.0.5 (php 5.2.10, tested zf
1
Made this method work, form is now 3 times slower :(
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 at 11:49 AM, Саша Стаменковић wrote:
> Tried to add
> public function addElement($element, $name = null, $options = null)
> {
> if (!is_array($options)) {
> $options = arr
Tried to add
public function addElement($element, $name = null, $options = null)
{
if (!is_array($options)) {
$options = array();
}
// A plugin loader is implicitly created if default decorators are
loaded
$options['disableLoadDefaultDecorators'] = t
Hi
Thank you all for the tips. I will try this in a few days.
Cheers
holo
2009/9/30 keith Pope
> You may want to look at this:
>
> http://ishouldbecoding.com/tag/zend-framework
>
> Theres a post about Zend_Form and the Pluginloader, it shows a way to
> reduce the amount of plugin loader instan
Hello,
I'm currently having problems with the Zend Framework Zend_AMF module-
basically we were using Zend Framework 1.8.0 (and we've managed to
upgrade to 1.8.3 without problems), but once we upgrade to 1.8.4 or
above then Zend_AMF stops working the way it used to when multiple
objects are u
Hi,
After creating the project and inserting the code from the video example
"simple zend and dojo application" i keep getting the following error:
PHP Notice: Undefined index: in
C:\Zend\ZendServer\share\ZendFramework\library\Zend\Form.php on line 1025
PHP Fatal error: Call to a member function
One more question.
This decorators I use for rendering
$decorators = array(
'Label',
'ViewHelper',
array('HtmlTag', array('tag' => 'div', 'class' => 'slider'/*, 'placement' =>
'prepend'*/)),
);
rendered:
xxx:
0
I want this:
xxx:
0
How can I hammer it out?
Regards,
Saš
Hi.
I have this form:
class Automobili_Form_Search extends Zend_Form {
/**
* Constructor.
*
* @param mixed $options
*/
public function __construct($options = null) {
parent::__construct($options);
// Add brand
I am creating a URL like so:
$this->view->url(array('sort' => array('param1','param2'));
Notice the array of params for 'sort'. This works fine when I am using the
standard router. If I use my own router, I always get an error:
$router->addRoute('controlleralias', new Zend_Controller
You may want to look at this:
http://ishouldbecoding.com/tag/zend-framework
Theres a post about Zend_Form and the Pluginloader, it shows a way to
reduce the amount of plugin loader instances.
2009/9/30 Саша Стаменковић :
> But he can cache rendered content, then time will be spent just on pullin
24 matches
Mail list logo