Re: [fw-general] Validation for multi-column unique constraints

2007-09-28 Thread Alex Netkachov
I prefer combination of the following methods: 1. Check the uniqueness using a SELECT query. 2. Display error 3. After fixing error, execute data modification statemenet. 4. In case of error I can do either of the following: 4.1. parse error message and display error or if it fails 4.2. just show t

Re: [fw-general] Using Zend_Auth credential

2007-09-28 Thread Daniel Rossi
You might need to extend DB_Table and add an extra option. Is there such an API that already uses this and wraps with acls for groups / rights / permissions from a db ? On 28/09/2007, at 7:19 PM, Michael Raymond wrote: Hi all, How can I achieve to authenticate users only if the user match

RE: [fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Andi Gutmans
Not sure what the answer is re: Zend_Db. Maybe Bill can answer when he's back. While MySQLi today is considered more mature, as Zend_Db is built on the PDO interface there may be advantages to using pdo_mysql. Also, MySQL has committed to PDO which means that any shortcomings will be addressed. Yo

[fw-general] Validation for multi-column unique constraints

2007-09-28 Thread lauren49
Hi, I understand that checking for a value's uniqueness against a db table within in application is not a stable method and should not be relied upon but the exception message thrown by a save attempt when a value is not unique really doesn't make much sense to the user Caught exception: Zend_Db

[fw-general] Ldap authentication

2007-09-28 Thread Kexiao Liao
I try to use LDAP (Active Directory) Adapter to do the authentication against Microsoft AD server using Ldap.php from the Zend Framework web site. Is there any more information regarding how to use Ldap to bind to the AD server? -- View this message in context: http://www.nabble.com/Ldap-authent

Re: [fw-general] Creating a admin 'page' using ZF's MVC

2007-09-28 Thread robert mena
Hi till, Thanks for the reply. I'll take that under consideration. Probably in order to have some sort of standard I will probably define that all admin actions for a given 'module' will be put under a AdminSomethingController and put in init the Zend_Auth/Acl to control the access to authentic

[fw-general] Return value of insert method of Zend_Db_Table_Abstract

2007-09-28 Thread Kexiao Liao
The return value of insert method of Zend_Db_Table_Abstract is a The primary key of the row inserted. However When I try to access the return value, it is just null, the new row has been successfully insert into table. Is there anyway we can get the primary key of this newly inserted row? Thanks

[fw-general] howto save data after Zend_Filter_Input::isValid()?

2007-09-28 Thread Aljosa Mohorovic
so i have model (Zend_Db_Table_Row) and i pass data from model to Zend_Filter_Input ($model->toArray()) and after i check if $input->isValid() returns true i would like to save model with data from Zend_Filter_Input because filters and validators are already applied. Zend_Filter_Input has setData(

Re: [fw-general] Zend_Currency Documentation

2007-09-28 Thread Darby Felton
Hi, I'll remedy this oversight today. Thanks for the report! Best regards, Darby Kamil wrote: > There is no link in menu. >

Re: [fw-general] form generation functionality

2007-09-28 Thread Matthew Weier O'Phinney
Jurriën - -- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote (on Friday, 28 September 2007, 03:28 PM +0200): > My Form proposal is a bit out of date (I need to find some time and > patience to update it ;), but the general idea I'm describing is > still valid. I've been reading through all thr

Re: [fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Josh Team
I personally like mysqli. On 9/28/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Aljosa Mohorovic <[EMAIL PROTECTED]> wrote > (on Friday, 28 September 2007, 02:39 PM +0200): > > is there any difference in using MYSQLI or PDO_MYSQL? > > Yes. There are some methods that are specifically

Re: [fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Matthew Weier O'Phinney
-- Aljosa Mohorovic <[EMAIL PROTECTED]> wrote (on Friday, 28 September 2007, 02:39 PM +0200): > is there any difference in using MYSQLI or PDO_MYSQL? Yes. There are some methods that are specifically implemented in mysqli that are not available to pdo_mysql (multi_query comes to mind). That said,

[fw-general] Controllers with no view object

2007-09-28 Thread redphantm
I want to make a model of a Tag table in a database. I want to be able to add tags to many different other object such as Bugs or comments or products or anything like that, but still have only one controller with the create, remove, update, and delete actions. This would mean sticking to the Don'

Re: [fw-general] Zend_Currency Documentation

2007-09-28 Thread Kamil
There is no link in menu.

Re: [fw-general] Zend_Currency Documentation

2007-09-28 Thread Thomas Weidner
Try this one... http://framework.zend.com/manual/en/zend.currency.html Greetings Thomas I18N Team Leader - Original Message - From: "holografix ." <[EMAIL PROTECTED]> To: Sent: Friday, September 28, 2007 3:16 PM Subject: [fw-general] Zend_Currency Documentation Hi Am I missing so

Re: [fw-general] form generation functionality

2007-09-28 Thread Jurriën Stutterheim
Hi Matthew, My Form proposal is a bit out of date (I need to find some time and patience to update it ;), but the general idea I'm describing is still valid. To get a better picture of how I invisioned Zend_Form you could check out my implementation from it's SVN: http://tools.assembla.c

[fw-general] Zend_Currency Documentation

2007-09-28 Thread holografix .
Hi Am I missing something ? I can't find any documentation for Zend_Currency, recently promoted to core. Cheers holo

Re: [fw-general] Using Zend_Auth credential

2007-09-28 Thread Niko Sams
try this: $authAdapter->setCredentialTreatment('? AND status=1') however you should save your password encypted, and use something like this: $authAdapter->setCredentialTreatment('PASSWORD(?) AND status=1') niko Am Freitag, 28. September 2007 schrieb Michael Raymond: > Hi all, > > How can I ac

[fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Aljosa Mohorovic
is there any difference in using MYSQLI or PDO_MYSQL? Aljosa

[fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Aljosa Mohorovic
is there any difference in using MYSQLI or PDO_MYSQL? Aljosa

Re: [fw-general] PHP version question

2007-09-28 Thread Marco
> > Does anyone use ZF on RHEL5 using its standard PHP 5.1 package? If so does > ZF work fully? AFAIK the min PHP version for ZF is 5.1.4, RHEL5 comes with 5.1.6 as default so should work without any issues as long as you have the extensions for PDO etc enabled if you require DB access. Regards

[fw-general] PHP version question

2007-09-28 Thread Keith Pope
Hi, Does anyone use ZF on RHEL5 using its standard PHP 5.1 package? If so does ZF work fully? Keith Pope Web Developer -- allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, Hereford, HR1 3SE. Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88. Telepho

Re: [fw-general] getRequest

2007-09-28 Thread Matthew Weier O'Phinney
-- Waigani <[EMAIL PROTECTED]> wrote (on Thursday, 27 September 2007, 04:10 PM -0700): > $request = Zend_Controller_Front::getInstance()->getRequest(); > print_r($request); > > in the bootstrap index.php prints nothing. Because it's not yet instantiated. $front->dispatch() creates a request ob

Re: [fw-general] Adding params to the Request

2007-09-28 Thread Matthew Weier O'Phinney
-- Ralph Schindler <[EMAIL PROTECTED]> wrote (on Thursday, 27 September 2007, 03:25 PM -0500): > Actually, I did find that Rowset->toArray() does indeed return a > reference to a protected member of the rowset object instead of an > array. I marked that as a bug for rowset. > > http://framework.z

[fw-general] Using Zend_Auth credential

2007-09-28 Thread Michael Raymond
Hi all, How can I achieve to authenticate users only if the user match their password and the status is active? (in the user table status field value 1=active; 0=inactive) AuthController $authAdapter->setTableName($config->system->userTableName); $authAdapter->setId

Re: [fw-general] Using a complete HTML Template

2007-09-28 Thread Martin Carpentier
P­ádraic, Matthew, Thank you both for your excellent explanation. It's a lot clearer to me now. All that's left to do is try it out and see how to implement both in my application. I'll report back the results. Thanks, Martin On 9/26/07, Pádraic Brady <[EMAIL PROTECTED]> wrote: > > Hi Martin >

[fw-general] Zend Framework templating

2007-09-28 Thread ApAdrian
Hi all. I am new to Zend Framework and i have some questions that I could not find any answer by google-ing. For example: i have a regular category->products website. In the index controller i have just an index method that will list some welcome messages etc. I also have a controller named prod

Re: [fw-general] Forward to another module doesn't work

2007-09-28 Thread debussy007
It's getting worse with the time. The day before yesterday I could not forward to module but I could forward to action/controller But sicne yesterday I cannot even forward to a controller, only action !! Instead of telling me that it doesn't find the action in the current cotnroller, the error