Re: [fw-general] Problem with Pagination Control

2009-02-25 Thread anz_nabble
GREAT ! Your suggestion helped me to fix the problem. Its working perfectly. Thank you so much... -- View this message in context: http://www.nabble.com/Problem-with-Pagination-Control-tp22202649p22218030.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread zelnaga
Ralph Schindler-2 wrote: > > How much work on top of bcmath and the pecl/big_int is this kind of > feature. > Also, out of curiosity- what are the use cases for big int? > > I also presume that the implementation would have to take 64bit machines > into account? When you say use case, do you

Re: [fw-general] Accessing Zend Framework from the Command Line

2009-02-25 Thread max_ent
Hi Ralph You were absolutely right; I had the wrong ini values in my php cli. It seems to work now. Thanks very much! I will keep my eyes peeled for the Zend_Application - that would be very useful indeed. -max Ralph Schindler-2 wrote: > > First thing to check, ensure your PHP executable (php

Re: [fw-general] How to rename the uploaded file

2009-02-25 Thread Ehask71
Sorry forgot to give you the constants define('_IMGSOURCE_','/home/titslike/public_html/tmp/'); define('_THUMBSOURCE_','/home/titslike/public_html/tmp/thumb/'); You need to use full path that was the key Eric Haskins PHP Programmer -- View this message in context: http://www.nabble.com/How-to

Re: [fw-general] Zend_Config_Xml Encoding Issue

2009-02-25 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did you probably save the xml file with UTF-8 encoding? ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : ::..

Re: [fw-general] How to rename the uploaded file

2009-02-25 Thread Ehask71
Mantasgl wrote: > > $element = new Zend_Form_Element_File('g_nuotrauka'); > $element->setLabel('Nuotrauka:') > ->setDestination(APPLICATION_PATH.'\images') > ->addValidator('Count', false, 1) > ->addValidator('Size

[fw-general] Re: Issue ZF-3379

2009-02-25 Thread Colin Guthrie
'Twas brillig, and Giorgio Sironi at 25/02/09 16:35 did gyre and gimble: Personally, I import zf at every release and tag it in subversion repository of my project; so before a new import I can diff my changes and reapply them after the import. I also leave patches on Jira so anyone who encount

Re: [fw-general] Loading a dojo form in a div using xhrGet

2009-02-25 Thread Matthew Weier O'Phinney
-- mapes911 wrote (on Wednesday, 25 February 2009, 02:08 PM -0800): > I have created a form that extends Zend_Dojo_Form. I am able to get it to > show up by creating a controller and an action. > > Here's my code for the controller UserController.php > Now, what I'm trying to do is use an xh

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread Thomas Weidner
I think we don't understand each other. I never said that Locale_Math is a 100% clone of BCMath. And I noted that there IS a limitation on this approach. It is even documented in the manual. And the limitation fits the needs of the components which make use of it. When this is not the case for y

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread zelnaga
I think you've misunderstood my post, so I'll start again. >From Zend_Locale_Math_PhpMath::Pow(): $result = pow($op1, $op2); pow() is a function built into PHP. It does not work on "BigIntegers" of infinite precision. This is in contrast to bcmath. A demonstration: \r\n"; var_dump($b); ?> W

[fw-general] Loading a dojo form in a div using xhrGet

2009-02-25 Thread mapes911
Hi all, I have created a form that extends Zend_Dojo_Form. I am able to get it to show up by creating a controller and an action. Here's my code for the controller UserController.php Code: public function editinfoAction() { $form = new forms_EditInfoForm()

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread Thomas Weidner
See my notes below Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "zelnaga" To: Sent: Wednesday, February 25, 2009 9:37 PM Subject: Re: [fw-general] pure-PHP BigInteger support thomasW wrote: There is already

Re: [fw-general] Accessing Zend Framework from the Command Line

2009-02-25 Thread Ralph Schindler
First thing to check, ensure your PHP executable (php cli) is both using the same ini values as well as the same extensions as the php apache sapi. That might be the reason why you have a mysql driver available in php for apache but not in the php for cli. The other issues you are describing are

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread zelnaga
thomasW wrote: > > There is already a pure PHP solution within ZF which can be used. > > Zend_Locale_Math is a bcmath clone which does automatically use BCMath and > when it's not available switch to pure PHP implementation. For examples on > usage look at Zend_Locale_Format or Zend_Measure_A

Re: [fw-general] Re: Amf ZF-5388

2009-02-25 Thread Matthew Weier O'Phinney
-- Tobias Gies wrote (on Wednesday, 25 February 2009, 09:09 PM +0100): > > Unfortunately, no. I've looked at the potential merge, and unfortunately > > it's also tied to new features scheduled for 1.8; I'm finding it > > difficult to get a working patch that addresses just the 1.7 featureset. > >

Re: [fw-general] Re: Amf ZF-5388

2009-02-25 Thread Tobias Gies
Hi Matthew, > Unfortunately, no. I've looked at the potential merge, and unfortunately > it's also tied to new features scheduled for 1.8; I'm finding it > difficult to get a working patch that addresses just the 1.7 featureset. So long story short, the patch will be in 1.8 since the release bran

[fw-general] Zend_Config_Xml Encoding Issue

2009-02-25 Thread Kostyantyn Shakhov
My view templates are in ISO-8859-1. I need to display a value from the xml config file on the page. The file is in the same enoding: . The value contains French é character. On the page it's displayed wrong as é and just fine if I change encoding to UTF-8 in the browser. Thus, it looks like Zend_

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread Thomas Weidner
There is already a pure PHP solution within ZF which can be used. Zend_Locale_Math is a bcmath clone which does automatically use BCMath and when it's not available switch to pure PHP implementation. For examples on usage look at Zend_Locale_Format or Zend_Measure_Abstract. Greetings Thomas W

[fw-general] Accessing Zend Framework from the Command Line

2009-02-25 Thread max_ent
Hi everyone I am trying to write command-line accessible scripts that have access to my Zend Framework model classes. Some of these model classes make database calls. The end goal is to invoke a CRON job, which will record user data at regular intervals I have followed the advice present in many

Re: [fw-general] pure-PHP BigInteger support

2009-02-25 Thread zelnaga
Ralph Schindler-2 wrote: > > How much work on top of bcmath and the pecl/big_int is this kind of > feature. I guess you could look at the code to figure that out. > Also, out of curiosity- what are the use cases for big int? AFAIK, big int is wholly inferior to gmp which the library uses, if a

Re: [fw-general] Acl Questions

2009-02-25 Thread Ehask71
David Mintz-2 wrote: > > OK, then here's a follow-up question. > > I imagine you want the members to be able to edit their own profiles, not > anyone else's. Do you write a conditional ACL rule with an assertion, or > check if ( it's their profile) { allow() } ? > Hey David, In all my ap

RE: [fw-general] Zend Framework 1.8

2009-02-25 Thread Wil Sinclair
I’m probably the most qualified to address this question, so here’s my chime in. We still have some work to do with Zend_Tool and Zend_Application, as well as giving more time to contributors to finish proposals that we’ve given recommendations on in the past few weeks, so we’re simply not prepa

[fw-general] Re: Amf ZF-5388

2009-02-25 Thread Matthew Weier O'Phinney
-- Tobias Gies wrote (on Wednesday, 25 February 2009, 07:00 PM +0100): > So the patch still isn't included in ZF 1.7.5, you checked that? > > Wade, I thought you had merged it. I'll CC the Zenders for help in > dealing with this situation. I would merge the patch, but as I already > stated, there

Re: [fw-general] User uploads file bigger than what's allowed in php.ini, can it be caught?

2009-02-25 Thread Thomas Weidner
You have 3 possible solutions: 1) Use trunk release 2) Wait for the next minor release which will be 1.8 3) Make a workaround yourself by looking at the trunk code and integrate it into your application To note: This is a PHP only problem due to the fact that PHP provides an empty $_FILES arr

[fw-general] Re: Amf ZF-5388

2009-02-25 Thread Tobias Gies
So the patch still isn't included in ZF 1.7.5, you checked that? Wade, I thought you had merged it. I'll CC the Zenders for help in dealing with this situation. I would merge the patch, but as I already stated, there is a conflict upon merging that I do not feel confident to resolve. So Matthew,

Re: [fw-general] Issue ZF-3379

2009-02-25 Thread Matthew Weier O'Phinney
-- Sylvain Filteau wrote (on Wednesday, 25 February 2009, 11:03 AM -0500): > I have questions about the patching/debugging/commit workflow of ZF, > specifically about the issue ZF-3379. I found this bug in the beginning of > february and I really want it to be fixed so I analyzed this and developp

Re: [fw-general] Issue ZF-3379

2009-02-25 Thread Giorgio Sironi
2009/2/25 Sylvain Filteau > What do I need to do with my patch other than post it in the issue tracker > if I want it to be in the next version or at least just be reviewed ? > As you know there's so much work at Zend.. However, with a so high priority (the unique blocker in Zend_Db), I think yo

Re: [fw-general] User uploads file bigger than what's allowed in php.ini, can it be caught?

2009-02-25 Thread bytte
Is anyone else having similar problems? I've spend a few hours on this issue already and couldn't come up with a decent solution. -- View this message in context: http://www.nabble.com/User-uploads-file-bigger-than-what%27s-allowed-in-php.ini%2C-can-it-be-caught--tp21936346p22206576.html Sent f

Re: [fw-general] Alternate layouts by module

2009-02-25 Thread jefffederman
Robin, I had the same issue as the original poster and found your plugin solution helpful. However, when using AjaxContext, the plugin had the effect of re-enabling the layouts disabled by AjaxContext, so instead of writing the code to the postDispatch method, I used preDispatch and it seems to b

[fw-general] Issue ZF-3379

2009-02-25 Thread Sylvain Filteau
I have questions about the patching/debugging/commit workflow of ZF, specifically about the issue ZF-3379. I found this bug in the beginning of february and I really want it to be fixed so I analyzed this and developped a patch that pass the current

Re: [fw-general] How to rename the uploaded file

2009-02-25 Thread Mantasgl
thx guys for help ;) -- View this message in context: http://www.nabble.com/How-to-rename-the-uploaded-file-tp22203609p22204675.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Acl Questions

2009-02-25 Thread David Mintz
On Wed, Feb 25, 2009 at 12:36 AM, Ehask71 wrote: > > Ok I think I got it :) this is in my App/Controller/Plugin/Acl.php > OK, then here's a follow-up question. I imagine you want the members to be able to edit their own profiles, not anyone else's. Do you write a conditional ACL rule with an

Re: [fw-general] How to rename the uploaded file

2009-02-25 Thread Lucas Corbeaux
Not really the topic, but if you want your filenames to be unique, time() is quite not enough... I use something like that instead : $filepath = sha1(uniqid(rand(), true)); Mantasgl a écrit : hi, I'm trying to rename the uploaded file, but nothing works for me. Do i need to rename the file bef

RE: [fw-general] How to rename the uploaded file

2009-02-25 Thread Guillaume BABIK
Hi, In your action that receive your form : $form = new Your_Form(); $formData = $this->_request->getPost(); if ($form->isValid($formData)) { // Uploading File if ($form->g_nuotrauka->receive()) { $locationFile = $form->g_nuotrauka->getFileName();

[fw-general] How to rename the uploaded file

2009-02-25 Thread Mantasgl
hi, I'm trying to rename the uploaded file, but nothing works for me. Do i need to rename the file before or after upload?. I try to change the name to "time().jpg", to keep file names unique. After that I want to store file name in the mysql DB. I'm using zf 1.7.4 My source: $element = new Zend

Re: [fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Lucas Corbeaux
Damn ! Really sorry for that, I recieved an error mail each time, and so i thought the mailing list was a little busy... Next time i'll check on the archives if my post was correctly sent before trying again... Matthew Weier O'Phinney a écrit : Lucas -- Any particular reason you posted thi

Re: [fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Matthew Weier O'Phinney
Lucas -- Any particular reason you posted this 4 times with 4 different subject lines? ;) -- Lucas Corbeaux wrote (on Wednesday, 25 February 2009, 02:25 PM +0100): > As I'm working on a full Ajax Website (by "full Ajax" I mean that load > only once a layout and refresh only the main part), I had

Re: [fw-general] Zend Framework 1.8

2009-02-25 Thread Matthew Weier O'Phinney
-- armandop wrote (on Tuesday, 24 February 2009, 10:39 PM -0800): > Does anyone know when 1.8 is due out or possibly a candidate release? We'll likely have a preview/alpha by end of March, with final following not long after. However, we have not set a concrete date at this time. -- Matthew Wei

Re: [fw-general] Problem with Pagination Control

2009-02-25 Thread Eugen_cro
you are missing "/*" in your route: $route = new Zend_Controller_Router_Route(':lang/:controller/:action/*', array('controller'=>'index',

[fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Lucas Corbeaux
Hi, As I'm working on a full Ajax Website (by "full Ajax" I mean that load only once a layout and refresh only the main part), I had some difficulties to make them dynamic and keep a design rule of "no javascript in my views". As most Javascript Framework works well for "inline" script tags by e

[fw-general] Problem with Pagination Control

2009-02-25 Thread anz_nabble
Hi, I am a beginner in zend frame work. I am dealing with some problems to the pagination control. I have Controller for listing some data. I had used the Zend_Paginator for selecting pages. In this system, we can switch the site language according to the the choice. For this purpose I used th

[fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Lucas Corbeaux
Hi, As I'm working on a full Ajax Website (by "full Ajax" I mean that load only once a layout and refresh only the main part), I had some difficulties to make them dynamic and keep a design rule of "no javascript in my views". As most Javascript Framework works well for "inline" script tags by e

[fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Lucas Corbeaux
Hi, As I'm working on a full Ajax Website (by "full Ajax" I mean that load only once a layout and refresh only the main part), I had some difficulties to make them dynamic and keep a design rule of "no javascript in my views". As most Javascript Framework works well for "inline" script tags by

[fw-general] Zend_View_Helper_AjaxInlineScript: a (very) little proposal

2009-02-25 Thread Lucas Corbeaux
Hi, As I'm working on a full Ajax Website (by "full Ajax" I mean that load only once a layout and refresh only the main part), I had some difficulties to make them dynamic and keep a design rule of "no javascript in my views". As most Javascript Framework works well for "inline" script tags