Re: [fw-general] XML generated menu renders incorrect character encoding

2009-06-30 Thread Joakim Gerth
Actually it could be a manifestation of http://framework.zend.com/issues/browse/ZF-6857. I will try out the latest version and take it from there. On Wed, Jul 1, 2009 at 7:34 AM, Joakim Gerth wrote: > I am not sure how to do this. You are not talking about setting up the > encoding inside the xm

Re: [Fwd: Re: [fw-general] Generate menu with variables with Zend Navigation]

2009-06-30 Thread Joakim Gerth
Does anyone know how to do the below? I would like to generate a menu with dynamic parameters such as when visiting page A, link should be /controller/action?id=A, when visiting page B link should be /controller/action?id=B. Is it not possible to do? Any clean or workaround suggestions are welcom

Re: [fw-general] XML generated menu renders incorrect character encoding

2009-06-30 Thread Joakim Gerth
I am not sure how to do this. You are not talking about setting up the encoding inside the xml file and my layout file (which is done). I am using the Eclipse PDT that i suppose should have the same encoding set for all files. Could you give me an example on how to make point 2 below? Regards, Jo

Re: [fw-general] Using validator (greaterThan) to refer to another element in form

2009-06-30 Thread asgeo1
Thanks Mark, Your information was helpful. I now have a working custom validator extending GreaterThan which can validate a date against another form element correctly. Regards, -adam lightflowmark wrote: > > Hi, > > 1) ISO dates can be compared as strings, that's one of the main point of

RE: [fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract

2009-06-30 Thread Terre Porter
Sorry should have posted an update. I had a type-o in the resources.db.adapter line. It was one of those "DOH! head smack" things the next day. Been running the last few weeks on only a few hours sleep a day, its starting to catch up with me. I'm sure tomorrow when I look back on today's code it

Re: [fw-general] Zend_CodeGenerator_Php_Property & Array

2009-06-30 Thread Ralph Schindler
Not sure if you had checked the issue tracker, but this has been implemented :) -ralph CocoRambo wrote: It's done! I create the issue Thanks 2009/6/10 iceangel89 mailto:comet2...@gmail.com>> yay great! Ralph Schindler-2 wrote: > > I should be able to tackle this soon.

Re: [fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract

2009-06-30 Thread Ralph Schindler
Silly question, but do you have the rest of the parameters set? Minimally these two: resources.db.adapter = ? resources.db.params.dbname = ? Also, what version of ZF is this? -ralph Terre Porter wrote: Hey all, I seem to not be able to get the default table adapter to load when accessing my

Re: [fw-general] view/model/controller "code generator" for Zend?

2009-06-30 Thread Ralph Schindler
Have you had a look at Zend_Tool? http://devzone.zend.com/article/3811 http://framework.zend.com/manual/en/zend.tool.framework.html Also check out the basic usage here: http://www.slideshare.net/ralphschindler/zend-framework-18-features-webinar Hope this helps, Ralph jarthel wrote: Hello.

[fw-general] removing surrounding div's on an Zend_Form element

2009-06-30 Thread water
I was wondering if there was a way to remove the surrounding div's on a text box form elment. I have the following code: $decorator=array( 'ViewHelper', 'Errors', array('HtmlTag',), array('Label',), );

[fw-general] Re: Re[fw-general] quest parameters from within view helper

2009-06-30 Thread dmitrybelyakov
admirau wrote: > > I want my view helper to return unique string based on controller and > action. > > Is it possible to get request parameters from within view helper? > In the controller I would write $this->_getParams(); > but I don't know how to obtain the same in my view helper. > > --

RE: [fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread Terre Porter
> I think the problem here is with PHP 5.3.0: Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' . This is not defined in PDO. Ah, I see. I don't have PHP 5.3.0 to test with here. I did found a bug report for this though, http://bugs.php.net/bug.php?id=47224 > Also think utf-8 a

Re: [fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread holografix .
Hi I think the problem here is with PHP 5.3.0: Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' . This is not defined in PDO. Also think utf-8 as charset value is wrong. Issuing SET NAMES utf-8 in mysql command-line raises an error (error 1115). SET NAMES utf8; works fine. Cheers h

RE: [fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread Terre Porter
Not sure if this might help but I just read something about the db charset. this page, http://forums.zend.com/viewtopic.php?f=69 &p=3535 shows the charset value as "utf-8" Terre edit: (resent to list, I hate reply vs reply all) _

Re: [fw-general] How to use a custom Validator with a non-zend/mvc application

2009-06-30 Thread mnaveed
Writing the custom validator is same but how I am going to use it in my page? It shows some zend exception from loader. I think i need to define the path some how? In examples on net i have seen something like $element->pathPrefix..(...) to set the path for custom validator, But here i dont have

[fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread holografix .
Hii. This works fine with PHP 5.2.x but not with PHP 5.3.0. "db" => array( 'adapter' => 'pdo_mysql', "params" => array( "host" => 'localhost', "username" => 'user', "password" => 'xxx', 'dbname' => 'dbtest' 'charset' => 'utf8' ), "isDefa

RE: [fw-general] Coping with Old-style GET vars.

2009-06-30 Thread Matt Pearson
Hi Everyone, Thanks for your help. As it turns out, I was doing more than one thing wrong, but Matthew mentioning getQuery() put me on the right track. The Framework app that I'm working sits inside a non-framework app, therefore much of this is specific to the environment I'm working in. Just i

RE: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Thomas D.
Hi, Carlton Gibson wrote: > > My problem is, that when I call $driverTable->doSth(1278), the row > > in the driver's table will be deleted, but it won't delete any rows > > in cars. > > > > Did I miss something? > > Yes. The cascading write options ONLY work via the Row object. Thank you, too.

[fw-general] How can I show several Zend_Paginator on the same page?

2009-06-30 Thread Simon Gilliot
Hello I want to have several Zend_Paginator (on different listings) on the same page. However, my partial use the 'page' parameter. I need to change this parameter to adapt it for each listings. I don't want to use different partials. My problem is that when I render the Zend_Paginator, I pass it

RE: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Thomas D.
Hi, Ben Scholzen 'DASPRiD' wrote: > You should probably take a look at Foreign Keys and Cascading in your > database's manual. As I have written in a reply for Andrew, the database I am working with uses the MyISAM engine, which don't support foreign keys. Converting the engine to InnoDB is curr

Re: [fw-general] Setup the Module Autoloader

2009-06-30 Thread Matthew Weier O'Phinney
-- Xavier Vidal Piera wrote (on Tuesday, 30 June 2009, 03:51 PM +0200): > Ok, but, do we need to assign a different namespace for each module? Yes -- modules are *supposed* to be namespaced (look at the docs for controllers as an example). > I've found using different namespaces was the only way

RE: [fw-general] ZF 1.8 Webinar

2009-06-30 Thread Terre Porter
Personally, I'd prefer it being announced in the mailing list over twitter. _ From: mbneto [mailto:mbn...@gmail.com] Sent: Tuesday, June 30, 2009 10:39 AM To: fw-general@lists.zend.com Subject: Re: [fw-general] ZF 1.8 Webinar I am not sure if I am not following the right person but ho

Re: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You should probably take a look at Foreign Keys and Cascading in your database's manual. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_|

Re: [fw-general] ZF 1.8 Webinar

2009-06-30 Thread mbneto
I am not sure if I am not following the right person but how about announcing the availability of the recorded sessions with twitter? - Regards. On Tue, Jun 30, 2009 at 9:42 AM, Matthew Weier O'Phinney wrote: > -- Tobias Gies wrote > (on Tuesday, 30 June 2009, 03:15 PM +0200): > > is there any

RE: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Thomas D.
Hi, Andrew Ballard wrote: > You are changing the syntax between the two examples. In the first, > you are calling finding a specific row and > Zend_Db_Table_Row_Abstract::delete() on that row, which is what is > shown in the documentation. This function scans the dependent tables > and deletes all

Re: [fw-general] Setup the Module Autoloader

2009-06-30 Thread Xavier Vidal Piera
Ok, but, do we need to assign a different namespace for each module? I've found using different namespaces was the only way to make it working, as the autoloaders tries to include the classes on different places. Thanks. 2009/6/30 Matthew Weier O'Phinney > -- Xavier Vidal Piera wrote > (on

Re: [fw-general] How to use a custom Validator with a non-zend/mvc application

2009-06-30 Thread David Mintz
On Tue, Jun 30, 2009 at 7:36 AM, mnaveed wrote: > > Can anyone please guide me how to use a custom validator with an exisiting > application. Please note that the application is not using Zend MVC modal > and zend forms. > I am able to use the builtin validations/filters to validate my data but >

Re: [fw-general] ZF 1.8 Webinar

2009-06-30 Thread Matthew Weier O'Phinney
-- Tobias Gies wrote (on Tuesday, 30 June 2009, 03:15 PM +0200): > is there any news regarding the recorded version of this webinar? Yes -- there were some technical issues with the recording. We re-recorded it last week, and hopefully it will be up on the site soon. > 2009/6/2 Matthew Weier O'P

Re: [fw-general] ZF 1.8 Webinar

2009-06-30 Thread Tobias Gies
Hey there, is there any news regarding the recorded version of this webinar? Best regards, Tobias 2009/6/2 Matthew Weier O'Phinney : > Hey, all -- > > In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler > and I will be doing a webinar tomorrow: > >    http://short.ie/zf18webi

Re: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Andrew Ballard
On Tue, Jun 30, 2009 at 12:18 AM, Thomas D. wrote: > Hi, > > I have two tables, drivers and cars. > Each driver in drivers has his cars in cars. > > When I delete a driver, his cars should also be deleted in cars. > > I defined two classes: > > class Drivers extends Zend_Db_Table_Abstract > { >    

Re: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Carlton Gibson
On Tue, Jun 30, 2009 at 12:18 AM, Thomas D. wrote: Hi, I have two tables, drivers and cars. Each driver in drivers has his cars in cars. When I delete a driver, his cars should also be deleted in cars. I defined two classes: class Drivers extends Zend_Db_Table_Abstract { [...] protecte

RE: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Thomas D.
Hi, thank you for your reply. Andrew Ballard wrote: > Is referential integrity not an option? No, the tables I am working with are part of a MyISAM database of an existing, not fully Zend_Framework based application (I am working on the first Zend_Framework based module). Converting the whole

Re: [fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-30 Thread Andrew Ballard
On Tue, Jun 30, 2009 at 12:18 AM, Thomas D. wrote: > Hi, > > I have two tables, drivers and cars. > Each driver in drivers has his cars in cars. > > When I delete a driver, his cars should also be deleted in cars. > > I defined two classes: > > class Drivers extends Zend_Db_Table_Abstract > { >    

Re: [fw-general] Setup the Module Autoloader

2009-06-30 Thread Matthew Weier O'Phinney
-- Xavier Vidal Piera wrote (on Tuesday, 30 June 2009, 10:20 AM +0200): > I'm searching through the docs looking forward the way to autoload more than > one module with Zend_Application_Module_Autoloader. > > In my bootstrap i have these lines: > > $autoloader = new Zend_Application_Modu

[fw-general] Setup the Module Autoloader

2009-06-30 Thread Xavier Vidal Piera
Hi I'm searching through the docs looking forward the way to autoload more than one module with Zend_Application_Module_Autoloader. In my bootstrap i have these lines: $autoloader = new Zend_Application_Module_Autoloader( array( 'namespace'=> 'Citiers',

Re: [fw-general] Re[fw-general] moving Require_once

2009-06-30 Thread Matthew Weier O'Phinney
-- aSecondWill wrote (on Monday, 29 June 2009, 06:09 PM -0700): > The instructions given here: > > http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires.sed > > Don't work in terminal on OSX. Does anyone have an alternative ? > > Is it possib

Re: [fw-general] Strange Bootstrapping Error

2009-06-30 Thread Lucas van Dijk
That could indeed be the problem, will check tonight. Thanks :) -- Lucas On Tue, Jun 30, 2009 at 1:21 PM, Mon Zafra wrote: > My guess: > http://code.google.com/p/wmc3/source/browse/application/Bootstrap.php line > 74. The user_style field is null in the user row you're testing. >-- Mon > >

[fw-general] How to use a custom Validator with a non-zend/mvc application

2009-06-30 Thread mnaveed
Can anyone please guide me how to use a custom validator with an exisiting application. Please note that the application is not using Zend MVC modal and zend forms. I am able to use the builtin validations/filters to validate my data but not been able to use a custom validator. Thanks. -- View t

Re: [fw-general] Strange Bootstrapping Error

2009-06-30 Thread Mon Zafra
My guess: http://code.google.com/p/wmc3/source/browse/application/Bootstrap.php line 74. The user_style field is null in the user row you're testing. -- Mon On Tue, Jun 30, 2009 at 3:33 PM, Lucas van Dijk wrote: > Hi, > > I'm using Doctrine as ORM, so I partially wrote a Doctrine bootstrap >

[fw-general] Warning using module autoloaders

2009-06-30 Thread Xavier Vidal Piera
Hi I have two modules, the default one and another one called "blog". In the bootstrap, i've setup both Zend_Application_Module_Autoloader and dumping his contents seems everything loaded ok. But, in Blog_IndexController, if i try to load a Form located in /modules/blog/forms, the object gets loa

Re: [fw-general] Using validator (greaterThan) to refer to another element in form

2009-06-30 Thread lightflowmark
Hi, 1) ISO dates can be compared as strings, that's one of the main point of the formats - 2009-06-30 > 2009-05-01. You should use a filter to convert your dates to this format anyway 2) You need to write a custom validator to compare 2 fields in a form; it's very easy, see the example on http

[fw-general] Strange Bootstrapping Error

2009-06-30 Thread Lucas van Dijk
Hi, I'm using Doctrine as ORM, so I partially wrote a Doctrine bootstrap resource (I also received a part from someone else). This resources adds the Doctrine autoloader, makes a connection etc. It actually works pretty good. In my application I have a login system, and in my bootstrap I want to