[fw-general] Zend/Transport/Sendmail.php not auto-included - Wanted behavior?

2008-11-28 Thread Thomas D.
Hello, I am new to Zend Framework. I tried to send an e-mail using Zend_Mail. I used your example [1], here's my code: setBodyText('This is the text of the mail.'); $mail->setFrom('[EMAIL PROTECTED]', 'Some Sender'); $mail->addTo('[EMAIL PROTECTED]', 'Some Recipient'); $mail->setSubject('TestSub

RE: [fw-general] zend_pdf memory

2009-02-09 Thread Thomas D.
Hi, mbneto wrote: > Are you generating those pdf files in a loop? >  I've managed to reduce the memory footprint of > the application (not zend_pdf itself) by using unset > of the variables that are populated in each iteration. > > ex. > > function generate($params) > { >   $var1 = xxx >   $var2

RE: [fw-general] zend_pdf memory

2009-02-10 Thread Thomas D.
Hello, Jason wrote: > > This will really help you? > > I thought that PHP will unset each local variable, when a function > > end... > > > > If your function is doing a lot of work and you unset variables when > > you > > don't need them anymore - okay, but to unset a variable at the end > > doesn

RE: [fw-general] Zend Server & ZF

2009-02-23 Thread Thomas D.
Hi, Jon wrote: > [...] > I need support for vhosts for development since I > usually have at least 3-4 ZF projects that I'm doing > simultaneously. Is there an easy way to achieve this yet? I also want to know, if there is an easy way and or if you plan to add VHost support. If you actual don't

RE: [fw-general] New proposal for Zend_Filter_StringLength

2009-04-12 Thread Thomas D.
Hello, Thomas Weidner wrote: > there is a new proposal waiting for your comments: > http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_StringLength+ > -+Thomas+Weidner > > It will add the possibility to pad/extend and truncate a string to a > given length by using filters. I'd like to see

RE: [fw-general] New proposal for Zend_Filter_StringLength

2009-04-12 Thread Thomas D.
Hi, I've got a question to UC-06: I would expect, that the minimum length would be 12 and the maximum length 15. But in this use case, the second string has 17 characters. Did I miss something? -- Regards, Thomas

[fw-general] How do I get the value of one element in a validator of another element in the same Zend_Form scope?

2009-06-07 Thread Thomas D.
Hi, I've got a custom Zend_Form with two fields ("id" and "name"), which are Zend_Form_Elements. I need to validate the "name" field. To validate the "name" field, I need the "id" field value. I don't know how I can implement this dependency. I think I need to write an own validator for the "na

[fw-general] Zend_Validate_Db_Abstract ineffecttive and expensive?

2009-06-07 Thread Thomas D.
Hi, I am currently working with "Zend_Validate_Db_NoRecordExists". I noticed, that the queries looks like "SELECT `$table`.*, `$table`.`$field` FROM ..." Isn't the "`$table`.*" very expensive? I also don't understand why you also query a specific column, when you already selected every column..

[fw-general] Zend_Form_Element doesn't honor most Zend_Validate* options

2009-06-09 Thread Thomas D.
Hi, I noticed, that Zend_Form_Element does only set up a basic validator and ignores other properties. In detail: I am working with Zend_Form and doing the same like described in documentation example 23.12 [1]. I set up a translator in the init() method of "My_Form", which will translate the "Z

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

2009-06-29 Thread Thomas D.
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 { [...] protected $_dependentTables = array( 'Cars' ); }

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 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] 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] 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.

RE: [fw-general] Why does Db_RecordExists validator need to select all fields from the table?

2009-07-20 Thread Thomas D.
Hi Andrew, you wrote: > I only granted access to that one column to the web user account, but > that appears to be insufficient since the query generated by the > validator by way of Zend_Table attempts to select all columns: > > SELECT TOP 1 "InviteeCredentials".*, "InviteeCredentials"."LoginID"

RE: [fw-general] Why does Db_RecordExists validator need to select all fields from the table?

2009-07-20 Thread Thomas D.
Hi, Andrew wrote: > So 1.8.4 should resolve this? Yes, it's in the current version. > On a tangential note, this is a common issue I seem to have with ZF > database handling. There is a lot I like about the framework, but it > does not seem to lend itself to a design paradigm that uses stored >

[fw-general] Dead link in ZF wiki in Suversion Standards

2009-07-29 Thread Thomas D.
Hi, in http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards there is a link to http://sandbox.zend.com/download/ which seems to be down (in the "Anonymous Checkout" paragraph). -- Regards, Thomas

[fw-general] Zend_Date::now() and fluent interface

2009-12-21 Thread Thomas D.
Hi, is is correct, that "Zend_Date::now($locales)->set('00:00:00', Zend_Date::TIMES)" will return a string instead of an Zend_Date object? -- Regards, Thomas

RE: [fw-general] Managing production and development environments

2009-12-28 Thread Thomas D.
Hi Tridem wrote: > I'm looking for a good way to arrange my production and development > environments. > Currently I have a module for each purpose. > > /modules/default (production) > /modules/dev (development) > > Both paths are bootstrapped bepending on the setEnv set in 2 different > hosts:

RE: [fw-general] LIKE query in Zend_Db_Table_Select

2010-01-26 Thread Thomas D.
Hi, Renan de Lima wrote: > no, it doesnt :-) > > try this: > $table = new TableClass(); > $select = $table->select()->where('name LIKE ?', '%' . $keyword . '%'); > $rowset = $table->fetchAll($select); Don't forget to escape $keyword! -- Regards Thomas

RE: [fw-general] Files which are outside the public folder

2010-01-30 Thread Thomas D.
Hi, also have a look at Zend Download Server. It's designed for such a purpose. Regards, Thomas

RE: [fw-general] Zend_Dojo_Form not send when form invalid

2010-02-04 Thread Thomas D.
Hi, Ralf Eggert wrote: > when I have a Zend_Dojo_Form with some required elements, the form is > not send when these elements are left empty. The form is not sent and > there is not even a message prompted to tell the user that the form is > not filled in properly. Without any message and the form

RE: [fw-general] Zend_Dojo_Form not send when form invalid

2010-02-08 Thread Thomas D.
Hi Ralf, > > You should also take a look at the isValid() method of the form. > > Are you talking about the ZF or the Dojo part of the form? I thought > that the isValid() method form is called automatically if I use > Zend_Dojo_Form and combine it with ValidationTextBox dijits. I was talking ab

RE: [fw-general] Problems with Zend_Mail

2010-03-18 Thread Thomas D.
Mads Lie Jensen wrote: > This might very well be the problem > The content of the email is build using a Zend View, and all files from > my editor are saved with unix-lineendings, ie. LR. > > I will try your suggestion, using CRLF as line-endings and test with > that. It's just a bit tricky,

RE: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-21 Thread Thomas D.
Hi, Guillaume Rossolini wrote: > You needn't be concerned, as Zend_Log uses system-level > file locking.  And as you know, the OS is above apache ;) > That means that multiple simultaneous Zend_Log instances > do not immediately write or fail, they wait in a queue until > they manage to write or u

RE: [fw-general] Zend Framework 1.10.3 and 1.9.8 Released

2010-04-01 Thread Thomas D.
Hi, it seems like you have forgotten to increment the version number: -- Regards, Thomas

RE: [fw-general] Model, data source, data mapper and service layer

2010-04-15 Thread Thomas D.
Hi Ralf, you wrote: > I have a question regarding a model infrastructure that uses models, > data sources, data mappers and a service layer. I like this concept a > lot but am still thinking about one issue. I also like this concept. I read your (and others) discussion ([1], [2]) about that, incl

RE: [fw-general] Model, data source, data mapper and service layer

2010-04-15 Thread Thomas D.
Hi, Keith Pope wrote: > So now for highly specialized queries I would have them inside the > repository, not sure about > fetchBlueArticlesOrderedByGermanyPaidLastMonth() but I would have a > pretty descriptive method name :) I have implemented a criteria object > so the rules can be easily added

RE: [fw-general] Model, data source, data mapper and service layer

2010-04-15 Thread Thomas D.
Hi, Hector Virgen wrote: > We are taking a different approach that works well for us. When you look > at methods like these: > > fetchLatestArticles() > fetchArticlesBasedOnCategory($category) > fetchBlueArticlesByOrderedByGermanyPaidLastMonth() > > They all have two things in common: they retu

RE: [fw-general] Model, data source, data mapper and service layer

2010-04-16 Thread Thomas D.
Hi, Hector Virgen wrote: >> But how do you deal with other properties? For example, your articles >> have a "isPublished" flag. Now you want a list with n articles, which >> are published (isPublished === 1), ordered by another property >> "edited_on". > > I would pass in the criteria as array('p

[fw-general] What will happen, when Zend_Cache is filled up?

2010-04-17 Thread Thomas D.
Hi, I want to cache loaded articles into Zend_Cache to save the roundtrip to the persistent store. I don't see a need to set a lifetime for a cached article, because when I update or delete an article, I would also alter the cached version. This leads to the question, what will happen, when my Z

RE: [fw-general] What will happen, when Zend_Cache is filled up?

2010-04-18 Thread Thomas D.
Ben Scholzen 'DASPRiD' wrote: > What do you mean by "filled up"? There are more than 2^128 possible > keynames (depending on the system), and when you re-use a key, it will > override the old one. If you mean the storage being filled up, that > depends on the storage itself. With the filesystem sto

[fw-general] Zend_Db quoting issue

2010-04-20 Thread Thomas D.
Hi, I experienced a quoting issue within Zend_Db_Table when specifying the given value type: // Code: $db = Zend_Db::factory('Pdo_Mysql', array( 'host' => '...', 'username' => '...', 'password' => '...', 'dbname' => '...' )); Zend_Db_Table::setDefaultAdapter($db); unset($db); $tabl

RE: [fw-general] Zend_Db quoting issue

2010-04-21 Thread Thomas D.
Hi, Ralph Schindler wrote: > > $select->where('field2 = ?', 'foo', Zend_Db::PARAM_STR); > > This is not the type of values you are expected to provide here. > $type, in this case, is expected to be one of these: > > Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, and Zend_Db::FLOAT_TYPE > > As mention

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Thomas D.
Hi, > [...] > but I still get similar error: > > 2010-05-20T10:08:40+02:00 ERR (3): exception > 'Zend_Db_Adapter_Mysqli_Exception' > with message 'User *** already has more than 'max_user_connections' active > connections' in Zend/Db/Adapter/Mysqli.php:333 > Stack trace: > #0 Zend/Db/Adapter/Abs

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Thomas D.
Hi, Саша Стаменковић wrote: > I can have max 15 connections on this shared hosting. > > Because the connection I use is not persistanrt, but use pooling instead, > every query counts as new connection (not sure)? No! In your bootstrap, you set up an adapter $db = Zend_Db::factory('Adapter',

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Thomas D.
Hi, Саша Стаменковић wrote: > This error occurs only on one admin page in my project, > when I try to iterate over rowset, in each iteration > change sth in the row and save it (old version) > or I use quoteInto() with array of ids in update query (new version). Can you monitor the used mysqld?

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-20 Thread Thomas D.
Hi, Саша Стаменковић wrote: > I don't know how to monitor mysqld, maybe get connection > from adapter with getConnection() and then retreive it from there and log? No. Monitoring your mysqld has nothing to do with PHP. If you are on Unix or FreeBSD, you would use a tool like "mtop". If you are o

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi, Саша Стаменковић wrote: > Yeah, quoteInto connects to db for every quoted value, > and that breaks my limit of 15 queries at once, > even I only run one select and one update query, > it quotes array of values. What should I do? I cannot believe this. If this would be true, this would be a bi

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi, Саша Стаменковић wrote: >> [...] >> So there must be something wrong in your code. E.g. a logical error (wrong >> usage). > > I'm pretty sure it's one connection too, but for quoting value, > does Zend_Db_Adapter contacts mysql server in order to get some > info about how to quote it? > > I

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi, Саша Стаменковић wrote: > Does it need to communicate with the db server? Yes, it does. And as I tried to show you in my mail ~3 hours ago, it's nothing bad, because quote() will reuse the existing connection. I hope you understand, that quoteInto() is a method from the adapter and it's n

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi Саша Стаменковић wrote: > Problem I see is, why it has to communicate with db server > for each value in array it quotes?!?!? > Why not ask it for whatever it needs,a dn then use given result > for each value it quotes in array of values. You see a problem, where no problem is. See the PHP do

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi, Саша Стаменковић wrote: > Sure, when you have unlimited number of db operation over > a period of time. I'll come up with my own offline quoting. Seems like you are missing one fact all over the time: That quoting would use a connection to a database server, isn't a problem, because Zend_Db_

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-24 Thread Thomas D.
Hi, I can confirm, that Aleksey's application is working fine. The index action: 100524 23:51:38 24 Connect t...@localhost on testdb 24 Query DESCRIBE `automobili_news` 24 Prepare [1] SELECT `automobili_news`.* FROM `automobili_news`

RE: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-26 Thread Thomas D.
Hi, Саша Стаменковић wrote: > Still, I'm not really informed about differences between mysqli > and pdo. When you work with Zend_Db, you can choose between this > 2 with just one config param. > > I would like to know which one is faster? This question will be asked every month ;-) You should f

[fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Thomas D.
Hallo, СЯшЯ СтЯменковић wrote: > Still sometimes get > > PDOException with message 'SQLSTATE[42000] [1203] User *** already has > more than 'max_user_connections' active connections As I said in the beginning of this discussion (and btw, we can say that this was the reason for your problem): Wh

[fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Thomas D.
Hi, Bill Karwin wrote: > I wrote the following on the February thread with Ulf Wendel that you > linked to, but I think it bears repeating: > > [...] > > Peter seems to say that the "overhead" of using prepared statements is > that they are 14.5% *faster* than using a non-prepared query >

RE: [fw-general] Disable prepare statement in Zend_Db_Select

2010-06-07 Thread Thomas D.
Hi, Ryan Chan wrote: > I have traced the source code of ZFW, and found the database adapter > Zend_Db_Adapter_Mysqli always do a prepare when execute any SQL. > > However, I found it is not needed, since most of my query only run > once in their life cycle - no reuse is needed. It is possible to

RE: [fw-general] Disable prepare statement in Zend_Db_Select

2010-06-08 Thread Thomas D.
Hi, Ryan Chan wrote: > After reading the article, I think 'Query cache does not work" is a > strong enough reason not to use prepare statement. @Bill: Remember our conversation from last month? Quoting such sources, if the reader isn't able to fully understand the content is as dangerous as talki

[fw-general] Why does Zend_Db_Table's method info('primary') starts with 1?

2010-06-09 Thread Thomas D.
Hi, Zend_Db_Table's method info('primary') will return an array containing all the primary keys. I would expect, that the first key should have the offset 0, but the returned array starts with offset 1. Is there any reason why the array starts with index 1? -- Regards, Thomas

RE: [fw-general] Why does Zend_Db_Table's method info('primary') starts with 1?

2010-06-10 Thread Thomas D.
Hi, thank you Bill for the detailed explanation. -- Regards, Thomas

[fw-general] Zend Framework 1.10.x and namespaces

2010-07-07 Thread Thomas D.
Hi, I am trying to add namespace support to our library. But I am unsuccessful, because some of our classes are using Zend Framework classes, which will fail to load: /libs/Zend - location of Zend Framework /libs/My - location of our library In our bootstrap file, we make sure, that "/libs" wi

[fw-general] Re: Zend Framework 1.10.x and namespaces

2010-07-08 Thread Thomas D.
weierophinney wrote: > >> require_once 'Zend/Loader/Autoloader.php'; >> $autoloader = Zend_Loader_Autoloader::getInstance(); >> $autoloader->registerNamespace('My_'); > > Here's your problem. Your classes are using a true PHP namespace of "My" > -- drop the trailing underscore in the above line

RE: [fw-general] Team Development

2010-08-07 Thread Thomas D.
Hi, interesting topic. Hector Virgen wrote: > We have each developer set up their own dev environment > on their local machine. Well, I guess this is a common solution for small projects. But when you have to deal with real/big applications, that won't work anymore: - Maybe you are using other

RE: [fw-general] Re: Team Development

2010-08-07 Thread Thomas D.
Hi, Wil Moore III wrote: > weierophinney wrote: > > That said, I also have some colleagues and friends who work on teams > > that use VM environments, and swear by it. > > My team goes the VM route as well. We each have a VM w/ an Ubuntu bare > minimum install. There is a baseline image that we a

RE: [fw-general] Problems with Zend_Dojo and blank screens in Firefox

2010-09-25 Thread Thomas D.
Hi, to clarify: - Which Dojo version are you using exactly? - Are you using Dojo programmatically or declaratively? - In production, are you using a custom build, like Matthew described, now? You wrote above, that you are using dijit.js, which is not exactly what Matthew wrote. I recommend: Yo

RE: [fw-general] Problems with Zend_Dojo and blank screens in Firefox

2010-09-26 Thread Thomas D.
Hi Ralf, You wrote: > thank you very much for your first class step-by-step guide. You made my > day! [...] I am glad to hear, that I could help you. > Now there is only on XHR left for the file /js/layer/nls/myApp_de.js. > Can I get rid of this by directly adding this file as a layer as well,

RE: [fw-general] Problems with Zend_Dojo and blank screens in Firefox

2010-09-27 Thread Thomas D.
Hi Ralf, > > As I wrote, you can. Have a look at "dojo.requireLocalization" [1,2]. > > I don't really get it. Do I need to add the dojo.requireLocalization() > to my layer file for the build? And if so, which should be entered? All > the stuff I am referring to in my layer? Sorry, my fault. "do

RE: [fw-general] Multi Php Versions

2010-10-27 Thread Thomas D.
Hi, Zend Studio v8 has an integrated VMware support. Basically you just need VMware - it would work with any editor/IDE. VMware has a feature "folder sharing", which allows the user to share a host folder transparent with the guest. No locking problems, like you will experience with Samba or any o

RE: [fw-general] Multi Php Versions

2010-10-28 Thread Thomas D.
Hi, I created a video, which will show you how to configure Apache2 on Windows with FastCGI for multiple PHP versions. It will also show you some tricks for the Windows platform. Video: http://rapidshare.com/files/427630104/HowTo_Configure_Apache2_With_FCGI_for_ PHP_on_Windows.mp4 Resources (Rea

RE: [fw-general] Zend guru advise on how to build a secure function - could we make a proposal out of this ?

2011-03-03 Thread Thomas D.
Hi, Zladivliba Voskuy wrote > Ok, I know this function is not secure, but could we make it into a secure > one that maybe could be added to ZF so people who need secure text > (meaning Alnum + punctuation, could use it. > > [...] > > class SecureText implements Zend_Filter_Interface{public

RE: [fw-general] SVN Externals with Zend Framework: which version should one use and how stable is the 1.x version

2011-03-18 Thread Thomas D.
Hi, Andrei Iarus wrote: > 1. Which URL and which version should one use? We are using tags: For example, if you want to use the current version (1.11.4), you would use "http://framework.zend.com/svn/framework/standard/tags/release-1.11.4/librar y/Zend". When 1.11.5 is released, you would need t

RE: [fw-general] SVN Externals with Zend Framework: which version should one use and how stable is the 1.x version

2011-03-18 Thread Thomas D.
Hi, Andrei Iarus wrote: > One more question: What is the URL for the last > minor version, like 1.10.x ? 1.10.8. > Or should I always change the URL, eg. from > 1.10.4 to 1.10.5 ? First of all, new versions will be announced. So if you stay at this list, you will see the announcements. But the

Re: [fw-general] reload only a section in my layout?

2011-10-04 Thread Thomas D.
Hi, Diego Garcia wrote: > in the menu section i have a dojo accordioncontainer with severals > accordionpanes with links, when i click on a link, the page reload > reseting the state accordioncontainer (pointing again to the first > accordion pane instead of still the same), i want that only lo

[fw-general] Rasmus Lerdorf opinion on PHP frameworks: "They all suck!"

2014-02-05 Thread Thomas D.
Hi, Rasmus Lerdorf, the PHP creator, was invited to give a talk in PHP Frameworks Day conference. He talked mostly about the latest PHP developments, but in the question and answers section, somebody asked Rasmus about his opinion on the PHP frameworks. That was as straight question about his opi

[fw-general] Zend Framework v1.12.4 release?

2014-03-06 Thread Thomas D.
Hi, the last ZF1 version was released ~a year ago but if you read through the commits there's still a lot of activity. I am wondering if there are plans to do another ZF1 release? I would vote for another release... Thanks. -- Regards, Thomas -- List: fw-general@lists.zend.com Info: http

[fw-general] RE: EmailAddress validator and hostname

2015-03-09 Thread Thomas D.
Hi, you have to differentiate between "local part" and "domain": https://tools.ietf.org/html/rfc2821#section-4.5.3.1 https://tools.ietf.org/html/rfc5321#section-4.5.3.1 (newer) The hostname limitation comes from https://tools.ietf.org/html/rfc1035#section-2.3.4 If you are wondering about 63 v