[fw-general] Zend_Date: Excessive memory use

2010-01-25 Thread David Muir
Is it just me or does Zend_Date require a ton of memory? var_dump(memory_get_usage()); $date = new Zend_Date(); var_dump(memory_get_usage()); Gives me: int 9345896 int 13966200 That's a jump of 4620304 bytes! Cheers, David -- View this message in context:

[fw-general] Re: Manual Headings

2010-02-23 Thread David Muir
+1 from me too. And while we're at it, add a table of contents for each page (à la wikipedia). Example: Try to quickly find Navigation Helpers in: http://framework.zend.com/manual/en/zend.view.helpers.html Cheers, David -- View this message in context:

[fw-general] Re: PDO or Mysqli?

2010-02-24 Thread David Muir
PDO here as well (although I've used mysqli on servers that didn't have PDO) There are some differences with binding parameters between the two. I personally like PDO's style better. PDO also supports named parameters, which lets you do some things that you can't with mysqli. I'd suggest looking

[fw-general] Re: Manual Headings

2010-02-24 Thread David Muir
I knew someone wouldn't be able to resist... :-P You have to know exactly what you're searching for, so it's fixing the wrong problem. Most of the time I want a quick overview to see if what I'm looking for is even on the given page. Cheers, David -- View this message in context:

[fw-general] Re: Zend_Form + error weirdness

2010-03-03 Thread David Muir
Welcome to the wacky world of Zend_Form. :-) I believe what you're looking for is getErrorMessages() Cheers, David -- View this message in context: http://n4.nabble.com/Zend-Form-error-weirdness-tp1575098p1576108.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: insert() or save() Zend_Db_Table

2010-03-03 Thread David Muir
If all you're after is the id of the row, just get it from the row: $row-save(); $id = $row-id; Save should be returning the primary key, and if not, then it's a bug. Cheers, David -- View this message in context: http://n4.nabble.com/insert-or-save-Zend-Db-Table-tp1575952p1576111.html

[fw-general] Re: insert() or save() Zend_Db_Table

2010-03-03 Thread David Muir
$row-id is the id value for the row (according to the schema you posted) $row-id() is not a defined method, so should throw an exception. $row-id !== lastInsertId(), although it should be in most cases. Depending on your _postInsert() code, lastInsertId() might not be the row's ID. Cheers,

[fw-general] Re: Zend_Form Question

2010-03-04 Thread David Muir
You can render individual elements and decorators. echo $this-form;// renders the whole thing echo $this-form-render(false); //renders the opening form tag echo $this-form-element; //renders the given element (can be a display group) echo $this-form-element-renderLabel(); //renders the Label

[fw-general] Re: Zend_Date

2010-03-09 Thread David Muir
Since Thomas was so helpful Here you go: http://framework.zend.com/manual/en/zend.date.additional.html#zend.date.additional.timezones Looks like it does what you're looking for. Just create the date object, and then give it a new timezone with the setTimezone() method. Cheers, David --

[fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread David Muir
You'll need to check the php ini setting: session.gc_maxlifetime default is 1440, so the session garbage collector is probably wiping the session files earlier. Cheers, David -- View this message in context: http://n4.nabble.com/Zend-Session-rememberMe-tp1587009p1587221.html Sent from the

[fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread David Muir
it's PHP_INI_ALL, so can be changed from anywhere. IIUC you can also set it using application.ini: phpSettings.session.gc_maxlifetime = 604800 Cheers, David -- View this message in context: http://n4.nabble.com/Zend-Session-rememberMe-tp1587009p1587252.html Sent from the Zend Framework

[fw-general] Re: Zend_Session::rememberMe

2010-03-11 Thread David Muir
You can't selectively set the gc_maxlifetime unless you also change the save path while you're at it. Otherwise, the garbage collector may run and wipe all your rememberMe sessions when a non rememberMe user logs in. David -- View this message in context:

[fw-general] Re: mail not reaching list

2010-03-11 Thread David Muir
My emails don't get through either, so I'm using the web interface for now. Make sure the email address you registered is identical to the one you're sending emails from. For me the problem is that I have username+z...@gmail.com as the registered address, but send from usern...@gmail.com. David

[fw-general] Re: Doctrine 2.0 - Entities/Models - Naming and Autoloading

2010-03-23 Thread David Muir
They should be namespaced IMO. Also, the example given here uses namespaces: http://www.doctrine-project.org/blog/doctrine-2-give-me-my-constructor-back -- View this message in context: http://n4.nabble.com/Doctrine-2-0-Entities-Models-Naming-and-Autoloading-tp1678427p1678528.html Sent from

[fw-general] RE: Zend_Db really slow

2010-03-24 Thread David Muir
Where is the database located in relation to the web server? My guess is that it's slow because the database server is not on the same network as the web server. Cheers, David -- View this message in context: http://n4.nabble.com/Zend-Db-really-slow-tp1680359p1680428.html Sent from the Zend

[fw-general] Re: Navigating ZF manual

2010-04-01 Thread David Muir
You are awesome! Thanks for the script. I filed a similar report 6 months ago. http://framework.zend.com/issues/browse/ZF-7769 Cheers, David -- View this message in context: http://n4.nabble.com/Navigating-ZF-manual-tp1695651p1747459.html Sent from the Zend Framework mailing list archive at

[fw-general] Re: validator chains and context

2010-05-13 Thread David Muir
Awesome :-) Is the code public domain/new-bsd? Cheers, David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/validator-chains-and-context-tp2130875p2197075.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Zend_Validate_Abstract custom validator not displaying correct error messages.

2010-05-20 Thread David Muir
If you look at the code, addErrorMessages() ignores keys. It simply does: foreach($messages as $message){ $this-addErrorMessage($message); } From looking at the code, and your sample, if the element is invalid, you should be getting both error messages regardless of which validator triggered

[fw-general] Re: Progressive upload not working

2010-06-16 Thread David Muir
The problem I think is that you're trying to check the progress after it has already been uploaded. The php script that receives the file won't actually run until the file has been completely uploaded (IIUC, php isn't executed until the web-server recieves the full HTTP request, file and all). To

[fw-general] Re: Displaying input Form

2010-06-22 Thread David Muir
That's one of the hardest parts of Zend_Form IMO. It's hard to get good samples of how to design forms with definition lists. I've never been happy with the result so I generally render what I need manually, and wrap things in fieldsets and divs. eg: fieldset legendForm Section/legend div ?php

[fw-general] Re: remember me and session cookies

2010-07-09 Thread David Muir
scss wrote: That is a tough one if you are using files. PHP's garbage collector will run on a specific interval looking for files that have old timestamps (outside of a specificed range), and once it finds them, it will delete them. If you wanted to iterate the session's file directory,

[fw-general] Re: How do i setup Autoloading of PHP 5.3 namespaced classes and specify a base path?

2010-07-30 Thread David Muir
Maybe what you're looking for is the resource loader. http://framework.zend.com/manual/en/zend.loader.autoloader-resource.html It lets you specify a path for a particular namespace. Eg. you might have the following layout: /application /model Using the resource loader you can set it up so

[fw-general] Re: Improve Zend_Application: moving out the stateless world

2010-08-26 Thread David Muir
I'd be more interested in a way to bake the application. Paddy had a post about ZF vs Symfony performance. http://blog.astrumfutura.com/archives/421-PHP-Framework-Benchmarks-Entertaining-But-Ultimately-Useless.html In it he builds some optimised builds that skips Zend_Application and has a bunch

[fw-general] Re: Question

2010-08-30 Thread David Muir
No, only the latter will execute. php var_dump('' != false, '' !== false); bool(false) bool(true) David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Question-tp2340147p2399499.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Many project in the structure

2010-09-01 Thread David Muir
Supposedly the router can deal with this automatically, but I haven't had much time to mess around with it. I do remember though that all your links will typically need to be generated using the url view helper, otherwise the links won't be based off the baseUrl. An alternative that I've used in

[fw-general] Re: Router required variables not working?

2010-09-08 Thread David Muir
It's also what we get from ignoring invalid settings. Don't get me wrong. I still think invalid settings should be ignored. Rather, we need a way to make this a quick 5 minute debug session, rather than something that can go on for days. David -- View this message in context:

[fw-general] Re: Router required variables not working?

2010-09-09 Thread David Muir
I was thinking notices, rather than exceptions. That said, I think I just came up with a simple way to debug this. Essentially, this is what I'm thinking; if sample config arrays were offered as part of the documentation (or generated from it), then you could just use PHP's array functions to

[fw-general] Re: ZF URL Routing Insanity!

2010-09-21 Thread David Muir
Your route should be user/:username/:action with the default action being view you can then do: user/Spongebob or user/Spongebob/view user/Spongebob/edit user/Spongebob/delete the one that doesn't quite work with this is add So you'll probably need to set up a second route for user/add Cheers,

[fw-general] Re: Select object behaviour

2010-10-05 Thread David Muir
I would have expected limit 0 to mean no limit or unlimited. The current behaviour seems to follow that pattern. That said, PHP's LimitIterator treats -1 as unlimited and 0 triggers an OutOfBoundsException. Cheers, David -- View this message in context:

[fw-general] Re: Select object behaviour

2010-10-06 Thread David Muir
I'm just saying that 0 is often times used that way. (eg. session.cookie_lifetime) It also makes sense if you're setting the limit to 0, as in no limit (0 == false), vs. limit (reduce) the resultset to 0 rows (which is how MySQL understands it). David -- View this message in context:

[fw-general] Re: Firefox - double request

2010-10-13 Thread David Muir
Also, is it a normal html link, or is it something triggered by javascript? Double triggering is fairly common with the latter if you're not careful with how you bind event handlers. It being FF specific however, makes me thing this isn't the issue, but figured I'd suggest it anyway. Cheers,

[fw-general] Re: Letter case problem in Zend_Http_Response

2010-10-15 Thread David Muir
Hector Virgen wrote: As brought up by Artem, it's case-insensitive so it shouldn't matter as long as browsers are following the spec. IIRC, IE does not follow the spec correctly. David -- View this message in context:

[fw-general] Re: Date Subtractions Differences

2010-10-15 Thread David Muir
How did you create the dates? David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions-Differences-tp2996040p2996412.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Date Subtractions Differences

2010-10-18 Thread David Muir
is the ISO year, which is different from which is the normal calendar year. http://en.wikipedia.org/wiki/ISO_year#Relation_with_the_Gregorian_calendar You should use either of the following: $date = new Zend_Date($datecolumn, Zend_Date::ISO_8601); $date = new Zend_Date($datecolumn,

[fw-general] Re: Securing database username/password

2010-10-27 Thread David Muir
I have application.ini ignored, and instead track template.application.ini On deployment, I use the template to generate the application.ini file. Mind you, I use phing, so I'm not too sure about the ins and outs of Capistrano, but surely, you could have it swap out tokens in your template file

[fw-general] Re: repeated stylesheets in html header

2010-11-01 Thread David Muir
Or use your favorite build tool to concatenate your css files into one on deployment :-) During development, just have your css file use @import statements to include the other css files. David Rafael wrote: I suggest to create a view helper to scan and load all stylesheets :) --

[fw-general] Re: ZF 2.0 when and what?

2010-11-16 Thread David Muir
monk.e.boy wrote: weierophinney wrote: (APC http://php.net/manual/en/book.apc.php will help your speed issues) APC is one solution -- and that applies to ZF1 as well. However, the better solution is to profile the code and re-architect pain points to make them more performant. The

[fw-general] Re: How render Zend_Form to html table?

2010-11-18 Thread David Muir
I would put the two block in fieldsets, then use floats. You can create fieldsets by using displaygroups. Cheers, David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-render-Zend-Form-to-html-table-tp662422p3047990.html Sent from the Zend Framework

[fw-general] Re: Form default decorators

2010-11-18 Thread David Muir
Forgot to include this one: http://aspnetresources.com/blog/styling_definition_lists David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Form-default-decorators-tp3043858p3048108.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Form default decorators

2010-11-18 Thread David Muir
Pardon the rant, those who are interested in the more useful part of my reply, drop down to the end. [rant] I have to agree with the notion that styling dl's are often a PITA. I find it much easier to work with just the input and label wrapped in a div. Floating is still necessary there too, but

[fw-general] Re: How to add RewriteRule to ZF default .htaccess ?

2010-11-19 Thread David Muir
I believe what you're wanting is something more along the lines of RewriteRule ^foo(.*)$ bar$1 [R=301,NC,L] That will rewrite foo/action/ to bar/action/ Note that it will also rewrite foo-dat-i-piddy/action to bar-dat-i-piddy/action Cheers, David Colin Guthrie-6 wrote: 'Twas brillig, and

[fw-general] Re: problem with autoloading class definition for serialization and deserialization

2010-11-29 Thread David Muir
Throwing it on a slight tangent, but maybe storing the objects in the session isn't the best solution. I've done it in the past, but have found that it's often more trouble than it's worth. I would do instead is either inject a Zend_Session_Namespace to store object data, or create a mapper

[fw-general] Re: problem with autoloading class definition for serialization and deserialization

2010-11-30 Thread David Muir
No, the object is still unserialized when the session is started. One way to get around it is by forcing string unserialization by doing something like: $obj = new obj; $_SESSION['obj'] = 'a not so random string'.serialize($obj); ... then to load ... $ser = unserialize(str_replace('a not so

[fw-general] Re: Meta tags rendering and indentation issues

2010-11-30 Thread David Muir
IIRC, the \n at the end of each line is needed because php's closing tag gobbles any newline characters that immediately follow it. As for the extra space within the meta tag. It's probably a bug but not one that really matters. It's probably never been fixed because the output is still valid

[fw-general] Re: How to not enter in the frontController's dispatch loop properly ?

2010-12-21 Thread David Muir
An alternate solution would be to use a static cache, and skip php altogether if the page has been cached. See: http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.capture http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.static

[fw-general] RE: Get full html response in a plugin

2010-12-24 Thread David Muir
Sergio, Compression by the web-server (eg. mod_deflate) will be your best bet. Otherwise, the cost of minifying the html would probably far outweigh* whatever gains you might get from the reduced bandwidth. *I don't have any actual numbers to back up that claim. Also see:

[fw-general] Re: Ajax, Sessions and Redirects

2011-01-28 Thread David Muir
Here's how I've solved the issue: Server-side: If the user tries to access a page and their session has expired, or are not authenticated, I return a 401 status code, then forward to the login page, which I think would look like this: $this-getResponse()-setHttpResponseCode(401);

[fw-general] Re: Setting up Zend

2011-02-03 Thread David Muir
MG7282 wrote: I just tried setting this up on my mac osx and am experiencing the same issue. OSX is unix... does running: cd path/to/Zend/bin php zf.php work? As for it not being able to find zf.sh, that's pretty obvious. Your path includes: /home/content/m/a/r/mariannag7282/bin but

[fw-general] Re: Setting up Zend

2011-02-04 Thread David Muir
MG7282 wrote: When I run php zf.php in terminal on my local machine (Mac OS x), I get: An Error Has Occurred An action and provider is required. Zend Framework Command Line Console Tool v1.11.1 Usage: zf [--global-opts] action-name [--action-opts]

[fw-general] Re: Zend Db Table Issue

2011-02-17 Thread David Muir
Rafael wrote: Hello, I don't know if it is the right to ask however i have one issue that nobody else managed to solve it. I'm using zend framework 1.11.3, PHP 5.3 and MySQL 5.1 configured with InnoDB engine. I'm trying to make a relationship between two tables to apply cascade

[fw-general] Re: Error: Class 'forms_ContactForm' not found (new to Zend)

2011-02-22 Thread David Muir
You don't have application in your path, so of course it won't see forms/ContactForm.php Better than putting it in your path though, I'd just use the resource autoloader: http://framework.zend.com/manual/en/zend.loader.autoloader-resource.html That way all you need in your path is:

[fw-general] Re: Error: Class 'forms_ContactForm' not found (new to Zend)

2011-02-23 Thread David Muir
No idea why it would be throwing that, unless you're including the file twice. The only file you need to manually include/require is the autoloader. After setting up the resource loader, you can simply do: $form = new Application_Form_ContactForm; You'd have to rename the classes accordingly. If

[fw-general] Re: Error: Class 'forms_ContactForm' not found (new to Zend)

2011-02-24 Thread David Muir
Yeah, there's a missing closing parenthesis there. http://pastie.org/1600369 -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Error-Class-forms-ContactForm-not-found-new-to-Zend-tp3319850p3321957.html Sent from the Zend Framework mailing list archive at

[fw-general] Re: Error: Class 'forms_ContactForm' not found (new to Zend)

2011-02-24 Thread David Muir
Please see the 2nd paragraph of my 2nd reply. David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Error-Class-forms-ContactForm-not-found-new-to-Zend-tp3319850p3321997.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Zend_Date Behavior: PEBKAC or Bug?

2011-03-03 Thread David Muir
Zend_Date is next to useless for validating dates: http://framework.zend.com/issues/browse/ZF-7583 You're better off building your own date validator. Cheers, David -- View this message in context:

[fw-general] Re: Zend_Db_Select with multiple from's

2011-03-10 Thread David Muir
Not all databases support implicit joins, so you need to convert it to explicit joins. So instead of: SELECT parent.name FROM nested_category AS node, nested_category AS parent WHERE node.lft BETWEEN parent.lft AND parent.rgt AND node.name = 'FLASH' ORDER BY parent.lft; You'd have: SELECT

[fw-general] Re: Complex UPDATE statement - Best method

2011-03-11 Thread David Muir
You wouldn't be able to use Zend_Db_Table::update(), but I think you could use the adapter's update() method if you pass in the table names as a Zend_Db_Expr() object. You might also be able pass in the two table names as an array. You may also have to use Zend_Db_Expr for the data and where

[fw-general] Re: Database Optimization/Normalization

2011-04-05 Thread David Muir
Here's what I'd do: 1. Create a temporary table using the Memory engine (you may need to increase the max heap size if there's a lot of data) 2. Create a prepared statement to insert into the temp table (insert a bunch of rows at the same time to speed this step up) 3. begin transaction 4. INSERT

[fw-general] Re: Database Optimization/Normalization

2011-04-07 Thread David Muir
Note, this is getting out of Zend Framework land A temp table can use any of the database engines; memory just happens to be the fastest :-) Now for a more practical example: lets say you want to import product_metrics (I don't know what your columns look like, so I'll make up something)

[fw-general] Re: Noob Questions. Please help.

2011-04-11 Thread David Muir
lordali wrote: Hi, I am new to ZF. Hoping to learn it but need some verifications. Zend Framework This is open source framework which is only needed to make Zend Web Projects. Right? What are Zend Web Projects? Zend Framework is a library of PHP components including a full MVC

[fw-general] Re: Handling time measures

2011-04-13 Thread David Muir
You mean something like: function toHMS($time){ $seconds = $time % 60; $minutes = (($time-$seconds) % 3600) / 60; $hours = (int) ($time-$minutes)/3600; return sprintf('%02d:%02d:%02d',$hours , $minutes, $seconds); } Cheers, David -- View this message in context:

[fw-general] Re: Generating a mysql IN() operator with arrays and quoteInto possible?

2011-04-14 Thread David Muir
Markizano is talking about prepared statements with placeholders, which is the recommended way of working with a database as it minimises the risk of sql injection. Passing an array to where or quoteInto will escape strings correctly, but you also need to make sure that you don't pass in an empty

[fw-general] Re: Reference guide suggestion

2011-04-25 Thread David Muir
Chris Morrell also put together a greasemonkey script that I've been using: http://cmorrell.com/webdev/zf/zend-framework-documentation-777 Cheers, David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Reference-guide-suggestion-tp3466461p3467235.html Sent

[fw-general] Re: multi-dimensional array difference. pls help.

2011-05-16 Thread David Muir
Did you try: $result = array_diff_assoc($_POST, $_SESSION); David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/multi-dimensional-array-difference-pls-help-tp3525212p3525418.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List:

[fw-general] Re: Send mail with multiple Cc

2011-05-31 Thread David Muir
Error means that php's mail() function failed. You need to set up PHP to use an MTA to use the Sendmail transport. Check your php.ini to see if it's set up, particularly sendmail_path. Should be something like: sendmail_path = /usr/sbin/sendmail -t -i Cheers, David -- View this message in

[fw-general] Re: Send mail with multiple Cc

2011-06-01 Thread David Muir
What platform are you using? If you can't send via mail() you can also try using the SMTP transport. David -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3564818.html Sent from the Zend Framework mailing list archive at

[fw-general] Re: Send mail with multiple Cc

2011-06-03 Thread David Muir
You can't be getting the same error because the SMTP transport will not throw the same exception. The only exception that the SMTP transport throws is '_prepareHeaders requires a registered Zend_Mail object'. Is that what you're getting? David -- View this message in context:

Re: [fw-general] Re: slashes being replaced by \/. maybe a bug

2011-07-14 Thread David Muir
On Thu 14 Jul 2011 09:06:38 EST, MMurphy wrote: Looks like you have an input filter using addslashes() and you are lacking the use of stripslashes() on output. (or more likely mysql_real_escape_string() and its paired function.) Anyone able to comment on this with more authority? I'm not a

Re: [fw-general] Zend_Form: adding css class attrib to select option elements

2011-07-25 Thread David Muir
On Sat 23 Jul 2011 04:27:16 AM EST, Bart McLeod wrote: Op 22-07-11 17:06, David Mintz schreef: On Thu, Jul 21, 2011 at 5:19 PM, Bart McLeodmcl...@spaceweb.nl wrote: My wild guess is that you should override addMultiOptions in a custom select element so that you can add the class attribs.

Re: [fw-general] Re: Over-engineered Zend Form Decorators, help

2011-09-29 Thread David Muir
The way I handle forms is like this: table tr td?=$firstname-renderLabel()?/td td?=$firstname-renderViewHelper()?br / ?=$firstname-renderErrors()?/td /tr …etc… /table Except I wouldn't be using tables, but fieldsets and divs instead. Cheers, David On 29/09/11 07:10,

Re: [fw-general] Re: Over-engineered Zend Form Decorators, help

2011-09-29 Thread David Muir
On 09/30/2011 02:11 AM, David Mintz wrote: On Thu, Sep 29, 2011 at 2:24 AM, David Muir davidkm...@gmail.com wrote: The way I handle forms is like this: table tr td?=$firstname-renderLabel()?/td td?=$firstname-renderViewHelper()?br / ?=$firstname-renderErrors()?/td /tr …etc

Re: [fw-general] Re: Over-engineered Zend Form Decorators, help

2011-10-05 Thread David Muir
On 06/10/11 01:03, monk.e.boy wrote: David Muir-2 wrote: table tr td?=$firstname-renderLabel()?/td td?=$firstname-renderViewHelper()?br / ?=$firstname-renderErrors()?/td /tr …etc… /table Except I wouldn't be using tables, but fieldsets and divs instead

[fw-general] Zend_Auth using MD5

2011-10-13 Thread David Muir
MD5 is used in the example usage of /credentialTreatment/ for Zend_Auth_Adapter_DbTable: http://framework.zend.com/manual/en/zend.auth.adapter.dbtable.html#zend.auth.adapter.dbtable.advanced.advanced_usage Is this a good idea? Shouldn't something a bit more secure be used for passwords?

Re: [fw-general] Zend_Auth using MD5

2011-10-13 Thread David Muir
://twitter.com/Ocramius http://marco-pivetta.com On 14 October 2011 03:34, David Muir davidkm...@gmail.com mailto:davidkm...@gmail.com wrote: MD5 is used in the example usage of /credentialTreatment/ for Zend_Auth_Adapter_DbTable: http://framework.zend.com/manual/en

Re: [fw-general] Re: url´s case sensitive

2011-11-09 Thread David Muir
Couldn't you also do this using mod_rewrite or similar? David On 09/11/11 23:49, Diego Garcia wrote: my localhost is a windows system, i want to know if there was an easy way i solved it with a plugin that check the url and redirect correctly like you said thanx Armand El 09/11/2011

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

2012-02-15 Thread David Muir
As a backup, I have the environment stored in a php file: config/environment.php: ?php return 'development'; index.php: ?php //... checks for env vars first ... //if it fails: $env = include APPLICATION_PATH . '/config/environment.php'; Cheers, David On 02/15/2012 11:20 AM, Alayn Gortazar

Re: [fw-general] Defense against XSS in Zend Framework

2012-02-16 Thread David Muir
On 13/02/12 15:15, Jakub Vrana wrote: Hello! Please read the article http://php.vrana.cz/defense-against-xss-in-zend-framework.php and consider changing the way how Zend Framework escapes data on output before Zend Framework 2 is out. The number example in there is kind of dumb. For that,

Re: [fw-general] Re: ZF2 Db\Sql\Select WHERE `name` LIKE 'cmp%' breaks the query

2012-05-20 Thread David Muir
On 05/16/2012 02:59 AM, cmple wrote: cmple wrote ralphschindler wrote Based off of what is in master, I can confirm that this works: https://github.com/ralphschindler/Zend_Db-Examples/blob/master/example-15.php What is the error/exception you are getting? -ralph On 5/13/12 9:51 PM,

[fw-general] Re: [zf-contributors] Zend Framework 2.0.0rc6 Released!

2012-08-29 Thread David Muir
I followed the directions on packages.zendframework.com, but I end up with beta5 instead of rc6. How do I get rc6 using composer? Cheers, David On 30/08/12 04:19, Matthew Weier O'Phinney wrote: Github has had some issues today, and this is likely a result. I've heard reports on IRC that

[fw-general] Re: [zf-contributors] Zend Framework 2.0.0 STABLE Released!

2012-09-06 Thread David Muir
Congrats on a great release. Looking forward to digging in to it. New website looks good too. User Guide link was broken, but the 404 page was worth it! Cheers, David On 06/09/2012, at 1:58 PM, Matthew Weier O'Phinney matt...@zend.com wrote: Zend Framework 2.0.0 This

Re: [fw-general] Zend_Log Dateformat

2012-09-14 Thread David Muir
Swap out the formatter for the writer. ZF1: http://framework.zend.com/manual/1.12/en/zend.log.formatters.html ZF2: http://framework.zend.com/manual/2.0/en/modules/zend.log.formatters.html Cheers, David On 14/09/2012, at 6:17 PM, Steve Rayner srayne...@googlemail.com wrote: Zend_Log has this

[fw-general] ZF2 outputting files

2012-10-01 Thread David Muir
What's the best way to output a file from one of my controllers? Cheers, David -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] Re: ZF2 outputting files

2012-10-01 Thread David Muir
://marco-pivetta.com On 1 October 2012 09:21, David Muir-2 [via Zend Framework Community] ml-node+s634137n4657245...@n4.nabble.com wrote: What's the best way to output a file from one of my controllers? Cheers, David -- List: [hidden email]http://user/SendEmail.jtp?type=nodenode=4657245i=0

Re: [fw-general] Re: ZF2 outputting files

2012-10-02 Thread David Muir
https://github.com/zendframework/zf2/issues/2651 Cheers, David On 02/10/12 23:04, Matthew Weier O'Phinney wrote: David -- Can you report this issue at https://github.com/zendframework/zf2/issues please? -- David Muir davidkm...@gmail.com wrote (on Tuesday, 02 October 2012, 12:51 PM +1000

[fw-general] Exceptions not displayed

2012-10-04 Thread David Muir
In my config I have: ... 'view_manager' = array( 'display_not_found_reason' = true, 'display_exceptions' = true, ... But when the application throws and exception, I get a blank page. Shouldn't the exception be caught an then displayed? Cheers, David -- List:

[fw-general] Re: Exceptions not displayed

2012-10-04 Thread David Muir
On 05/10/12 11:34, David Muir wrote: In my config I have: ... 'view_manager' = array( 'display_not_found_reason' = true, 'display_exceptions' = true, ... But when the application throws and exception, I get a blank page. Shouldn't the exception be caught

[fw-general] ZF2 - Application log

2012-10-10 Thread David Muir
Back in ye olde ZF1 days, I'd set things up using the log resource and I'd either have everything worth logging bubble up as an exception to the controller, which would then pass it on to the log, or I'd pass the logger in as a dependency of the service. I was in the middle of doing something

Re: [fw-general] ZF2 - Application log

2012-10-11 Thread David Muir
On Fri, Oct 12, 2012 at 12:15 AM, Matthew Weier O'Phinney matt...@zend.comwrote: -- David Muir davidkm...@gmail.com wrote (on Thursday, 11 October 2012, 11:07 AM +1100): Back in ye olde ZF1 days, I'd set things up using the log resource and I'd either have everything worth logging bubble up

Re: [fw-general] Deploying (composer managed) ZF2 apps

2012-10-14 Thread David Muir
On 13/10/12 00:29, Matthew Weier O'Phinney wrote: -- David Muir davidkm...@gmail.com wrote (on Friday, 12 October 2012, 05:28 PM +1100): This isn't really an issue specific to ZF2, but since one of the recommended installation methods is via composer, I figured I'd ask here. When deploying

Re: [fw-general] ZF2 - Application log

2012-10-14 Thread David Muir
On 13/10/12 00:26, Matthew Weier O'Phinney wrote: -- David Muir davidkm...@gmail.com wrote (on Friday, 12 October 2012, 01:46 PM +1100): On Fri, Oct 12, 2012 at 12:15 AM, Matthew Weier O'Phinney matt...@zend.comwrote: -- David Muir davidkm...@gmail.com wrote (on Thursday, 11 October 2012, 11

Re: [fw-general] ZF2 Documentation

2012-11-12 Thread David Muir
On 13/11/12 05:28, Matthew Weier O'Phinney wrote: -- Marc Tempelmeier m.tempelme...@bqs-institut.de wrote (on Monday, 12 November 2012, 08:51 AM +0100): What I see in the channels is that there is some kind of rest period. There are a few who make the modules site, but in the whole it seems

Re: [fw-general] ZF2 Documentation

2012-11-12 Thread David Muir
On 13/11/12 12:16, Matthew Weier O'Phinney wrote: -- David Muir davidkm...@gmail.com wrote (on Tuesday, 13 November 2012, 09:28 AM +1100): On 13/11/12 05:28, Matthew Weier O'Phinney wrote: I don't say this as a critique, but just to clarify what I understand to be the problem. People

[fw-general] Mandrill Transport for Zend_Mail (ZF1 or ZF2)

2013-02-03 Thread David Muir
Anybody have a Mandrill transport class set up for Zend Mail that sends via their API calls? I tried using SMTP, but it doesn't seem to work. I've read other reports where Zend_Mail has not worked, but SwiftMail has. I'd prefer to use their API though, as it's much faster than SMTP. I've

[fw-general] Re: Mandrill Transport for Zend_Mail (ZF1 or ZF2)

2013-02-05 Thread David Muir
On 04/02/13 11:48, David Muir wrote: Anybody have a Mandrill transport class set up for Zend Mail that sends via their API calls? I tried using SMTP, but it doesn't seem to work. I've read other reports where Zend_Mail has not worked, but SwiftMail has. I'd prefer to use their API though

Re: [fw-general] Mandrill Transport for Zend_Mail (ZF1 or ZF2)

2013-02-06 Thread David Muir
On 06/02/13 18:29, Peter Warnock wrote: Just trying to see if anyone else has gone this route, or what the caveats might be by using a transport that runs over Zend_Http_Client. Take a look at https://github.com/juriansluiman/SlmMail You might be able to fork it and contribute a Mandrill

Re: [fw-general] Clarification on 3rd-party libraries in ZF2

2013-03-13 Thread David Muir
If PHPExcel doesn't use namespaces, then it lives in the root namespace \. You just use it like you would any old non-namespaced code. I think the confusion comes from the PHP manual interchanging aliasing and importing. The use statement only creates an alias. It does not do any importing

Re: [fw-general] Clarification on 3rd-party libraries in ZF2

2013-03-13 Thread David Muir
On 14/03/13 09:52, Brad Waite wrote: Thanks, David. Your examples were clarifying. I think I was expecting the automapper to create namespace maps for the classes under PHPExcel. It looks like composer might do that if asked, but I haven't tried yet. You just use it like you would any old

[fw-general] Authorization Validator

2013-03-18 Thread David Muir
I've just set up a login form using the Zend\Authorization\Validator\Authorization. Overall things are working reasonably well, but there are few annoyances/oddities. First, to load the validator, I have to reference the full classname Zend\Authorization\Validator\Authorization instead of a

[fw-general] Authorization Validator

2013-03-18 Thread David Muir
I've just set up a login form using the Zend\Authorization\Validator\Authorization. Overall things are working reasonably well, but there are few annoyances/oddities. First, to load the validator, I have to reference the full classname Zend\Authorization\Validator\Authorization instead of a

Re: [fw-general] Re: [ZF2] How to use paginator with huge number of records

2013-04-10 Thread David Muir
That seems incredibly inefficient, especially if each lookup is a round trip to the DB. Wouldn't you be better off creating a query that fetches both books and authors? Cheers, David On 09/04/2013, at 11:42 PM, Matus Zeman matus.ze...@gmail.com wrote: Hi Sinimix, I don't like to complicate

  1   2   >