-- Greg Donald [EMAIL PROTECTED] wrote
(on Wednesday, 23 April 2008, 04:04 PM -0500):
What is gained by using Zend_Registry? Seems to me I could more
easily use the existing PHP $GLOBALS or even $GLOBALS['registry'] if I
wanted/needed a namespace.
Zend_Registry::set('index', $value);
-- Borje [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 01:49 AM -0700):
I hate to bump this but I fear my previous question wasn't noticed. How do I
add option to the td that surrounds the labels? I can do it round the
normal elements like this:
array('decorator' = array('td' =
Flame war starting :)
Let's just put it this way, the Zend_Registry is simply a proper OO
design pattern implementation similar to php $GLOBALS. If you don't
care about design patterns then you'll probably find Zend_Registry
pointless but if you do care about design patterns then you'll
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Yeah also, you should not make forms with tables ;)
Matthew Weier O'Phinney schrieb:
-- Borje [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 01:49 AM -0700):
I hate to bump this but I fear my previous question wasn't noticed. How do I
add
I have a class extending Zend_Form which I have created a DisplayGroup for
using:
$this-addElements(array($nok_forename, $nok_surname, $nok_day, $nok_month,
$nok_year, $nok_address1, $nok_address2, $nok_town, $nok_county,
$nok_postcode, $nok_country));
$nok =
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
because it isn't defined by default, which throws a Notice. You should
always code error message free, even if they are just notices.
Sancar Saran schrieb:
On Thursday 24 April 2008 15:24:11 Jeffrey Sambells wrote:
Flame war starting :)
Let's
I was much faster and pratic than any oo way..
By this logic, why are you using any Zend Framework component?
Everything Zend does can be accomplished without a single object, just
process scripts top to bottom, throw in a couple of conditional
includes and put each piece of functionality in a
jamest wrote:
I have a class extending Zend_Form which I have created a DisplayGroup for
using:
$this-addElements(array($nok_forename, $nok_surname, $nok_day,
$nok_month, $nok_year, $nok_address1, $nok_address2, $nok_town,
$nok_county, $nok_postcode, $nok_country));
-- jamest [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 06:31 AM -0700):
I have a class extending Zend_Form which I have created a DisplayGroup for
using:
$this-addElements(array($nok_forename, $nok_surname, $nok_day, $nok_month,
$nok_year, $nok_address1, $nok_address2, $nok_town,
Hi all,
i'm trying to implement a class to manage manytomany relationships in
backoffice, i'd like to standardize it for reusability.
I would like to pass to the constructor of my class the name of the
tables involved (destination table, origin table, intersection table)
and that it
Is there a way to add notes and such within a form?
I want to be able to add some description text easily readable, preferably
in some p/p tags before the text element.
$form-addElements(array($name_notes,$name));
So you would ideally get:
form
...
pPlease enter your full name in the
-- jamest [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 07:38 AM -0700):
Is there a way to add notes and such within a form?
I want to be able to add some description text easily readable, preferably
in some p/p tags before the text element.
use setDescription() (or the 'description'
Hi all,
sorry i forgot the subject in my previous post :
i'm trying to implement a class to manage manytomany relationships in
backoffice, i'd like to standardize it for reusability.
I would like to pass to the constructor of my class the name of the
tables involved (destination table, origin
It wouldn´t be convenient when adding a description to an element,
automatically add the description label?
Does this make sense?
On Thu, Apr 24, 2008 at 11:47 AM, Matthew Weier O'Phinney [EMAIL PROTECTED]
wrote:
-- jamest [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 07:38 AM -0700):
On 4/24/08, Denis Fohl [EMAIL PROTECTED] wrote:
Hi all,
sorry i forgot the subject in my previous post :
i'm trying to implement a class to manage manytomany relationships in
backoffice, i'd like to standardize it for reusability.
I would like to pass to the constructor of my class the
Did you try eval?
$table1 = eval(new $originTable(););
Might has some overhead though!
Cheers,
Gunter
On Thu, Apr 24, 2008 at 8:56 AM, Denis Fohl [EMAIL PROTECTED] wrote:
Hi all,
sorry i forgot the subject in my previous post :
i'm trying to implement a class to manage manytomany
On 4/24/08, Denis Fohl [EMAIL PROTECTED] wrote:
Thank you for your response Vincent,
for now, i have no other solution than instantiate the object before
calling my constructor and pass the Zend_Db_Table objects to it instead of
passing strings with their names... but it's not exactly what i
-- Luiz Vitor [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 12:53 PM -0300):
It wouldn t be convenient when adding a description to an element,
automatically add the description label?
Does this make sense?
Yes, it does -- and iirc, I coded the Description decorator to generate
no
-- Amr Mostafa [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 06:06 PM +0200):
Do you think that adding a 'content' attribute to HtmlTag would be a good way
to support this?
I've had this need myself before, but didn't think it's worth it. But I've
seen
this request few times now so
On 4/24/08, Pete Spicer [EMAIL PROTECTED] wrote:
Hello
It is possible to instantiate a class from a variable name - before PHP 5.3
even. I've been doing this with 5.2 in a project I'm working on.
I think the key thing is the syntax:
$table1 = new $originClass; // note no brackets
I am on PHP 5.2.5 and for me it works to use:
$fubar = new $class($params ...);
Cheers,
Holger
-Original Message-
From: Pete Spicer [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 24, 2008 6:09 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] instantiate an object with a
Have you looked into the description decorator?
http://www.nabble.com/Description-decorator-to15365525.html#a15365525
Jim
jamest wrote:
Is there a way to add notes and such within a form?
I want to be able to add some description text easily readable, preferably
in some p/p tags before
-- Greg Donald [EMAIL PROTECTED] wrote
(on Thursday, 24 April 2008, 02:13 PM -0500):
Are there any plans to make Zend_Uri aware of Zend_Controller_Router* ?
Being able to do something like
Zend_Uri::factory( 'controller' = 'foo', 'action' = 'bar' );
_might_ be useful.
Each route has its
Hi Greg!
Sorry if I may sound a bit harsh, however I will ask anyways: Did you come
to start a flame war or an actual discussion?
If you think that performance is the ultimate and only goal in software
development, you are wrong. Performance is important, yes. However, there is
another factor
Use MySQL :) haha, just kidding. I don't know about CASE_FOLDING as I do use
MySQLi but I do know all Zend_Framework classes are easily extended for
extra functionality needs.
On Thu, Apr 24, 2008 at 1:12 PM, Greg Donald [EMAIL PROTECTED] wrote:
Anyone know why CASE_FOLDING seems to only work
Not an answer, just a little detour:
It would be so great if your error was that nothing happens :)
Robin
On Thu, Apr 24, 2008 at 11:09 PM, [EMAIL PROTECTED] wrote:
Hey guys, I'm trying to run some PHPUnit tests locally on my model
classes, against a local test database. I'm using the
On Thu, 2008-04-24 at 22:15 +0100, James Dempster wrote:
PHPUnit does things with variables in the GLOBAL space. e.g. $db is
there and has a PDO in it.
If you don't need $db again after you've set it as the default for
Zend_Db_Table then unset it and you'll be ok.
Say you have something like:
PrivacyPolicyController.php
privacy-policy/index.phtml
Then requesting /privacy-policy will work fine. However you can also request
/privacypolicy because PHP is case insensitive but it will throw and
exception that it can't find the view script .
How is this meant
On Apr 25, 2008, at 5:13 AM, Greg Donald wrote:
Are there any plans to make Zend_Uri aware of
Zend_Controller_Router* ?
Being able to do something like
Zend_Uri::factory( 'controller' = 'foo', 'action' = 'bar' );
_might_ be useful.
*Might* be useful if there wasn't already 2 or 3
Thought I'd forward this on since it was sent directly to me ;)
Begin forwarded message:
From: Greg Donald [EMAIL PROTECTED]
Date: April 25, 2008 9:55:37 AM GMT+10:00
To: Mathew Byrne [EMAIL PROTECTED]
Subject: Re: [fw-general] Zend_Uri
On Thu, Apr 24, 2008 at 6:42 PM, Mathew Byrne
[EMAIL
Hi Denis,
I understand what you are trying to do, unfortunely get_class(self) will not
work if self is an extended class (as Zend_Db tables are), the only
workaround (until 5.3 is out where will be possible to do this) is to create
a method, this is how I do it:
create an interface
31 matches
Mail list logo