Re: [fw-general] [apc-error] Cannot redeclare class

2008-10-03 Thread Matthew Weier O'Phinney
-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 11:00 PM -0400): > -- Todd Wolaver <[EMAIL PROTECTED]> wrote > (on Friday, 03 October 2008, 06:36 PM -0500): > > I've just updated my Zend Framework library on my test server to the latest > > SVN > > head and now I'

Re: [fw-general] [apc-error] Cannot redeclare class

2008-10-03 Thread Matthew Weier O'Phinney
-- Todd Wolaver <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 06:36 PM -0500): > I've just updated my Zend Framework library on my test server to the latest > SVN > head and now I'm getting an APC error: > > [apc-error] Cannot redeclare class zend_dojo > > I've traced back the error and

Re: [fw-general] Lucene and caching

2008-10-03 Thread Goran Juric
Lucene is originaly written in Java, and it is quite fast. PHP implementation is not that fast. Do a plain installation, if it's to slow and you have a lot of indentical queries try caching, if that is not enough go for Java & Solr implementation... iffy guy wrote: > > The reason I asked this

Re: [fw-general] how can i set list separator in zend_form?

2008-10-03 Thread aztechy
Resurrecting this post as I have the same issue of trying to set listsep. Within my form I'm trying to create a multiCheckbox element with the following call. $displayGroupElementName[] = 'repeat_days'; $this->addElement( 'multiCheckbox', end($displayGroupElementName), a

[fw-general] [apc-error] Cannot redeclare class

2008-10-03 Thread Todd Wolaver
I've just updated my Zend Framework library on my test server to the latest SVN head and now I'm getting an APC error: [apc-error] Cannot redeclare class zend_dojo I've traced back the error and it starts with Revision 11629 which addressed ZF-4458 (Analyse bottlenecks in Zend_Loader and Z

[fw-general] Nabble v. Spam

2008-10-03 Thread Wil Sinclair
Hey all, I just went through the spam filter again, so that's why you're getting duplicates. I'm going to try to start doing this weekly, but it takes at least an hour so no promises. :/ I've noticed that a lot of the mails that get stuck in the spam filter have been submitted via Nabble. I highly

[fw-general] Can someone straighten me out on a best practices thing, possibly involving modules?

2008-10-03 Thread Ian Rickert
(pardon me if this went through twice, but I didn't see it appear in the nabble forum after emailing it) Hey there all -- I've been trying to understand ZF recently and I am having trouble wrapping my mind around something. I think it'll be easiest if I quickly explain how I usually do things:

[fw-general] Zend_Acl_Assert_Interface Usage

2008-10-03 Thread valugi
Could this sentence: $this->allow('role', 'resource', 'permission', new My_Acl_Assert_Rule()); be translated in English like this: "Create an allow rule for this role, resource and permission WHEN My_Acl_Assert_Rule returns TRUE? I want a way to allow access just if My_Acl_Assert_Rule filter is

Re: [fw-general] Old issues

2008-10-03 Thread Matthew Weier O'Phinney
-- Michał Zieliński <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 02:29 PM -0700): > I`d like to ask if there are any plans to solve old issues? > All I can see is that most fixes are about new added features. It`s cool and > I`m very thankfull for your hard work and pushing the ZF forwar

[fw-general] Zend_Search_Lucene problem with query parser

2008-10-03 Thread Søren Møller Hansen
I'm having trouble getting the QueryParser to work. I'm implementing Zend_Search_Lucene on a website and QueryParser should parse the input string from a form field. It parses the input to the following: object(Zend_Search_Lucene_Search_Query_Boolean)[161] private '_subqueries' =>

[fw-general] Automatically query related field from another table?

2008-10-03 Thread yellow1912
Hi all, I'm really new to Zend, so please forgive me if the question seems silly I have a table called Employees which has a one to one relationship with table Positions. My employees model look like this: class Employees extends Zend_Db_Table { protected $_name = 'employees'; protecte

Re: [fw-general] FlashMessenger

2008-10-03 Thread Ralph Schindler
Do have any other requests coming through at the same time by chance? Perhaps you have a broken link pulling a 404, or you have ajax happening at the same time. Effectively, you need to make sure that you are not "Expending" an extra hop during the redirect. Does that make sense? -ralph On 10/3

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
In that case then you are right in including the logic in the form. I don't think a custom decorator is needed (though you'll have to use your best judgment). Instead, when building the form, add an image element if the image exists or use the image decorator. http://framework.zend.com/manual/en/

[fw-general] Old issues

2008-10-03 Thread Michał Zieliński
Hi. I`d like to ask if there are any plans to solve old issues? All I can see is that most fixes are about new added features. It`s cool and I`m very thankfull for your hard work and pushing the ZF forward but I hope some day ZF Team would finally return to old ones as well. They are all needed,

[fw-general] FlashMessenger

2008-10-03 Thread Avi Block
This is something that i've done a million times without fail outside this framework, and the framework looks like it has an easy API to use such a feature. Having said that, someone please point out the errors of my ways I have a controller that looks something like this class MyContro

Re: [fw-general] Commit 11606 seems to have broken Zend_Translate

2008-10-03 Thread Matthew Weier O'Phinney
-- Thomas Weidner <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 10:09 PM +0200): > Nice, but instead of an exception now only an error is triggered. > The change within translation means that you can set a language even if > you have not added it without getting an exception. > > So inste

Re: [fw-general] Commit 11606 seems to have broken Zend_Translate

2008-10-03 Thread Thomas Weidner
Nice, but instead of an exception now only an error is triggered. The change within translation means that you can set a language even if you have not added it without getting an exception. So instead of stopping the application to work, it now will continue and trigger only an error. How sho

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Edward Haber
There are a lot of other elements in the form though so it's not either the image or the whole form. The file upload is just one of 10 elements. It seems like an element decorator should work. But make a custom one or utilize a built-in one? I don't want to take over the directions decorato

[fw-general] Re: Zend_Log factory() proposition

2008-10-03 Thread Martin Roest - Ibuildings
> This sounds like a great addition to Zend_Log, you'll get my thumbs up on > this. constructing the logger is somewhat tedious at the moment. > > It took me some time due to my schedule but the proposal is online. If you're interested please take a look at and let me know. http://framewo

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
Sorry, that didn't come through quite right. See http://www.paste2.org/p/81737 instead. Matthew Lurz wrote: > > I wouldn't include the image in the form at all actually. Instead I would > just wrap a conditional around a div in the view script. Something like: > > image): ?> > > "src ?>"> >

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
I wouldn't include the image in the form at all actually. Instead I would just wrap a conditional around a div in the view script. Something like: image): ?> "src ?>"> form ?> Edward Haber wrote: > > That does sound like a better solution to me. Also, the link in the > form could frustr

Re: [fw-general] Commit 11606 seems to have broken Zend_Translate

2008-10-03 Thread Taco Jung
Hi Alex, Same here, but I don't think it is revision 11606 that causes the trouble, but rather Matthew's commit (rev. 11629). Regards, TJ. On Fri, Oct 3, 2008 at 8:55 PM, Alex <[EMAIL PROTECTED]> wrote: > Hello, > > Commit 11606 by "thomas" seems to have broken something Translate related. >

Re: [fw-general] Trouble with Zend_Layout

2008-10-03 Thread Kevin Hallmark
require_once "Zend/Layout.php"; Looks like you already manually included the file, but the autoloader is trying to load it. I'd comment this line out and try again. Kevin On 10/3/08 2:33 PM, "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote: > -- mezoni <[EMAIL PROTECTED]> wrote > (on Friday

[fw-general] Commit 11606 seems to have broken Zend_Translate

2008-10-03 Thread Alex
Hello, Commit 11606 by "thomas" seems to have broken something Translate related. After the update, $this->translate()->getLocale() causes a total halt in execution, with no Exceptions thrown. Reverting to 11600 fixes the problem. Anyone else experiencing this? - Alex

Re: [fw-general] Trouble with Zend_Layout

2008-10-03 Thread Matthew Weier O'Phinney
-- mezoni <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 11:00 AM -0700): > PluginLoader cannot load Zend_Layout. > > In my bootstrap.ph I use the following code: > > require_once "Zend/Layout.php"; > Zend_Layout::startMvc(array('layoutPath' => self::$path . > '/application/module

Re: [fw-general] Zend_Dojo, styling dijits, overriding CSS

2008-10-03 Thread Matthew Weier O'Phinney
-- Ian Rickert <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 10:58 AM -0700): > Matthew Weier O'Phinney-3 wrote: > > -- Ian Rickert <[EMAIL PROTECTED]> wrote > > (on Friday, 03 October 2008, 09:39 AM -0700): > > > > > I can't style the Dijits with CSS! I understand > > > that there are C

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Edward Haber
That does sound like a better solution to me. Also, the link in the form could frustrate some users if they've partially completed the form then delete the image. Thanks for your comments. So then the best solution appears to be a decorator. On Oct 3, 2008, at 1:28 PM, Matthew Lurz wrote:

Re: [fw-general] SWFUpload with Zend

2008-10-03 Thread Cristian Bichis
Hello, I integrated SWFUpload couple of months ago, and works properly. I will be back tomorrow with some tips related to integrating them (now is kinda late here). -- Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | ww.zflinks.com Hi, Has anybody tri

[fw-general] Trouble with Zend_Layout

2008-10-03 Thread mezoni
PluginLoader cannot load Zend_Layout. In my bootstrap.ph I use the following code: require_once "Zend/Layout.php"; Zend_Layout::startMvc(array('layoutPath' => self::$path . '/application/modules/default/views/scripts')); Zend_Layout::getMvcInstance()->getView()->addScriptPath(sel

Re: [fw-general] Zend_Dojo, styling dijits, overriding CSS

2008-10-03 Thread Ian Rickert
Matthew Weier O'Phinney-3 wrote: > > -- Ian Rickert <[EMAIL PROTECTED]> wrote > (on Friday, 03 October 2008, 09:39 AM -0700): > >> I can't style the Dijits with CSS! I understand >> that there are CSS files which are loaded with the Dijits, and the common >> answer is to override the settings

[fw-general] SWFUpload with Zend

2008-10-03 Thread teleki
Hi, Has anybody tried to use SWU upload (http://code.google.com/p/swfupload/) with Zend?? I have no problem using either Zend Framework or SWU separately, however when trying to integrate the two, I have problem specifying the upload_url, which would point to the Action that would process the uplo

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
In that case why not forego the remove action and the additional form logic and just display the form regardless of whether the image exists. When the user uploads a new image it would replace the existing one. Just wondering since it seems like the user would have to jump through an extra hoop to

Re: [fw-general] Zend_Dojo, styling dijits, overriding CSS

2008-10-03 Thread Matthew Weier O'Phinney
-- Ian Rickert <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 09:39 AM -0700): > I'm hesitant to ask this because it is maybe a little bit more of a Dojo > question than a ZF question. But I've had little luck with the Dojo docs > and my googlings for this have only created more confusion.

Re: [fw-general] Trying to start with Zend_Test

2008-10-03 Thread Matthew Weier O'Phinney
-- Mauricio Cuenca <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 09:01 AM -0700): > > I'm not getting this topic very well. I've done PHPUnit Tests before, but > right now I am unable to integrate it wih Zend_Test so I can test my MVC > environment. > > My version is 3.3.1. The error onl

[fw-general] Zend_Dojo, styling dijits, overriding CSS

2008-10-03 Thread Ian Rickert
Hey all -- I'm hesitant to ask this because it is maybe a little bit more of a Dojo question than a ZF question. But I've had little luck with the Dojo docs and my googlings for this have only created more confusion. I'm very pleased with the construction of my dojo-enabled form -- once I conf

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Edward Haber
Here's the solution I came up with. Thanks for all the input and help on this problem. This solution involves using a conditional statement in Zend_Form to create one of two element types. When the image is present the view helper decorator replaces the form element with the image and a lin

Re: [fw-general] Using Layout & Views

2008-10-03 Thread Jim Mullen
ZF docs have documentation on using Zend_Layout as a standalone component. The doc page is available at: http://framework.zend.com/manual/en/zend.layout.quickstart.html#zend.layout.quickstart.standalone Best regards, Jim http://www.iDimensionz.com - professional web site programming and affor

Re: [fw-general] Trying to start with Zend_Test

2008-10-03 Thread Mauricio Cuenca
I'm not getting this topic very well. I've done PHPUnit Tests before, but right now I am unable to integrate it wih Zend_Test so I can test my MVC environment. My version is 3.3.1. The error only happend when the test was run from the browser. I ran the test from the command line using the "php"

Re: [fw-general] Using Layout & Views

2008-10-03 Thread Ian Rickert
Panman wrote: > > Hi, want to start using ZF with a project and would like to properly use > the layout and views. Just to note, this is in a non-MCV environment. > > So from my understanding the first would be to create a layout for the > overall design. Would I then make the header, footer,

[fw-general] Using Layout & Views

2008-10-03 Thread Panman
Hi, want to start using ZF with a project and would like to properly use the layout and views. Just to note, this is in a non-MCV environment. So from my understanding the first would be to create a layout for the overall design. Would I then make the header, footer, side nav, and content separat

Re: [fw-general] How to map url to route

2008-10-03 Thread iceberg
Matthew Weier O'Phinney-3 wrote: > > -- iceberg <[EMAIL PROTECTED]> wrote > (on Friday, 03 October 2008, 05:39 AM -0700): >> I have problem with mapping url to route. >> >> For example: >> >> I added route like this. >> >> Zend_Controller_Router_Route_Static( >> 'show-me-heaven', >>

Re: [fw-general] Datagrid in Zend Framework

2008-10-03 Thread Benjamin Eberlei
+1 from me, this is a cool idea and very useful :) On Friday 03 October 2008 15:45:43 zsamer wrote: > Thanks, I've been thinking about it. Hope that soon. > > Best regards > Zsamer > > Tobias Gies wrote: > > Wow, very cool stuff! > > > > I beg you, please create a ZF proposal :-) > > > > Best rega

Re: [fw-general] Datagrid in Zend Framework

2008-10-03 Thread zsamer
Thanks, I've been thinking about it. Hope that soon. Best regards Zsamer Tobias Gies wrote: > > Wow, very cool stuff! > > I beg you, please create a ZF proposal :-) > > Best regards > Tobias > > 2008/10/1 zsamer <[EMAIL PROTECTED]> > >> >> here you have my own implementation: >> http://code

Re: [fw-general] How to map url to route

2008-10-03 Thread Matthew Weier O'Phinney
-- iceberg <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 05:39 AM -0700): > I have problem with mapping url to route. > > For example: > > I added route like this. > > Zend_Controller_Router_Route_Static( > 'show-me-heaven', > array('controller' => 'index', 'action' => 'show') >

[fw-general] Re: [PATCH] Problem passing object into ACL assert methods

2008-10-03 Thread Colin Guthrie
Colin Guthrie wrote: Colin Guthrie wrote: I'd really appreciate a follow up on this as it will affect how I approach my ACL implementation. Anyone got any opinions on this topic? I'm going down this route with my development and I want to be confident that either my patch or an alternative f

[fw-general] How to map url to route

2008-10-03 Thread iceberg
Hello, I have problem with mapping url to route. For example: I added route like this. Zend_Controller_Router_Route_Static( 'show-me-heaven', array('controller' => 'index', 'action' => 'show') ); And i want to get controller name and action name from path 'show-me-heaven'. Best rega

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
I would keep the image separate from the form unless you have a good reason not to. Then the logic is simple. Display the image if it exists, if not then display the form. Of course you would need an action to delete the image so that the form could be redisplayed. Edward Haber wrote: > > Defin

Re: [fw-general] Trying to start with Zend_Test

2008-10-03 Thread Matthew Weier O'Phinney
-- Mauricio Cuenca <[EMAIL PROTECTED]> wrote (on Friday, 03 October 2008, 03:54 AM -0700): > Hello, I'm trying to do my first UniTests with the help of Zend_Test, but > there are some things that are not so clear to me. > > I'm trying to create a simple test case, all I have is this: > > class My

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-03 Thread Matthew Lurz
Maybe I'm missing something, but unless there's a really good reason to wrap the image element in a form I wouldn't do this because it is not the most simple solution. Anytime complexity is added there should be justification. While this may not seem like a big deal, the sum of all complexity adde

[fw-general] Re: Search Lucene Issue - Undefined Index?

2008-10-03 Thread Matthew Ishii
Nevemind this, I installed the new version and it works fine ... I was confused, But still would like to know what was causing this to happen. On Fri, Oct 3, 2008 at 2:25 AM, Matthew Ishii <[EMAIL PROTECTED]> wrote: > I have been implementing the Search Lucene search class to my website > and I h

[fw-general] Trying to start with Zend_Test

2008-10-03 Thread Mauricio Cuenca
Hello, I'm trying to do my first UniTests with the help of Zend_Test, but there are some things that are not so clear to me. I'm trying to create a simple test case, all I have is this: class MyTest extends Zend_Test_PHPUnit_ControllerTestCase { public $bootstrap = '/path/to/bootstrap.php';

Re: [fw-general] File uploads when using Subforms doesn't seem to work

2008-10-03 Thread Thomas Weidner
Greg, File elements are working in subforms only when you use latest trunk or wait until 1.6.2 is released. This feature has been added about 2 weeks ago. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Greg Jones" <

[fw-general] File uploads when using Subforms doesn't seem to work

2008-10-03 Thread Greg Jones
Hi, I'm trying to get file uploads working, with Zend_Form_Element_File, where the element sits inside a subform. I've put together a small form that exhibits the problem, form-code (http://pastie.org/284170) and when I submit the form, I get the error: Notice: Undefined index: name in

[fw-general] Search Lucene Issue - Undefined Index?

2008-10-03 Thread Matthew Ishii
I have been implementing the Search Lucene search class to my website and I have got to say this is very very cool, easy to use and very effective. However I finish and then test and I get this: Notice: Uninitialized string offset: 163 in /home1/ioforgec/zend/library/Zend/Search/Lucene/Index/Dict