Re: [fw-general] Zend_Payment proposal ready for review

2010-09-14 Thread Cameron
How long until it's ready to roll? I'm looking at implementing ANZ eGate in the next few weeks, sounds like I'm going to have to do a hack job for now and roll on the proper code base once it's done. On Tue, Sep 14, 2010 at 9:58 AM, Dmitriy Soroka dmitriy.sor...@magento.comwrote: Hi everyone

[fw-general] Payment Gateway solutions

2010-08-26 Thread Cameron
-in components that did a fairly good job, and could be extended to support whatever gateway we need. I looked at ezcomponents, nothing there either... Regards, Cameron

Re: [fw-general] Re: Zend_Rest_Route doesn't work when not in the web root.

2010-05-11 Thread Cameron
that actually ended up coming back to the right controller in some situations but failing in others. Sorry to have bothered the list over my own bugs! On Mon, May 10, 2010 at 5:57 PM, Cameron themsel...@gmail.com wrote: A bit of further examination on this one hasn't gotten me too much further, except

[fw-general] Re: Zend_Rest_Route doesn't work when not in the web root.

2010-05-10 Thread Cameron
A bit of further examination on this one hasn't gotten me too much further, except that: Zend_Rest_Route is definitely catching the URL correctly, it's just for some reason it is stripping off the format=json before passing it on to the Index controller action. Can't seem to work out why, I don't

[fw-general] Zend_Rest_Route doesn't work when not in the web root.

2010-05-07 Thread Cameron
Hi guys, not really sure whether this is an issue with REST as a protocol definition or it's a Zend thing... In my bootstrap I have support for both regular routes and RESTful routes. It is achieved like this: protected function _initRestRoute() { $this-bootstrap('Request');

Re: [fw-general] model attached to a view helper

2010-03-30 Thread Cameron
I frequently pass full model instances through to my views and retrieve information from them, but I don't write code in the models that is specifically used for display purposes - as an example, if there's a method calculateOutstandingBalance(), it's just going to return a float, it's the exact

[fw-general] Tying Dojo and Zend form validation together - I'm dreaming, right?

2010-03-22 Thread Cameron
Hi guys, I've got a pie in the sky idea, and I'm just wondering if it's even remotely possible, or if I should give up and try something else. I've got a bunch of Zend_Dojo_Form forms with a bunch of custom validators on the Zend side - they work fine, the form errors out when values are

Re: [fw-general] Zend_Auth::getInstance()-clearIdentity() doesn't seem to log me out?

2010-03-08 Thread Cameron
On Tue, Mar 9, 2010 at 10:49 AM, Jake McGraw jmcgr...@gmail.com wrote: On Mon, Mar 8, 2010 at 8:51 PM, Cameron themsel...@gmail.com wrote: Ok, I just tried removing everything except for $data = $authAdapter-getResultRowObject(null, 'password'); $auth-getStorage()-write($data); all

Re: [fw-general] Zend_Auth::getInstance()-clearIdentity() doesn't seem to log me out?

2010-03-08 Thread Cameron
On Tue, Mar 9, 2010 at 1:28 PM, Jake McGraw jmcgr...@gmail.com wrote: On Tue, Mar 9, 2010 at 12:05 AM, Cameron themsel...@gmail.com wrote: On Tue, Mar 9, 2010 at 10:49 AM, Jake McGraw jmcgr...@gmail.com wrote: On Mon, Mar 8, 2010 at 8:51 PM, Cameron themsel...@gmail.com wrote: Ok

Re: [fw-general] Zend_Auth::getInstance()-clearIdentity() doesn't seem to log me out?

2010-03-07 Thread Cameron
logout action: Zend_Session::destroy(true); after I clear my identity. Will that help? *From:* Bart McLeod [mailto:mcl...@spaceweb.nl mcl...@spaceweb.nl] *Sent:* Friday, March 05, 2010 4:06 AM *To:* Cameron *Cc:* Jake McGraw; Hector Virgen; Zend Framework - General *Subject:* Re: [fw

[fw-general] Zend_Auth::getInstance()-clearIdentity() doesn't seem to log me out?

2010-03-04 Thread Cameron
Hi guys, I'm really not sure where I'm going with this one, it seems like I must be doing something completely wrong, but I'm not really sure where to even start looking. Here's my logout action: public function logoutAction() { Zend_Auth::getInstance()-clearIdentity();

Re: [fw-general] Zend_Auth::getInstance()-clearIdentity() doesn't seem to log me out?

2010-03-04 Thread Cameron
:54 PM, Jake McGraw jmcgr...@gmail.com wrote: On Thu, Mar 4, 2010 at 11:39 PM, Hector Virgen djvir...@gmail.com wrote: Anything in your cookies causing you to stay logged in? -- Hector On Thu, Mar 4, 2010 at 7:30 PM, Cameron themsel...@gmail.com wrote: Hi guys, I'm really

[fw-general] Zend_Rest_Route in a sub directory doesn't work?

2010-03-02 Thread Cameron
to support baseUrls? Regards, Cameron

[fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
Hi everyone, I've got an unusual issue with Zend_Navigation that seems like it should work correctly, but isn't. Here's a basic example of the config... nav home labelHome/label controllerindex/controller actionindex/action /home

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
instead of the default route. So your navigation should look more like this: home labelHome/label controllerindex/controller actionindex/action *routedefault/route* /home -- Hector On Sun, Feb 21, 2010 at 10:14 PM, Cameron

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
like like this: /:controller It seems like that's the case because normally with only the default built-in route your navigation should have worked since all of your pages would have used the default route when requested. -- Hector On Sun, Feb 21, 2010 at 10:31 PM, Cameron themsel

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
be disabled for security reasons. And getValue() returns null when there is any error at validation or filtering on that file element. Therefor use always isValid(). Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Cameron

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
to receive the file once again? A received file can not be received once again (not with 1.9.5). Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Cameron themsel...@gmail.com To: Zend Framework - General fw-general

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
oops - to clarify, if you var_dump on $values, $values['image'] is null, the rest of the array is fine, and what you would expect. On Thu, Feb 11, 2010 at 5:19 PM, Cameron themsel...@gmail.com wrote: I'm trying to get the filename. If you var_dump on $values below, it is null. I'm only using

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
is returned. When you say that isValid() returns not false, then the question is why receive() returns false. Look at it's error message to see details. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Cameron themsel

[fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-10 Thread Cameron
The subject says it all - I'm not really sure what I'm doing wrong, but this is really odd. This is on ZF 1.9.5 on the Beta Zend Server 5.0.3 btw... I have a basic file field in my form, and it all works perfectly well - calling getValues() on the form moves the file in to the correct location,

Re: [fw-general] Zend_Dojo_Form_Element_Editor returning Array using some browsers

2010-01-04 Thread Cameron
I had the same problem with Chrome... ended up just replacing it with ckeditor. On Tue, Jan 5, 2010 at 12:31 AM, Guillaume ORIOL gor...@technema.fr wrote: Hi, When I use a Zend_Dojo_Form_Element_Editor in a form, the returned value is an array with some browsers. For instance,

[fw-general] Zend_Navigation rendering incorrect paths at the root level

2010-01-03 Thread Cameron
Hi guys, not sure if I'm doing something really stupid here, but I can't seem to work this out - essentially what is happening is that if I am at the root of my application then the action part of the config doesn't get added to the URL, but if I work my way down in to any of the controllers, then

Re: [fw-general] Re: Base Controller Classes

2009-12-22 Thread Cameron
What's the deal with haters hatin' on our old friend the base class? Maybe you can implement base class functions like getAction using a dispatch level plugin, but how is that better than a simple abstract class to base your controllers around? My actual controllers are 80% method free, it's all

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Cameron
isn't the use of named anchors deprecated? On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter dan.lat...@gmail.com wrote: +1 On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote: Jason Austin wrote: Hope this helps. I smell a feature request for adding hashes to routes url

Re: [fw-general] observe controller action

2009-12-02 Thread Cameron
I've done a similar thing by using an Events and Subscribe system, my controller abstract has a number of event broadcasts throughout, and it's very simple to build a subscriber that latches on to whatever it needs to in order to satisfy the business rules. I based mine upon some code I found

Re: [fw-general] module repository poll

2009-11-30 Thread Cameron
This sort of thing would be tremendously useful. I'd absolutely love to see a drop in component for handling, say, User authentication - handling signups, forgot your password functionality, the whole check your email and verify your account stuff, a very basic admin page, all done in the right

[fw-general] Applying Zend_Acl to Zend_Form_Element

2009-11-29 Thread Cameron
Hi guys, this is pretty pie in the sky, but I was wondering if anyone had seen it done / had a good trick for it. What I'd like to do is come up with a really clean way of controlling which users can see which form fields. Example being a role field in the user form - admins can set the user's

Re: [fw-general] Zend_Db_Profiler should be working but isn't...

2009-10-06 Thread Cameron
Christoph Eugene Morgan wrote: I've had the same problem since ZF 1.8 -- has anyone else gotten it to work? On Tue, Sep 22, 2009 at 10:46 PM, Cameron themsel...@gmail.com wrote: How can I test this one further? It *used* to work just fine, but since I reworked

Re: [fw-general] DataGrid

2009-09-25 Thread Cameron
On Fri, Sep 25, 2009 at 2:28 AM, Kyle Spraggs the...@spiffyjr.me wrote: Matthew Weier O'Phinney-3 wrote: -- Cameron themsel...@gmail.com wrote (on Wednesday, 23 September 2009, 09:42 AM +0800): Dojo grids. I've actually just moved a lot of my functionality over to Dojo JsonRestStore

Re: [fw-general] DataGrid

2009-09-24 Thread Cameron
On Thu, Sep 24, 2009 at 8:38 AM, Cameron themsel...@gmail.com wrote: On Wed, Sep 23, 2009 at 6:49 PM, Matthew Weier O'Phinney matt...@zend.com wrote: -- Cameron themsel...@gmail.com wrote (on Wednesday, 23 September 2009, 09:42 AM +0800): Dojo grids. I've actually just moved a lot of my

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread Cameron
On Wed, Sep 23, 2009 at 5:03 PM, Alan Wagstaff awagst...@gmail.com wrote: Hi, 2009/9/23 aoohralex aoohra...@gmail.com My critical subject about Zend Framework was deleted. Somebody from Zend deleted my post. My criticism PHP authors and Zend Framework in compare to other frameworks wasn't

Re: [fw-general] DataGrid

2009-09-23 Thread Cameron
On Wed, Sep 23, 2009 at 6:49 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Cameron themsel...@gmail.com wrote (on Wednesday, 23 September 2009, 09:42 AM +0800): Dojo grids. I've actually just moved a lot of my functionality over to Dojo JsonRestStore so I can do in-grid editing

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Cameron
You seem to be overlooking the entire concept behind Zend. Many frameworks are designed for people who want their hands held through the application building process, Zend is designed for professional developers who know what they are doing and all they want are a few reliable and standardized

Re: [fw-general] DataGrid

2009-09-22 Thread Cameron
Dojo grids. I've actually just moved a lot of my functionality over to Dojo JsonRestStore so I can do in-grid editing, it's not completed yet, but so far it is coming together really smoothly. On Tue, Sep 22, 2009 at 9:10 PM, Kyle Spraggs the...@spiffyjr.me wrote: I was curious what everyone is

[fw-general] Zend_Db_Profiler should be working but isn't...

2009-09-22 Thread Cameron
How can I test this one further? It *used* to work just fine, but since I reworked to Zend_Application formats, it seems to have stopped, and the regular methods of turning it on don't seem to result in any output. I've tried turning it on both in application.ini and in the Bootstrap. In

[fw-general] Stylistic question - controller actions vs. context switches?

2009-09-21 Thread Cameron
Hi everyone, I just wanted to see if anyone else had had a good long think about this sort of thing before I decided one way or the other. Basically I have been playing with the context switch action helper, and it has opened a whole new world of possibilities in terms of application structure,

Re: [fw-general] Controllers that respond to both normal requests and RESTful requests

2009-09-20 Thread Cameron
On Wed, Sep 9, 2009 at 11:36 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Cameron themsel...@gmail.com wrote (on Wednesday, 09 September 2009, 05:35 PM +0800): Hi, this is very likely to be a dumb question, but I'd really like to have my controllers respond to normal requests

[fw-general] Controllers that respond to both normal requests and RESTful requests

2009-09-09 Thread Cameron
Hi, this is very likely to be a dumb question, but I'd really like to have my controllers respond to normal requests (as in http://domain.com/product/display/id/1) and also the full range of RESTful requests (GET http://domain.com/product/1 and so on). Turning on Zend_Rest_Route across all my

[fw-general] Including regular Zend Form elements with a Zend Dojo form.

2009-08-31 Thread Cameron
Hi guys, just a quick one. I want to be able to add a regular textarea to a Zend_Dojo form - the Dojo editor is a tiny bit crappy, and i'd really rather use something else. The problem is that the text area that Zend_Dojo outputs isn't an actual textarea, and thus 3rd party editors tend to have

Re: [fw-general] Best practices, environment setup

2009-08-30 Thread Cameron
I've been looking for something like this too. It's all well and fine to install all the Zend products with the intention of integrating them in to a homogenous whole, but the reality is that there's very little in the way of documentation looking at the problem from a broader development

Re: [fw-general] Handling MySQL replication with Zend_Db_Adapter and Zend_Db_Table

2009-08-13 Thread Cameron
Also, this sounds like a great idea for ZF 2.0, people are lining up a huge list of sweeping, BC-breaking changes for the 2.0 release, why not add this to the pile? On Fri, Aug 14, 2009 at 9:48 AM, johncongdon j...@johncongdon.com wrote: Are you able to make your solution public? I am looking

Re: [fw-general] Zend Studio 7.0 Zend Framework webinar tomorrow!

2009-08-12 Thread Cameron
On Tue, Jul 28, 2009 at 7:35 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Joseph Crawford i...@josephcrawford.com wrote (on Tuesday, 28 July 2009, 07:25 AM -0400): I agree I would also love to be able to download these Webinars and go through them on my own time.. Anyone know

Re: [fw-general] Zend Studio 7.0 Zend Framework webinar tomorrow!

2009-07-27 Thread Cameron
Yeah this is what I wanted to say, an actual webinar is pretty much useless to those of us with jobs and lives and (especially) don't live in a timezone amenable to spending 1 1/2 hours watching a video on programming stuff at 3am. When will these webinars be available for download? On Tue, Jul

Re: [fw-general] Of 3 methods to centralize code used in all/many controllers which do you use when?

2009-06-16 Thread Cameron
why can't it be all three? seriously though, i'm doing mostly 1, then 3 and 2. On Tue, Jun 16, 2009 at 1:35 PM, joedevon joede...@gmail.com wrote: The following question on Stack Overflow prompted this post:

[fw-general] reusing view scripts across controllers.

2009-06-10 Thread Cameron
Hi guys, I have a number of view scripts that are cut and paste across almost all of my view directories, basically templates that hold code to load a structural html / tabs / etc. These files are almost all identical, so there is a very obvious case for removing these duplications, along with

Re: [fw-general] Re: re[fw-general] using view scripts across controllers.

2009-06-10 Thread Cameron
On Wed, Jun 10, 2009 at 3:23 PM, staar2 est.ri...@gmail.com wrote: Themselves wrote: Hi guys, I have a number of view scripts that are cut and paste across almost all of my view directories, basically templates that hold code to load a structural html / tabs / etc. These files

Re: [fw-general] New to zend world, need some guidance..

2009-05-08 Thread Cameron
1. Is this a question? 2. Zend is a loosely coupled framework, meaning most of the components can be used independently of each other with very few dependencies. You don't have to use the MVC components if you don't want to. Personally I really like this approach, I can just pick and choose the

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread Cameron
This is caused by Javascript trying to manipulate the page content before the page has completely loaded, other browsers handle it fine, IE doesn't. It's a well known problem. If you google the error message you'll find heaps of info, but the basic gist of it is that you need to delay the

Re: [fw-general] Zend_Forms with Zend_Db_Tables

2009-04-29 Thread Cameron
The $form-populate() method accepts an array of key-value pairs that it will populate the form with before passing on to your view. On Wed, Apr 29, 2009 at 4:05 PM, iceangel89 comet2...@gmail.com wrote: i think this is common. i want to create a form that optionally maps to a table row. eg. i

[fw-general] Serializing select objects supposed to be working but isn't.

2009-04-24 Thread Cameron
Hi guys, I've come up with a situation in my application where serializing a select object to store it in a session variable would be remarkably useful, but it isn't working. It's just throwing the usual can't serialize a PDO object error. This was apparently fixed in

[fw-general] passing multiple fetchProperties through to FilteringSelect

2009-04-19 Thread Cameron
Hi guys, I'm just having trouble working out the syntax on this one, was wondering if anyone could give me a quick hand - or even show me a better way of doing it :P What I'm trying to do is get a spinner to pop up when a FilteringSelect is retrieving its JSON from the server. As best as I can

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Cameron
You should be populating the values of the form in your model before passing it as a completed whole through to the view, then if you have to do any autocomplete stuff, do it in javascript. On Mon, Apr 6, 2009 at 4:43 PM, Marko Korhonen marko.korho...@datafisher.com wrote: Hi, I have made

[fw-general] Reporting in Zend Framework MVC applications

2009-03-25 Thread Cameron
Hi guys, this is probably more of a general OO question than specific to ZF, but I thought I'd throw it out there to see if there's some really good solutions out there. I've written a pretty extensive application in ZF, it's all MVC driven, uses Dojo and AJAX, it's pretty cool, and generic and

Re: [fw-general] Models and input validation best practices

2009-03-25 Thread Cameron
On Wed, Mar 25, 2009 at 5:06 PM, Simon Corless si...@sico.co.uk wrote: fab2008 wrote: Hi all, I want to ask a simple question about validating user input especially the input from the url taken with $this-_getParam(). An example: Currently I write my models assuming that the

Re: [fw-general] Reporting in Zend Framework MVC applications

2009-03-25 Thread Cameron
ReportMetricTwo(new Report())); $report could then be processed by a generic reporting class/model: $reportModel-generate($report); downside = complexity, decorators can be confusing to people ala Zend_Form :) Though once you get them they are easy 2009/3/25 Cameron themsel...@gmail.com: Hi guys

Re: [fw-general] Tabbed Dojo Interface

2009-02-05 Thread Cameron
On Wed, Feb 4, 2009 at 11:54 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- HenryG henry.god...@tanist.co.uk wrote (on Wednesday, 04 February 2009, 04:05 AM -0800): I'm just starting out with Zend and Dojo and I have a quick question which I hope you can answer. I have built a

Re: [fw-general] Question about underscores in controller and action names

2009-02-02 Thread Cameron
yeah i've been wondering about this one too, given the standard thing to do with table names is to put underscores in them, and controller names don't seem to work with them, and controllers often map well to database tables... On Tue, Feb 3, 2009 at 7:45 AM, Terre Porter

[fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
Hi guys, I have an application that is growing piece by piece, table by table, and as it grows, as do the number of view scripts the application needs. In order to ease maintenance on these, I've managed to make the vast majority of the views indentical across controllers, by just passing the

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
dependent upon what you are trying to do. Something that's static I would render out using partials. However, if you're doing a bit of output processing (nothing static), I would recommend using an Action Helper. :-) -- Chris Weldon On Sun, Jan 18, 2009 at 11:17 PM, Cameron themsel

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
. BTW, is what you're doing not suitable for Zend_Layout ? -- Chris Weldon On Mon, Jan 19, 2009 at 12:36 AM, Cameron themsel...@gmail.com wrote: wouldn't view partials still require the view script to exist? I was trying to avoid having the actual files there too. Infact, the perfect solution

Re: [fw-general] What do you use to manage your ZF projects?

2008-12-21 Thread Cameron
I'm using Project Locker - http://www.projectlocker.com - it's a hosted SVN + Trac system, supports unlimited projects, works really well, it's not terribly pretty, but it's basically everything you need all in one package. Now if only they could integrate some sort of billing system so I can have

Re: [fw-general] Default value of a Zend_Dojo_Form_Element_DateTextBox in a Zend_Form

2008-12-21 Thread Cameron
in. Thanks again for the help. On Dec 14, 2008, at 9:01 PM, Cameron wrote: You need to pass the element an ISO date. Try something like this: $date = new Zend_Date(); $date-set($row['date'], Zend_Date::ISO_8601); $retarr['auction_date'] = $date-getIso(); Interestingly enough, the Time

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-17 Thread Cameron
are trying to do with this check, but whatever it is, it's not working on my server :) On Wed, Dec 17, 2008 at 4:53 PM, Thomas Weidner thomas.weid...@gmx.atwrote: Cameron, to go further with debugging you can see that your exception is called in the file Abstract on line 948. Now simply output

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Cameron
reverted to 1.7.0, still works fine. On Tue, Dec 16, 2008 at 5:31 PM, Thomas Weidner thomas.weid...@gmx.atwrote: Hy Cameron, Why should the first catch, catch anything when there is a failure ? According to manual, receive() returns a false on failure, not an exception. Also you are calling

Re: [fw-general] How to set name= on form

2008-12-16 Thread Cameron
$form-addAttribs(array('name' = 'formname')); ? On Wed, Dec 17, 2008 at 9:24 AM, maxarbos maxar...@yahoo.com wrote: Have you gotten any answers on this? I am having the same issue and cannot get the name attribute to be set. I am using 1.5 of the framework. notmessenger wrote: I know

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Cameron
here's the full $e. http://pastebin.com/m5d442e15 the line in my code, line 83, that is definitely where it is calling $adapter-getFileName(). On Tue, Dec 16, 2008 at 7:01 PM, Thomas Weidner thomas.weid...@gmx.atwrote: Cameron, when you have unexpected exceptions somewhere in your code it's

[fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-15 Thread Cameron
if ($form-isValid($formData)) { //the form is valid, finish moving the file about $adapter = new Zend_File_Transfer_Adapter_Http(); if ($adapter-isValid() === false) { print_r($adapter-getMessages());

Re: [fw-general] How to set up dependant dropdowns in form

2008-12-14 Thread Cameron
try calling it statically, Zend_Json::encode($data); On Sun, Dec 14, 2008 at 11:39 PM, Ace Paul sa...@acewebdesign.com.auwrote: thanks for your help on this. I'm trying to get this going, but not having any luck at all, especially seeing as I haven't used json with zend yet. I'm getting

Re: [fw-general] Default value of a Zend_Dojo_Form_Element_DateTextBox in a Zend_Form

2008-12-14 Thread Cameron
You need to pass the element an ISO date. Try something like this: $date = new Zend_Date(); $date-set($row['date'], Zend_Date::ISO_8601); $retarr['auction_date'] = $date-getIso(); Interestingly enough, the Time picker accepts the full ISO date too, if you're using them. Unfortunately you need

[fw-general] Zend_Date and Timezones - how do I turn them off?

2008-12-14 Thread Cameron
Hi guys, I'm just doing a bit of work with the Dojo date and time pickers, and it's all going wonderfully, and I decided to use the Zend_Date::ISO_8601 method for formatting the output from MySQL, which works perfectly well, all except for the fact it's appending a timezone, which then goes and

Re: [fw-general] Dynamically create dojo form elements

2008-12-12 Thread Cameron
Dynamically adding form elements is painful, because of form validation issues. What I usually do is add all the possible form elements to the form up front, and then use JS / Controller logic to dictate what elements I should or shouldn't display. I guess you could store the form object in

Re: [fw-general] How to set up dependant dropdowns in form

2008-12-08 Thread Cameron
I have spent WAY too much time getting this exact scenario working using Zend Dojo forms and an MVC environment, and I plan on building an extensive article explaining it all soon, but for now, here's the really quick and dirty version. I haven't gotten my version perfect yet, I'm still not happy

Re: [fw-general] [Dumb Question] How do I use the URL view helper in my controllers?

2008-12-02 Thread Cameron
PROTECTED] wrote: I would have a look inside the view url helper and maybe create an action helper that does the same? 2008/12/2 Cameron [EMAIL PROTECTED]: Hi guys, The subject line sums it all up. I do some URL generation in the controller / model (form submission URLs and so

Re: [fw-general] Question on organising controllers

2008-12-01 Thread Cameron
I'm pretty terrible at the whole MVC thing but I've done ok with a separate controller for each table (except for obvious exclusions like intersection tables or tiny tables for normalization purposes), and then extra controllers for stuff in your app, like users, and action helpers / bootstrap

[fw-general] [Dumb Question] How do I use the URL view helper in my controllers?

2008-12-01 Thread Cameron
Hi guys, The subject line sums it all up. I do some URL generation in the controller / model (form submission URLs and so on), and I'd love to be able to use the same url View Helper that has proven so wonderful in my Views. What's the trick? I'm sure it's something simple that I'm not smart

Re: [fw-general] ZF 1.7 - Zend Dojo SubmitButton Bug?

2008-11-25 Thread Cameron
it's a known bug, try this: http://www.framework.zend.com/issues/browse/ZF-4977;jsessionid=C628D5128C025969ADFBC9D052740C19?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel On Tue, Nov 25, 2008 at 10:14 PM, drj201 [EMAIL PROTECTED] wrote: Hi all, I have created a form class that

Re: [fw-general] New To PHP Zend

2008-11-24 Thread Cameron
I would also recommend a basic guide to OO programming, as much of Zend takes advantage of PHP5's OO features, and unless you spend the time to formally learn OO it can be somewhat confusing. There are a number of fantastic tutorials out there on the Googles, but I personally read the first 2

Re: [fw-general] fetching arrays from js in php/zf for checkboxes

2008-11-20 Thread Cameron
At the risk of replying to your email with a one word answer, what you need is JSON. On Fri, Nov 21, 2008 at 6:37 AM, cali_dotocm [EMAIL PROTECTED] wrote: hi, i'm trying to figure out how to pass arrays back and forth from php to javascript and back in the zend framework. i need to do this

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread Cameron
that's what JSON is for. It's a serialized javascript array, so you simply serialize the array in javascript, pass it through to your PHP app, and there are JSON tools in PHP to instantly decode / encode the arrays. http://www.php.net/json for more info! On Fri, Nov 21, 2008 at 5:16 AM,

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread Cameron
: ::: Cameron schrieb: that's what JSON is for. It's a serialized javascript array, so you simply serialize the array in javascript, pass it through to your PHP app, and there are JSON tools in PHP to instantly decode / encode the arrays. http://www.php.net/json for more info! On Fri

Re: [fw-general] $form-populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn

2008-11-13 Thread Cameron
, 2008 at 7:30 PM, Matthew Weier O'Phinney [EMAIL PROTECTED]wrote: -- Cameron [EMAIL PROTECTED] wrote (on Wednesday, 12 November 2008, 06:51 PM +0900): So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did

Re: [fw-general] $form-populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn

2008-11-12 Thread Cameron
' = $key); } $final = array( 'identifier' = 'key', 'items' = $items, ); return $this-encodeJson($final, $keepLayouts); } } On Tue, Nov 11, 2008 at 5:50 PM, Bart McLeod [EMAIL PROTECTED] wrote: Hi Cameron, I tried to set up a testsite

Re: [fw-general] Trouble with on Change in Zend_Form_Element_Select

2008-11-10 Thread Cameron
McLeod [EMAIL PROTECTED] wrote: Your problem looks interesting, and I would like to help you, but I am not sure if I fully understand what you are trying to achieve. Could you provide a full and exact functional description of what you are trying to accomplish? Bart Cameron schreef: You

Re: [fw-general] Trouble with on Change in Zend_Form_Element_Select

2008-11-09 Thread Cameron
You are going to have to do this with Javascript. I'm trying to build the ultimate example of how you do dependent dropdowns using Zend + Dojo, and I've got it so far to the point where it works when adding a new record, but when you try to edit data, the $form-populate method fails to build a

[fw-general] Zend Form populate method doesn't support FilteringSelect / ComboBoxes using a Dojo datastore.

2008-11-06 Thread Cameron
Hi guys, I've got some form elements built using Dojo data stores, basically like this: $this-addElement('FilteringSelect', 'client_id', array( 'label'= 'Client:', 'store' = 'clientStore', 'autoComplete' = 'false',

Re: [fw-general] Zend_Db_Table_Rowset seek() question

2008-11-06 Thread Cameron
I built something like this as a paginator for when you're on your item view. What I did was build a simple class that implements the SPL Iterator and Countable classes, just like the internal Zend_Paginator, but just uses an array as its internal guts. Then I simply grabbed all the id fields from

Re: [fw-general] JSON format for ComboBox / FilteringSelect

2008-11-04 Thread Cameron
Thanks for that, I've managed to get it working now with the rewritten autoCompleteDojo at http://www.makina-corpus.org/2008/10/26/autocomplete-ajax-search-with-dojo-and-zend-framework/, and I've got dropdown dependencies working with a bit of javascript, but now I have one last little problem!

[fw-general] Item paginators + Dojo Grids

2008-11-03 Thread Cameron
Hi again, I'm trying to put together simple item paginators (ala the http://framework.zend.com/manual/en/zend.paginator.usage.html example), and I'm just wondering what the best practice for something like this is when used with the Dojo grid. The Dojo grid takes care of the search pagination, so

[fw-general] JSON format for ComboBox / FilteringSelect

2008-11-02 Thread Cameron
Hi guys, I'm trying to build some autocomplete dropdowns using Zend + Dojo, but I can't seem to work out how to get the select to submit the id and display the name. As per the documentation, a ComboBox submits the value of the label, so I've tried passing through JSON like this:

Re: [fw-general] Developing for Zend Framework in Zend Studio for Eclipse

2008-11-02 Thread Cameron
This is a very common issue with Eclipse, it dies in the arse with large projects. The building workspace thing has cost me a handful of days in lost productivity. I don't know any solutions, other than try to keep the projects on your local machine (trying to work on a large project via ftp mount

[fw-general] AJAX enabling of Zend + Dojo forms, and populating Select dependencies in an MVC environment, e.g. Country / State selects

2008-10-28 Thread Cameron
Phew. Big title. I'm currently building a large scale application in Zend + Dojo, and with it being so new, I'm assuming I'm one of the first to attempt such undertaking. I have built it using Matthew Weier O'Phinney's Pastebox

Re: [fw-general] ZF and Autoloading

2007-01-09 Thread Cameron Brunner
. Can we please finally come to a conclusion on this subject? Test for yourself or use these as a reference but PLEASE stop this FUD surrounding autoload! Cameron

Re: [fw-general] ZF and Autoloading

2007-01-09 Thread Cameron Brunner
were those that were going to be needed for it to run the script. Cameron On 1/10/07, Richard Thomas [EMAIL PROTECTED] wrote: That doesn't even make common sense, autoload will never be faster then straight require if the exact same number of files are called each time, there is less overhead