The autoloading adventure continues...
Using Zend_Autoloader_Resource is working great. Except for one thing:
matching the namespaces up with Zend_Amf_Server
My directory structure is the standard one. Here is some code:
$loader = new Zend_Loader_Autoloader_Resource(array(
'basePath' => APPL
i am adding elements dynamically using data from a database
so i did something like
$this->addDisplayGroup(array('item'), "labAllocation", array(
'legend' => 'Lab Allocation'
));
foreach ($labs as $lab) {
$this->getDisplayGroup("labAllocation")->addElement(new
Zend_Form_Element_Text("l
Hi,
try looking through the performance enhancement guide first:
http://framework.zend.com/manual/en/performance.html
Also ensure you are using an op-code cache of some sort, like apc or
zend optimizer.
-ralph
iceangel89 wrote:
i noticed that my Zend Framework application is slower than sa
Hey!
Look at the performance guide:
http://framework.zend.com/manual/en/performance.html
Cheers.
On Mon, May 4, 2009 at 10:59 PM, iceangel89 wrote:
>
> i noticed that my Zend Framework application is slower than say an app i
> develop in normal PHP. maybe becos Zend Framework does more stuff in
i noticed that my Zend Framework application is slower than say an app i
develop in normal PHP. maybe becos Zend Framework does more stuff in the bg.
any way i can optimise my Zend Framework app? or PHP in general? is there a
minification for PHP or something?
--
View this message in context:
1. Windows (Zend Server CE).
2. Local.
3. Netbeans.
4. SVN.
5. PHPUnit.
On Mon, May 4, 2009 at 8:37 PM, Kendall Bennett
wrote:
> Mac OS X Leopard
> I always develop, test and debug on a local clone of our web sites. We find
> we rarely have to debug remotely
> Zend Studio 6.x
> Perforce
> No PHPU
Hi everyone,
From the release announcement for ZF 1.8.0, I was expecting dojo
version 1.3.0 to be incorporated in the full download package. I see,
though, that dojo.version.toString() reports 1.1.0dev. Am I mistaken,
or is this an oversight w/ the ZF release?
I've just filed an issue rega
I'm just getting my feet wet with ZF, so excuse the ignorance here
The Zend Reference guide for the Zend_Loader_Autoloader_Resource adds a
resource without specifying the namespace parameter, ie:
$resourceLoader->addResourceType('model', 'models/',);
According to the docs, that's fine, as t
I'm trying to create a series of radio buttons that span across several
subforms. I have a subform for each 'item' in a form and the radio buttons
would be used to select a particular item.
Example:
--subform1---
___ image
___ name
O select as thumb <-Radio Button
--subform2---
___ image
___
I'm not fully sure what component you are using, but the reason that both
messages are sent is surly that you've not set the validation chain to break
on the first error.
On Tue, May 5, 2009 at 3:56 AM, iceangel89 wrote:
>
> anyone?
>
>
> iceangel89 wrote:
> >
> > i tried
> >
> > $this->broken->
Unless I am missing something, couldn't you just use the same class as before
that builds the HTML for you, and put the resulting HTML for the table into a
view variable in your controller, and then render it in your view from the
variable you assign in the controller?
Regards,
Kendall Bennett
anyone?
iceangel89 wrote:
>
> i tried
>
> $this->broken->setErrorMessages(array("isEmpty" => "Broken is required",
> "notAlpha" => "Not Alpha"));
>
> but i get both errors as long as 1 validator fails. and i dont think its a
> good idea to hardcode the "isEmpty" and stuff? i shld use the con
ok solved.
to use %value% i need $this->_setValue($somevalue)
public $var_name = 123;
protected $_messageVariables shld be = array (
'maxValue' = 'var_name' // Declared in public $var_name = 123;
)
iceangel89 wrote:
>
> oh i think its because i tried to use
>
> protected $_messageVaria
woo, great work! its been quite awhile
--
View this message in context:
http://www.nabble.com/One-to-Many-Screencast-on-Zendcasts-tp23371882p23379702.html
Sent from the Zend Framework mailing list archive at Nabble.com.
1. Mac OS X Leopard
2. I always develop, test and debug on a local clone of our web sites. We
find we rarely have to debug remotely
3. Zend Studio 6.x
4. Perforce
5. No PHPUnit support yet, but that is why I am learning ZF - I plan to learn
PHP unit along the way :)
Regards,
Kendall B
Where is the issue tracker?
The other thing I noticed is that when I loaded Zend Framework into my Zend
Studio as a separate project, there were a TON of warnings generated on the
code. I investigated a couple and some of them look like straight up bugs to
me. Are the developers using Zend Stud
Right. I actually got that one to work after I did my initial post, so I now
have my helpers all happily living in my library directory.
The only annoying thing is that in Zend Studio if I am using the Zend Framework
perspective, it does not show anything outside of the /application directory,
Cool. So if I did it that way, my admin module would still be able to load and
use default models?
Also, since I have yet to get this working, if I do that, I assume I don't need
to have a different index.php on the public site in an admin directory, but ZF
will know to route stuff from http://
Hi Vince,
I wrote something similar to this for a project a few weeks ago, it wasn't
perfect but it got the job done.
+---+---+---+
| Label | Label | Label |
+---+---+---+
| Value | Value | Value |
+---+---+---+
| Value | Value | Value |
+---+---+--
Right. I actually got rid of the $this->action() and put the action stack back,
because I felt it was cleaner to not have to pass the action parameters around,
but have it run in the context of the actual action itself. So I am using the
response segment again.
But, I do see what you are gettin
Giorgio Sironi wrote:
>
>
> Normally view helpers return html; in this case you can write a table view
> helper (another class) that returns a new instance of your Table class.
> You
> can embellish the object with a fluent interface and a __toString() method
> and then in the view you will do
First let me start by saying I am fairly new to ZF and with this post I am
primarily looking for feedback for improvement from the Zend experts on my
solution and hopefully, if list solution is reasonable, others may have some
information, where I found it difficult to find.
My Goal: With my ZF
Hi,
I need to render data tables in my form with the layout
+---+---+---+
| Label | Label | Label |
+---+---+---+
| Value | Value | Value |
+---+---+---+
I tested all kinds of methods like rendering with
- composite decorator
- standard d
When I do PHP development,
1. Mac OS X2. Either, depending on the situation
3. TextMate (I use Macfusion for mounting remote file systems), or Vim for
quick edits
4. Subversion
5. Yes
In my spare time I mostly develop in Ruby, though (and lately MacRuby, using
Xcode). For personal projects I tend
What's the best way to add an initial empty value, while still retaining a
select menu as required?
This doesn't work very well. It, unfortunately, makes the first value '0'
and then accepts it as a valid value:
$valid_states = array ();
$valid_states[] = null;
while ( ($row = $stmnt->
2009/5/4 elminster
> But I am not sure how to get this into the view, and how to get it to use
> my
> object. I can create a helper but it tells me that doing 'new Table()' is
> not allowed.
Normally view helpers return html; in this case you can write a table view
helper (another class) that r
I'm having a deuce of a time getting Zend_Feed to create a feed with some
custom namespace elements in it.
I've tried various combinations; the last one is this:
$feed = new Zend_Feed_Rss();
Zend_Feed::registerNameSpace('newsAndReviews', '
http://www.buy.com/rss/module/newsandreviews/');
[in a loo
I just started to move my application from my development environment to my
test environment and I came across something unexpected.
My development environment is Windows/Apache/PHP - connected to an external
Postgresql DB.
The application runs fine on that.
I moved to Linux/Apache/PHP and Postgr
1. windows xp
2. remote
3. zend studio, eclipse pdt*
4. svn
5. no
* zend studio full time, eclipse for side projects
Curious to see the results tallied up
-Mike Tramontano
-Original Message-
From: howard chen [mailto:howac...@gmail.com]
Sent: Saturday, May 02, 2009 1:14 PM
To: Zend Fra
1. Ubuntu
2. localhost
3. Eclipse PDT
4. Subversion
5. Not yet, just prepared PHPUnit to do the job
--
Jurian Sluiman
Soflomo.com
Op Monday 04 May 2009 21:10:14 schreef Martijn Gastkemper:
> 1. Ubuntu
> 2. localhost
> 3. NetBeans
> 4. svn
> 5. not jet
>
> On Mon, May 4, 2009 at 7:01 PM, Terre Por
1. Ubuntu
2. localhost
3. NetBeans
4. svn
5. not jet
On Mon, May 4, 2009 at 7:01 PM, Terre Porter
wrote:
>
> > 1. What OS you are using during development? Windows? Mac? Linux?
> Windows (Editor), Linux (server)
>
> > 2. Do you edit source code on localhost or remote? i.e. is your testing
> envir
On Mo, Mai 04, 2009 at 09:37:37 -0400, Bryce Lohr wrote:
> howard chen wrote:
>> Please feel free to answer:
>>
>> 1. What OS you are using during development? Windows? Mac? Linux?
>>
>
> WInXP Pro
>
>> 2. Do you edit source code on localhost or remote? i.e. is your
>> testing environment reside
Daniel,
Which release are you using ?
Why do you call isUploaded() instead of isValid() ?
PS: The doc does not mention that you should do isUploaded... it mentions
isValid()
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
Its probably better if you stick with the 'Default' key, as it creates
less amibiguity when it comes to class to location mapping for developers.
As for JDeBord's experience I have to concur. Once you get your "head
around it" the autoloader is simply elegant. Custom code just falls
into pla
but i want my db queries to return objects, tried things like:
resources.db.params.FetchMode = Zend_Db::FETCH_OBJ;
resources.db.params.setFetchMode = Zend_Db::FETCH_OBJ;
resources.db.params.FetchMode = FETCH_OBJ;
resources.db.params.FetchMode = Zend_Db:FETCH_OBJ;
but nothing works ... does some
vince. wrote:
>
> Hey,
>
> Could you share the code with us?
>
> Thanks.
>
It is not really the code I am worried about; it was just a class from php
classes that I used pre ZF , I didnt write it.
It is more the theory I am trying to get my head around. But as an example
in OO PHP I would
Hey,
Could you share the code with us?
Thanks.
On Mon, May 4, 2009 at 8:15 PM, elminster wrote:
> Hi. I wanted to use a class to generate an html table object before finally
> outputting this object in the view. I used to do this in non ZF OO PHP by
> creating my table object, and gradually ad
Hi. I wanted to use a class to generate an html table object before finally
outputting this object in the view. I used to do this in non ZF OO PHP by
creating my table object, and gradually adding rows and columns etc.
I already have this code, and their doesnt seem to be a feature in ZF for
doi
> 1. What OS you are using during development? Windows? Mac? Linux?
Windows (Editor), Linux (server)
> 2. Do you edit source code on localhost or remote? i.e. is your testing
environment reside on localhost or remote?
Local edit using samba share to remote vmware linux development server.
> 3.
1. Linux & Windows XP (mainly for designing)
2. Development: local; testing both local & remote
3. Netbeans & Komodo
4. SVN
5. Not yet but getting into PHPUnit
--
Isaak Malik
Web Developer
Hi,
I have an optional File upload element on my form, the current docs state
the following to get an optional form element:
$element = new Zend_Form_Element_File('foo');
$element->setLabel('Upload an image:')
->setDestination('/var/www/upload')
->setRequired(false);
$element->add
On Sat, May 2, 2009 at 1:14 PM, howard chen wrote:
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Mac OSX
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?
Remote
> 3. What
Hey everyone,
I've just posted another video on zendcasts. This is part 3 in a
series on Zend_Db:
http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/
Best Regards,
-
Jon Lebensold
I found this great db setup example at
http://code.google.com/p/zendframeworkstorefront/
resources.db.adapter = MYSQLI
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password =
resources.db.params.dbname = gamerszone
resources.db.params.driver_option
Hi!
1. Windows / OSX 10.5.6
2. Remote, Running on Ubuntu
3. Eclipse PDT / Netbeans Development
4. SVN
5. Testing is for sissies (PHPUnit when testing)
Camilo Usuga | Team Leader | Soficol S.A.
Pbx: (574) 444 8555 | Cel: (57 300) 603 6727
Medellín - Colombia
-Original Message-
From: h
Perhaps try looking in the AuthController (or wherever Zend_Auth has
stored the "identity".) In most cases, an object of type Member was
stored, and on each future request, that class must be loaded before the
session data can be unserialized.
Eitehr that, or somewhere else, an object of type
On Sat, May 2, 2009 at 12:14 PM, howard chen
wrote:
Please feel free to answer:
1. What OS you are using during development? Windows? Mac? Linux?
Mac OS X
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
Local
3.
-- Joseph Crawford wrote
(on Monday, 04 May 2009, 10:57 AM -0400):
> On Sat, May 2, 2009 at 12:14 PM, howard chen wrote:
> 5. Do you use PHPUnit or other testing tools?
>
> I have not yet gotten into Unit Testing as none of my employers have
> required it.
Testing your code
On Sat, May 2, 2009 at 12:14 PM, howard chen wrote:
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Windows XP at work, Windows Vista at home
>
> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on
Hi,
I've made a simple (very simple) example with source code download at the
end.
The post it's in spanish, but code help me to see how modules' autoloader
works.
http://bit.ly/18OvfW http://bit.ly/18OvfW
regards
jpadron
http://www.konducta.com www.konducta.com
--
View this message in cont
2009/5/2 howard chen
>
> 1. What OS you are using during development? Windows? Mac? Linux?
Linux (Ubuntu)
> 2. Do you edit source code on localhost or remote?
localhost
> 3. What tool or IDE you are using? Ultraedit? Apanta? Eclipse PDT?
Eclipse PDT
> 4. Which versioning system your a
howard chen wrote:
Please feel free to answer:
1. What OS you are using during development? Windows? Mac? Linux?
WInXP Pro
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
Dev & test locally, rsync to server
3. What
Op Monday 04 May 2009 15:05:00 schreef Matthew Weier O'Phinney:
> -- Jurian Sluiman wrote
>
> (on Monday, 04 May 2009, 02:20 PM +0200):
> > I have read some autoloading articles here, but all examples are with no
> > or one module. My application has this structure (almost everything is
> > inside
oh i think its because i tried to use
protected $_messageVariables = array(
'maxValue' => 0
);
but how can i use messageVariables?
iceangel89 wrote:
>
> you are right, the validator is not called.
>
> i added it in my Zend_Form class
>
> $this->broken = new Zend_Form_Element_T
-- Jurian Sluiman wrote
(on Monday, 04 May 2009, 02:20 PM +0200):
> I have read some autoloading articles here, but all examples are with no or
> one module. My application has this structure (almost everything is inside a
> module):
>
>
> /application
> /configs
> /layouts
> /modules
> /default
Hello Matthew
Thank you very much for your response.
> Fatal error: Class 'Foo' not found in /var/www/[..]/www/index.php on line 38
>> That's because class 'Foo' does not have a namespace prefix. (Hint: this
>> is one reason why we no longer have a Zend.php with class Zend...)
So, I guess that
Hi all,
I have read some autoloading articles here, but all examples are with no or
one module. My application has this structure (almost everything is inside a
module):
/application
/configs
/layouts
/modules
/default
/admin
/blog
/calendar
I have read this thread: http:/
On 2009-05-04 12:04, Vadim Gabriel wrote:
Hey,
I know that you could use html entities as values, Not sure if that
applies for keys as well.
There is no need to use entities.
If *value* (not key) contains special characters,
you just enclose it with double quotes.
http://php.net/parse_ini_file
-- Jan Pieper wrote
(on Monday, 04 May 2009, 11:51 AM +0200):
> Can please someone add "Zend_Crypt" to the component list in JIRA?
Done.
--
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework | http://framework.zend.com/
-- iceangel89 wrote
(on Sunday, 03 May 2009, 09:28 PM -0700):
> i want to decorate my form in a table something like
> http://www.nabble.com/How-render-Zend_Form-to-html-table--td15299082.html
>
> except in the following format
>
> ++--+---+
> | label |label |
-- Jonathan Maron wrote
(on Monday, 04 May 2009, 07:53 AM +0200):
> I use the Zend_Loader_Autoloader to load classes. My namespace is "Foo".
>
> According to the docs (http://is.gd/v5zW) I should provide an
> underscore after the namespace:
>
> require_once 'Zend/Loader/Autoloader.php';
>
> $au
1. Windows XP SP3 (dev and test), CentOS 5.2 (dev+test+production)
2. Code is produced and tested on localhost, code is synchronized to
production server/test server
3. Eclipse PDT 2.1, Notepad++, Vim, Netbeans
4. Subversion 1.5
5. Home grown unit test function, PHPUnit, Selenium, ab, siege
howar
1. What OS you are using during development? Windows? Mac? Linux?
All of them (Linux: Fedora + KDE) - but mostly Windows and Mac
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
Remote on a samba share
3. What tool or ID
1. W2K
2. Remote. FreeBSD over Samba
3. Inspire PhpEd
4. None currently, coming soon!
5. PHPUnit, Selenium
howard chen wrote:
>
> Please feel free to answer:
>
> 1. What OS you are using during development? Windows? Mac? Linux?
> 2. Do you edit source code on localhost or remote? i.e. is you
Hey,
I know that you could use html entities as values, Not sure if that applies
for keys as well.
Then use it as an array
$array = Bootstrap::getOption('myoption');
$array['key1']['key2']['key2'];
I am not sure how the getOption method returns the array if it's mullti
dimensional or not, I di
vince. wrote:
>
> Hey,
>
> No, You can't use HTML characters inside the ini file. Use HTML Entities
> instead.
>
>
I'm afraid I don't understand what you mean.
What works fine:
resources.cache.frontend.regexps.a.cache = true
This doesn't work:
resources.cache.frontend.regexps.$.cache = true
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Can please someone add "Zend_Crypt" to the component list in JIRA?
best regards,
Jan Pieper
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
iD8DBQFJ/rqdAmDzOgJaVSERAqZvAKCMKQBfKVKgEQE2LrqARpskx0ypnQCdGLl3
JbOYvc7SscLkX4XZKGHbBPc=
=Ocsg
Hey,
I have updated the classes again. I have created
Zend_Payment_Gateway_Paypal_Customer which handles customer billing and
credit card info. now i am willing to split the rest of the class into
several smaller classes such as Zend_Payment_Gateway_Paypal_Transaction,
Zend_Payment_Gateway_Paypal_
Information of PHP_CompatInfo is not enough so far. It cannot found
many different between PHP version like SPL.
That's great and helpful if listed out that PHP version per component.
Ken.
2009/5/3 till :
> On Sun, May 3, 2009 at 2:18 PM, Mr. Eric Eugene Naujock
> wrote:
>> (...)
>> So in summar
Hey,
No, You can't use HTML characters inside the ini file. Use HTML Entities
instead.
Yes you can use $config->param1->param2 etc.. take a look at
http://framework.zend.com/manual/en/zend.config.adapters.ini.html
on how to use it.
Vince.
On Mon, May 4, 2009 at 12:03 PM, admirau wrote:
>
> Hi
Hi!
Im trying to pass application options from application.ini
to the cache resource via following options:
line: 19 of application.ini:
resources.cache.frontend.regexps.^/$.cache = true
Executing:
$this->getOptions('resource');
produces exception:
Zend_Config_Exception: Error parsing
C:\Use
Found the manual page on this, in the section on validating forms:
http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.validators
--
View this message in context:
http://www.nabble.com/Validating-based-on-more-than-1-inputs-tp23354455p23364485.html
Sent from the Zend
Hi Kendall,
The models will be shared across modules with no extra work; just put them
in the models directory.
I put my view helpers (and other code) in directories like
/library/MyApp/View/Helper/DateFormat.php
and then add the helper path
$prefix = 'MyApp_View_Helper';
$dir =
1. What OS you are using during development? Windows? Mac? Linux?
=> Windows with Wamp
2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
=> Both
3. What tool or IDE you are using? Ultraedit? Apanta? Eclipse PDT?
=> Eclipse PDT
4. Whic
i use following css for table-look
dl {display:block;}
dt
{clear:left;display:block;font-weight:bold;float:left;width:155px;border-top:1px
solid #666;color:#F48120;}
dd {clear:right;display:block;margin-left:155px;padding:3px;border-top:1px
solid #666;background-color:#56585d;}
On Mon, May 4, 200
75 matches
Mail list logo