[fw-general] Re: Setting up Zend

2011-01-28 Thread Wil Moore III
MG7282 wrote: > > What path information? > > echo $PATH - -- Wil Moore III Why is Bottom-posting better than Top-posting: http://www.caliburn.nl/topposting.html DO NOT TOP-POST and DO trim your replies: http://linux.sgms-centre.com/misc/netiquette.php#toppost -- View this message in con

[fw-general] Re: help with debugging a possible path/env/setting issue - PHPunit - SOLVED

2011-01-28 Thread Wil Moore III
Simon Walter wrote: > > PHPunit 3.4 works. I had to update PEAR via PEAR - not apt. PHPunit > requires PEAR installer >= 1.8.1. Then install PHPunit via PEAR. > Sorry I'm late on this one. It seems that the sweet spot for ZF 1.x + PHP 5.3 is PHPUnit 3.4.15 (at least for my most recent projects)

[fw-general] Re: Zend_Form_Element_Captcha troubles and some question about Zend_Navigation

2011-01-28 Thread Wil Moore III
vbogoev wrote: > > The second question is about Zend_Navigation. > > I have two or three menus. Is it a good idea to split any of these menus > in individual xml files, or not? What is the best way to do that if the > method above is not good? > Hi, Generally it is better to split multiple qu

[fw-general] Counting Online users, but not using a Session Table in MySQL

2011-01-28 Thread AmirBehzad Eslami
Dear list, The common solution for counting online users is to store sessions in a Table. I've created a Table in MySQL to acheive the result, but it seems this solution is a little heavy for such a simple task. Is there a better alternative? Can I use SqlLite to make COUNT(*) queries based on a

[fw-general] Re: Amazon SES (Simple Email Service) service and email transport

2011-01-28 Thread Victor Farazdagi
Hi, Konr! Yep also glad that AWS services were augmented with this new one. You can certainly proceed with either proposal and documentation or code. New contributors are always welcome :) RIght now I am busy rewriting Zend\OpenId so will not be able to attend Zend\Service\Amazon for some more 2-3

[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); $this->_forwa

[fw-general] Re: Amazon SES (Simple Email Service) service and email transport

2011-01-28 Thread ProfCrazynuts
Hey Konr, I'd be willing to help if you'd like. I think you have draft up a proposal first though. Interested? -Nick -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Amazon-SES-Simple-Email-Service-service-and-email-transport-tp3238629p3243316.html Sent

[fw-general] Mocking away zend_captcha

2011-01-28 Thread Jigal sanders
Hello, I am struggeling already a few days to unit test a form which has in it zend Captcha. I was told to mock away the validator of zend_Captcha but i have no idea how. This is my test function: public function testCanSubmitContactForm(){ $mock = $this->getMock('Zend_Form_Element_Capt

[fw-general] Re: why Zend_Db_Adapter happened to be much slower than mysql_query

2011-01-28 Thread Oleg_201080
This code takes about 0.065 seconds with mysql_query: $dateAdded = date('Y-m-d H:i:s'); $lastChanged = $dateAdded; $startTime = microtime(true); $result = mysql_query('BEGIN'); for ($i = 0; $i < 100; $i++) { $email = 'test_ ' . $i . '@gmail.com'; $quer

[fw-general] Re: why Zend_Db_Adapter happened to be much slower than mysql_query

2011-01-28 Thread Oleg_201080
Even without quoting ration remains the same: with Zend_Db_Adapter inerting subscriber in the loop (for example) 1 is 3.5 times slower. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/why-Zend-Db-Adapter-happened-to-be-much-slower-than-mysql-query-tp3241

Re: [fw-general] Re: Does everyone use zf.sh?

2011-01-28 Thread koji ueda
Thanks for your reply. >> I think there is no need to use zf command. >> I'm using code generator I made. >> It has customizable skelton file. >> >> zf command is good to understand Zend Framework for beginners. >> > I think this is what it is going to come down to for most non-beginners. I > mean

[fw-general] generic way of processing forms and modifying underlying database table accordingly

2011-01-28 Thread Martijn Korse
I recently started to use Zend_Form in a backend/admin part of an application where data in the database can be managed. I realized i was duplicating lots of code where it came to validating & processing the form and modifying the database accordingly. I tried to centralize as much code as possibl

Re: [fw-general] Re: Search for existing value in headMeta

2011-01-28 Thread Jurian Sluiman
On Friday 28 Jan 2011 00:30:05 Hector Virgen wrote: > Jurien, back to your original post, generally what I do is I set the > "default" meta tags early in the application (usually during bootstrap) and > actions/views can replace them if necessary by providing new values using > the normal view help