RE: [fw-general] pdf manual

2007-04-13 Thread Bill Karwin
We don't render the DocBook manual to PDF yet.  I would like to do this,
but currently there are a lot of tasks that are higher priority.
 
I recall a few weeks ago another community user posted a PDF render of
the DocBook manual as of ZF 0.9.0.
http://www.nabble.com/PDF-manual-tf3426887s16154.html#a9551627
 
Regards,
Bill Karwin




From: Marcelo Araujo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 12, 2007 8:06 PM
To: [EMAIL PROTECTED]
Subject: [fw-general] pdf manual


Hello,

Is there a pdf manual for the zend framework available at the
official website?

Regards,

--Marcelo




RE: [fw-general] Fluent interface answer

2007-04-13 Thread Bill Karwin
It is in the queue:
http://framework.zend.com/issues/browse/ZF-1131
 
Regards,
Bill Karwin




From: Yann Nave [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 6:27 AM
To: Zend Framework General
Subject: Re: [fw-general] Fluent interface answer


Ok thanks, not a matter.
Why not make it returns object ?


On 4/13/07, Alexander Netkachev <[EMAIL PROTECTED] >
wrote: 

Hi,

setFromArray does not returns object. You can use
$annonce_test = $annonce->fetchNew(); 
$annonce_test->setFromArray($_POST['annonce']);

Sincerely, 



On 4/13/07, Yann Nave <[EMAIL PROTECTED]> wrote: 

Hye everybody,

Having this code with ZF 0.0.2beta

$annonce = new annonce();
$annonce_test =
$annonce->fetchNew()->setFromArray($_POST['annonce']);
Zend_Debug::dump($annonce); 
Zend_Debug::dump($annonce_test);

Zend_Debug::dump($annonce);  print my row object
OK
Zend_Debug::dump($annonces);   print NULL... is
it ok ?

Why $annonce_test isn't Row object like $annonce
? 

Thanks
-- 
Yannux
http://blog.onbebop.net 




-- 
Alexander
http://www.alexatnet.com/ - Blog and CMS created with
Zend Framework and Ajax. 




-- 
Yannux
http://blog.onbebop.net 



Re: [fw-general] Acl Zend_Acl_Assert_Interface not working using ZF Beta 0.9.2

2007-04-13 Thread Darby Felton
Hi Jeunejean,

I'm happy to hear that you have solved the issue you had encountered. :)

How to get all allowed resources for a role? Currently, there is no
support in Zend_Acl to answer such a query.

There is more thinking to be done, since the question of listing all
resources to which a role is allowed is incomplete. When privileges are
not in use, the question makes sense. But when privileges are in use,
the question is more complicated because a role may be allowed some
privileges upon a resource but denied others.

Please feel free to file a JIRA issue with the feature request:

http://framework.zend.com/issues/secure/CreateIssue!default.jspa

In the meantime, if you should feel so inclined, you can extend the
Zend_Acl class, adding the method that provides the functionality you
desire.

Best regards,
Darby


Jeunejean Pierre wrote:
> Sorry, I found my mistake. It seems that I used Acl the wrong way ?!
> 
> I had, in my Acl implementation :
>  $this->allow('member', 'lu.ola.Business');
> $this->allow('member', 'lu.ola.Business', 'edit', new
> HyaAclMemberAssertion($auth));
> ?>
> So the first has priority on the second (which makes sense ?!)
> so I changed it to:
>  $this->deny('member', 'lu.ola.Business');
> $this->allow('member', 'lu.ola.Business', 'edit', new
> HyaAclMemberAssertion($auth));
> ?>
> 
> Yet working but then it does not solve all my authentication  concerns :-)
> Do you know a way to get all  allowed resources  for  a role  ?
> 
> Thanks a lot, Pierre
> 
> Darby Felton wrote:
>> Hi Jeunejean,
>>
>> It's possible that you have found a bug, but without additional
>> information it is impossible for me to say for certain.
>>
>> Zend_Acl is unit tested pretty well, including assertions, but I very
>> well may have missed something, too.
>>
>> Would you please post the entire set of relevant code? This would
>> include at least the addition of Roles and Resources, as well as the
>> specification of rules. Additionally, a var_dump() of the Zend_Acl
>> object should help me to help you solve this issue.
>>
>> Best regards,
>> Darby
>>
>> Jeunejean Pierre wrote:
>>  
>>> Hi dears,
>>>
>>> I have implemented authentication, as described on ZF tutorial completed
>>> by informations found on this mailing list.
>>> Everything work fine when not using assertion:
>>>
>>> class HyaAclMemberAssertion implements Zend_Acl_Assert_Interface {
>>>
>>>public function __construct(Zend_Auth $auth) { //Some code was here}
>>>
>>>public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role =
>>> null,
>>>Zend_Acl_Resource_Interface $resource = null, $privilege = null)
>>>{
>>>  //To make it very simple, return always false
>>>  return false;
>>> }
>>>
>>> class HyaAcl extends Zend_Acl {
>>>
>>>//This is working fine, edit privilege on lu.ola.Business is deny
>>>$this->deny('member', 'lu.ola.Business', 'edit');
>>>//This is not working, edit privilege on lu.ola.Business is allow
>>> even if a HyaAclMemberAssertion instance always return false
>>>$this->allow('member', 'lu.ola.Business', 'edit', new
>>> HyaAclMemberAssertion($auth));
>>> }
>>>
>>> Am I missing something ?!
>>>
>>> TIA for your help,
>>>
>>> 
>>
>>
>>   
> 
> 


Re: [fw-general] Acl Zend_Acl_Assert_Interface not working using ZF Beta 0.9.2

2007-04-13 Thread Jeunejean Pierre

Sorry, I found my mistake. It seems that I used Acl the wrong way ?!

I had, in my Acl implementation :
allow('member', 'lu.ola.Business');
$this->allow('member', 'lu.ola.Business', 'edit', new 
HyaAclMemberAssertion($auth));

?>
So the first has priority on the second (which makes sense ?!)
so I changed it to:
deny('member', 'lu.ola.Business');
$this->allow('member', 'lu.ola.Business', 'edit', new 
HyaAclMemberAssertion($auth));

?>

Yet working but then it does not solve all my authentication  concerns :-)
Do you know a way to get all  allowed resources  for  a role  ?

Thanks a lot, Pierre

Darby Felton wrote:

Hi Jeunejean,

It's possible that you have found a bug, but without additional
information it is impossible for me to say for certain.

Zend_Acl is unit tested pretty well, including assertions, but I very
well may have missed something, too.

Would you please post the entire set of relevant code? This would
include at least the addition of Roles and Resources, as well as the
specification of rules. Additionally, a var_dump() of the Zend_Acl
object should help me to help you solve this issue.

Best regards,
Darby

Jeunejean Pierre wrote:
  

Hi dears,

I have implemented authentication, as described on ZF tutorial completed
by informations found on this mailing list.
Everything work fine when not using assertion:

class HyaAclMemberAssertion implements Zend_Acl_Assert_Interface {

   public function __construct(Zend_Auth $auth) { //Some code was here}

   public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role =
null,
   Zend_Acl_Resource_Interface $resource = null, $privilege = null)
   {
 //To make it very simple, return always false
 return false;
}

class HyaAcl extends Zend_Acl {

   //This is working fine, edit privilege on lu.ola.Business is deny
   $this->deny('member', 'lu.ola.Business', 'edit');
   //This is not working, edit privilege on lu.ola.Business is allow
even if a HyaAclMemberAssertion instance always return false
   $this->allow('member', 'lu.ola.Business', 'edit', new
HyaAclMemberAssertion($auth));
}

Am I missing something ?!

TIA for your help,





  



--
Pierre Jeunejean
gérant

[EMAIL PROTECTED]
www.adnexus.be

Wirtzfeld 3a, B-4760 Büllingen
Tel: 0478556586

A D N E X U S
Solutions informatiques Internet en sous-traitance pour les agences 
publicitaires.
Solutions informatiques de gestion sur mesure pour les entreprises.





[fw-general] Zend_Validate_Array - Proposal

2007-04-13 Thread Boris

Hi

I have created Zend_Validate_Array proposal few weeks ago and I have
not received much feedback. So maybe many of you do not know about
this proposal as I probably do not know about similar proposals.
Anyway I am very interested what other people think about it and in
what direction should further development go. So if some of you have
time and will please check this proposal and please write your
comments.

Zend_Validate_Array is just 'high' level validator for array ($_GET
and $_POST). It uses Zend_Filters and Zend_Validate classes for
validation of array values. You also have ability to specify custom
error messages which can be sent directly to end user.

Url of proposal:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Validate_Array+Proposal

In attachments tab you can find working (probably there are few bugs)
code of first implementation.

Thanks

Boris.


Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Martel Valgoerad

Markus Wolff wrote:


Hey there,
am I the only one getting almost every mail multiple times? 


I'm getting duplicate mails from fw-svn list. And only few mails are getting 
duplicated. The problem is, those are the mails that are bigger than 5 MB. And 
they get duplicated like 5-6 times in a course of a day for a week or so.


I don't know where the problem lies. It may be a problem with listserv, it may 
be the Zend's MTA or even my ISPs. But since I have created a server side 
filter deleting any big fw-svn mail, it's not "my" problem anymore. And I just 
wouldn't want to waste time on such a small nuissance ;)


No other duplicates than that. You're sure you're not subscribed to fw-all and 
all the other lists simultaneously? To echo after Andries.



  Markus


--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] | 
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell


Re: [fw-general] Acl Zend_Acl_Assert_Interface not working using ZF Beta 0.9.2

2007-04-13 Thread Darby Felton
Hi Jeunejean,

It's possible that you have found a bug, but without additional
information it is impossible for me to say for certain.

Zend_Acl is unit tested pretty well, including assertions, but I very
well may have missed something, too.

Would you please post the entire set of relevant code? This would
include at least the addition of Roles and Resources, as well as the
specification of rules. Additionally, a var_dump() of the Zend_Acl
object should help me to help you solve this issue.

Best regards,
Darby

Jeunejean Pierre wrote:
> Hi dears,
> 
> I have implemented authentication, as described on ZF tutorial completed
> by informations found on this mailing list.
> Everything work fine when not using assertion:
> 
> class HyaAclMemberAssertion implements Zend_Acl_Assert_Interface {
> 
>public function __construct(Zend_Auth $auth) { //Some code was here}
> 
>public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role =
> null,
>Zend_Acl_Resource_Interface $resource = null, $privilege = null)
>{
>  //To make it very simple, return always false
>  return false;
> }
> 
> class HyaAcl extends Zend_Acl {
> 
>//This is working fine, edit privilege on lu.ola.Business is deny
>$this->deny('member', 'lu.ola.Business', 'edit');
>//This is not working, edit privilege on lu.ola.Business is allow
> even if a HyaAclMemberAssertion instance always return false
>$this->allow('member', 'lu.ola.Business', 'edit', new
> HyaAclMemberAssertion($auth));
> }
> 
> Am I missing something ?!
> 
> TIA for your help,
> 


[fw-general] Acl Zend_Acl_Assert_Interface not working using ZF Beta 0.9.2

2007-04-13 Thread Jeunejean Pierre

Hi dears,

I have implemented authentication, as described on ZF tutorial completed 
by informations found on this mailing list.

Everything work fine when not using assertion:

class HyaAclMemberAssertion implements Zend_Acl_Assert_Interface {

   public function __construct(Zend_Auth $auth) { //Some code was here}

   public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role 
= null,

   Zend_Acl_Resource_Interface $resource = null, $privilege = null)
   {
 //To make it very simple, return always false
 return false;
}

class HyaAcl extends Zend_Acl {

   //This is working fine, edit privilege on lu.ola.Business is deny
   $this->deny('member', 'lu.ola.Business', 'edit');
   //This is not working, edit privilege on lu.ola.Business is allow 
even if a HyaAclMemberAssertion instance always return false
   $this->allow('member', 'lu.ola.Business', 'edit', new 
HyaAclMemberAssertion($auth));

}

Am I missing something ?!

TIA for your help,

--
Pierre Jeunejean
gérant

[EMAIL PROTECTED]
www.adnexus.be

Wirtzfeld 3a, B-4760 Büllingen
Tel: 0478556586

A D N E X U S
Solutions informatiques Internet en sous-traitance pour les agences 
publicitaires.
Solutions informatiques de gestion sur mesure pour les entreprises.





Re: [fw-general] Fluent interface answer

2007-04-13 Thread Yann Nave

Ok thanks, not a matter.
Why not make it returns object ?

On 4/13/07, Alexander Netkachev <[EMAIL PROTECTED]> wrote:


Hi,

setFromArray does not returns object. You can use
$annonce_test = $annonce->fetchNew();
$annonce_test->setFromArray($_POST['annonce']);

Sincerely,

On 4/13/07, Yann Nave <[EMAIL PROTECTED]> wrote:
>
> Hye everybody,
>
> Having this code with ZF 0.0.2beta
>
> $annonce = new annonce();
> $annonce_test =
> $annonce->fetchNew()->setFromArray($_POST['annonce']);
> Zend_Debug::dump($annonce);
> Zend_Debug::dump($annonce_test);
>
> Zend_Debug::dump($annonce);  print my row object OK
> Zend_Debug::dump($annonces);   print NULL... is it ok ?
>
> Why $annonce_test isn't Row object like $annonce  ?
>
> Thanks
> --
> Yannux
> http://blog.onbebop.net




--
Alexander
http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and
Ajax.





--
Yannux
http://blog.onbebop.net


Re: [fw-general] Problem with connection to DB

2007-04-13 Thread harvey28

I solved this problem, I've done it like this:

$params = array ('unix_socket' => ':/tmp/mysql50.sock',
 'username' => 'my_username',
 'password' => 'my_pass'
 'dbname'   => 'my_db_name');




harvey28 wrote:
> 
> Hi, can somebody help me with this problem? I am trying to connect to
> MySql DB like this :
> 
> $params = array ('host' => ':/tmp/mysql50.sock',
>'username' => 'my_username',
>'password' => 'my_pass'
>'dbname'   => 'my_db_name');
> 
> $db = Zend_Db::factory('PDO_MYSQL', $params);
> 
> And apache returns exeption like this :
> 
> Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message
> 'SQLSTATE[HY000] [2005] Unknown MySQL server host ':/tmp/mysql50.sock'
> (3)' in my_path/lib/Zend/Db/Adapter/Pdo/Abstract.php:102 Stack trace: #0
> my_path/lib/Zend/Db/Adapter/Abstract.php(143):
> Zend_Db_Adapter_Pdo_Abstract->_connect() #1 
> 
> some other stuff
> 
> thrown in /lib/Zend/Db/Adapter/Pdo/Abstract.php on line 102
> 
> connection using mysql_connect() works OK. 
> Where should be problem? thanks for all answers
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-connection-to-DB-tf3559714s16154.html#a9975848
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Fluent interface answer

2007-04-13 Thread Alexander Netkachev

Hi,

setFromArray does not returns object. You can use
$annonce_test = $annonce->fetchNew();
$annonce_test->setFromArray($_POST['annonce']);

Sincerely,

On 4/13/07, Yann Nave <[EMAIL PROTECTED]> wrote:


Hye everybody,

Having this code with ZF 0.0.2beta

$annonce = new annonce();
$annonce_test =
$annonce->fetchNew()->setFromArray($_POST['annonce']);
Zend_Debug::dump($annonce);
Zend_Debug::dump($annonce_test);

Zend_Debug::dump($annonce);  print my row object OK
Zend_Debug::dump($annonces);   print NULL... is it ok ?

Why $annonce_test isn't Row object like $annonce  ?

Thanks
--
Yannux
http://blog.onbebop.net





--
Alexander
http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and
Ajax.


Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Andries Seutens


Markus Wolff schreef:

David Brännlund schrieb:
> Markus Wolff wrote:

Hey there,

am I the only one getting almost every mail multiple times? It's 
been going on for the past two weeks or so I think... I didn't mind 
a lot as long as I got each mail "only" three or four times but 
today, I got some mails more than fifteen times... that's definitely 
way above my pain threshold :-D

>>
> I have this problem as well, and it's been going on for quite some
> time now. It's a bit annoying, but I can live with it. Would be nice
> to know what causes it, though.

Good to know I'm not the only one. I just observed that I'm getting 
duplicates of some mails even quite a while after they were originally 
sent. For example, I deleted the duplicates of Matthew's mail from 
yesterday (sent at 18:18h) this morning, just to receive another 
duplicate of that mail a few minutes ago.


Just while typing this, I also received a third duplicate of my 
original mail regarding this topic. This is really weird.


CU
 Markus




Are you subscribed to fw-all and separate mailing lists too?

--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.


Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Markus Wolff

David Brännlund schrieb:
> Markus Wolff wrote:

Hey there,

am I the only one getting almost every mail multiple times? It's been 
going on for the past two weeks or so I think... I didn't mind a lot 
as long as I got each mail "only" three or four times but today, I got 
some mails more than fifteen times... that's definitely way above my 
pain threshold :-D

>>
> I have this problem as well, and it's been going on for quite some
> time now. It's a bit annoying, but I can live with it. Would be nice
> to know what causes it, though.

Good to know I'm not the only one. I just observed that I'm getting 
duplicates of some mails even quite a while after they were originally 
sent. For example, I deleted the duplicates of Matthew's mail from 
yesterday (sent at 18:18h) this morning, just to receive another 
duplicate of that mail a few minutes ago.


Just while typing this, I also received a third duplicate of my original 
mail regarding this topic. This is really weird.


CU
 Markus


RE: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Michael Raymond
It is working ok for me. A copy for each mail.


Regards,

-Original Message-
From: David Brännlund [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [fw-general] OT: Duplicate mails?

I have this problem as well, and it's been going on for quite some time 
now. It's a bit annoying, but I can live with it. Would be nice to know 
what causes it, though.


David Brännlund
Web & Database Development
COMSOL AB, Sweden

Markus Wolff wrote:
> Hey there,
> 
> am I the only one getting almost every mail multiple times? It's been 
> going on for the past two weeks or so I think... I didn't mind a lot as 
> long as I got each mail "only" three or four times but today, I got some 
> mails more than fifteen times... that's definitely way above my pain 
> threshold :-D
> 
> Everything okay with the list server?
> 
> CU
>  Markus


--- 




Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread David Brännlund
I have this problem as well, and it's been going on for quite some time 
now. It's a bit annoying, but I can live with it. Would be nice to know 
what causes it, though.



David Brännlund
Web & Database Development
COMSOL AB, Sweden

Markus Wolff wrote:

Hey there,

am I the only one getting almost every mail multiple times? It's been 
going on for the past two weeks or so I think... I didn't mind a lot as 
long as I got each mail "only" three or four times but today, I got some 
mails more than fifteen times... that's definitely way above my pain 
threshold :-D


Everything okay with the list server?

CU
 Markus




[fw-general] Fluent interface answer

2007-04-13 Thread Yann Nave

Hye everybody,

Having this code with ZF 0.0.2beta

   $annonce = new annonce();
   $annonce_test =
$annonce->fetchNew()->setFromArray($_POST['annonce']);
   Zend_Debug::dump($annonce);
   Zend_Debug::dump($annonce_test);

Zend_Debug::dump($annonce);  print my row object OK
Zend_Debug::dump($annonces);   print NULL... is it ok ?

Why $annonce_test isn't Row object like $annonce  ?

Thanks
--
Yannux
http://blog.onbebop.net


Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Alexander Netkachev

Hey,

I'm getting only one mail. It seems that everything is Ok.

Sincerely,

On 4/13/07, Markus Wolff <[EMAIL PROTECTED]> wrote:


Hey there,

am I the only one getting almost every mail multiple times? It's been
going on for the past two weeks or so I think... I didn't mind a lot as
long as I got each mail "only" three or four times but today, I got some
mails more than fifteen times... that's definitely way above my pain
threshold :-D

Everything okay with the list server?

CU
  Markus





--
Alexander
http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and
Ajax.


[fw-general] OT: Duplicate mails?

2007-04-13 Thread Markus Wolff

Hey there,

am I the only one getting almost every mail multiple times? It's been 
going on for the past two weeks or so I think... I didn't mind a lot as 
long as I got each mail "only" three or four times but today, I got some 
mails more than fifteen times... that's definitely way above my pain 
threshold :-D


Everything okay with the list server?

CU
 Markus