[fw-general] Zend_Translate for default language

2009-05-11 Thread Саша Стаменковић
Hi. When making Zend_Translate instance new Zend_Translate('gettext', $file), for default language, I don't have po file, so, if I pass null for file, I get error Zend_Translate_Exception: Error opening translation file ''. So, how can I prevent this? Regards, Saša Stamenković

[fw-general] Little things that mean so much

2009-05-14 Thread Саша Стаменковић
Hi. I'm working with zf for a while, and I noticed some things: 1. Many methods and constructors, are poorly documented. Example: Zend_Translate constructor /** * Generates the standard translation object * * @param string $adapter Adapter to use * @param

[fw-general] Error 503 while inserting many records

2009-05-23 Thread Саша Стаменковић
Hi. I have model which extends Zend_Db_Table_Abstract, and I'm inserting more than 1 records in table using Zend_Db_Table_Abstract::insert() in one foreach loop. I get Service Temporarily Unavailable 503 error. I profiled, there is nothing wron with queries. For less than 7000 it works

[fw-general] Setup environment for cronjob

2009-05-23 Thread Саша Стаменковић
Hi to all. I have Zend framework app created by Zend Tool, with default project structure. I use models, and my library, everithing is set up, autoload.. My bootstrap file: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initAutoload() { return new

[fw-general] Zend_Db_Table_Rowset and formSelect view helper

2009-05-24 Thread Саша Стаменковић
Hi. Is there any way to integrate this 2? I have models, and fetchAll is returning Zend_Db_Table_Rowset, it would be nice if i can fill select boxes with this data without foreach in my views. Regards, Saša Stamenković

Re: [fw-general] Bootstrap class resource methods

2009-07-09 Thread Саша Стаменковић
Hi. Try $this-*getInvokeArg*('bootstrap')-getResource('foo'); Check http://www.nabble.com/How-to-get-an-application-resource-inside-a-controller-action-td23728917.html#a23729095 Regards, Saša Stamenković On Thu, Jul 9, 2009 at 3:26 PM, holografix . hologra...@gmail.com wrote: Hi I have

Re: [fw-general] Zend Framework Custom Builds

2009-07-09 Thread Саша Стаменковић
Thats what is written on the website, but try to download and you'll see that there is 22MB, or am I doing sth wrong? Regards, Saša Stamenković 2009/7/9 Christopher Östlund christopher.oestl...@gmail.com The minimal version of ZF is just 4.5MB, is that really too big? On Thu, Jul 9, 2009

Re: [fw-general] Bootstrap class resource methods

2009-07-09 Thread Саша Стаменковић
... Regards, Saša Stamenković On Thu, Jul 9, 2009 at 3:40 PM, holografix . hologra...@gmail.com wrote: Hi Caшa Thank you very much. It was a stupid error in my code. It missed a return $foo in the _initFoo() method. Sorry for this. cheers holo 2009/7/9 Саша Стаменковић umpir...@gmail.com Hi

Re: [fw-general] Zend Framework Custom Builds

2009-07-09 Thread Саша Стаменковић
The case is: You want to implement simple twitter (Zend_Service_Twitter) script or contact form (Zend_Form), so you want target component with dependencies (e.g. autoload, Zend_Http for twitter...) and your script will be installed on clients server, and he will ask : Why your contact form have

Re: [fw-general] Zend Framework Custom Builds

2009-07-09 Thread Саша Стаменковић
-Framework-Packagizer :( Regards, Saša Stamenković 2009/7/9 Саша Стаменковић umpir...@gmail.com The case is: You want to implement simple twitter (Zend_Service_Twitter) script or contact form (Zend_Form), so you want target component with dependencies (e.g. autoload, Zend_Http for twitter

Re: [fw-general] Zend Framework Custom Builds

2009-07-09 Thread Саша Стаменковић
Yes, I know, but I must build package manually :) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 4:11 PM, kamil luznyg...@poczta.onet.pl wrote: Christopher Östlund pisze: The minimal version of ZF is just 4.5MB, is that really too big? On Thu, Jul 9, 2009 at 3:52 PM, umpirsky

Re: [fw-general] Zend Framework Custom Builds

2009-07-10 Thread Саша Стаменковић
Thinking about building custom downloader, which will build download with dependencies, will anyone use it? Maybe this can be added to Zend_Tool and then used on zend website... Regards, Saša Stamenković On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com wrote: Not if you

Re: [fw-general] Module Sharing and framework.zend.com

2009-07-10 Thread Саша Стаменковић
We can create new thread and share zend oriented api. All of us have sth implemented, I have started tr.im API class, extended twitter API class...someone probably have pay-pal e.t.c why not zip and share it right there on mail list? They might not be perfect, but can be used to see way sth is

Re: [fw-general] Zend Framework Custom Builds

2009-07-10 Thread Саша Стаменковић
How do you think we can specify dependencies? Regards, Saša Stamenković On Fri, Jul 10, 2009 at 4:35 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Саша Стаменковић umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): Thinking about building custom downloader, which

Re: [fw-general] Zend Framework Custom Builds

2009-07-10 Thread Саша Стаменковић
10, 2009 at 05:26:59PM +0200, Саша Стаменковић wrote: How do you think we can specify dependencies? Custom builds are best solutions for some reasons. I think we can do some recursive parsing of php files under library and handle the matching require_once entries, can we? The given

Re: [fw-general] Zend Framework Custom Builds

2009-07-10 Thread Саша Стаменковић
would actually take an automated approach first, by scanning the code for markers that identify classes in other packages. This could either by by scanning for class names or, currently, looking for require statements (although those will prob. go away in 2.0). -ralph Саша Стаменковић wrote

Re: [fw-general] Zend Framework Custom Builds

2009-07-11 Thread Саша Стаменковић
, Saša Stamenković On Sat, Jul 11, 2009 at 12:30 AM, till klimp...@gmail.com wrote: On Fri, Jul 10, 2009 at 4:35 PM, Matthew Weier O'Phinneymatt...@zend.com wrote: -- Саша Стаменковић umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): Thinking about building custom downloader

Re: [fw-general] Zend_Service_Twitter - status/tweet ids integer overflow

2009-07-12 Thread Саша Стаменковић
Wow, looks like long should be used instead int, right? Regards, Saša Stamenković On Sun, Jul 12, 2009 at 5:04 PM, Thorsten Suckow-Homberg t...@siteartwork.dewrote: Looking into into the current release (1.8.4), I see that Zend_Service_Twitter does not consider the integer overflow problem

Re: [fw-general] Create an Excel file from the returned table rows

2009-07-14 Thread Саша Стаменковић
Hi. Zend_Db_Table_Abstract::fetchAll() * @return Zend_Db_Table_Rowset_Abstract The row results per the Zend_Db_Adapter fetch mode. So, its Zend_Db_Table_Rowset_Abstract type you get, not an array.You can use Zend_Db_Table_Rowset_Abstract::toArray() if you want an array, or iterate trough

Re: [fw-general] Create an Excel file from the returned table rows

2009-07-14 Thread Саша Стаменковић
O.K. Let's fix your code: //Your $table = new Model_Crescores(); $select = $table-select(); $select-order('cap_no'); $array = $table-fetchAll($select); //Fixed $table = new Model_Crescores(); $select = $table-select(); $select-order('cap_no'); $rowset = $table-fetchAll($select); $array =

Re: [fw-general] Create an Excel file from the returned table rows

2009-07-14 Thread Саша Стаменковић
Just check datatype before use variables, zf is well documented and it's easy to navigate methods and look into docblocks. Regards, Saša Stamenković On Tue, Jul 14, 2009 at 9:45 AM, jigen7 i_love_ji...@yahoo.com wrote: thank you very much really appreciate it ^^ im still not use and aware in

Re: [fw-general] Cookie Usage

2009-07-15 Thread Саша Стаменковић
Why not use session instead? Regards, Saša Stamenković On Wed, Jul 15, 2009 at 12:36 PM, Sergio Rinaudo kaiohken1...@hotmail.comwrote: Hi, on my project I want to save all the location where the user was ( maybe last 5 locations ) and show to him as a reminder. Then I thought to use the

Re: FW: [fw-general] Cookie Usage

2009-07-15 Thread Саша Стаменковић
Didn't use cookies in zf, but I know they are used in Zend_Http_Client, so you can check the source ;) Regards, Saša Stamenković 2009/7/15 Sergio Rinaudo kaiohken1...@hotmail.com Hi, I would like that when the user close the browser, reopen it, and comes to the website again, he can see

Re: [fw-general] Zend Framework 1.9.0 PREVIEW release now available

2009-07-17 Thread Саша Стаменковић
Great. Any place where we can see full list, and bugs fixed? Regards, Saša Stamenković On Fri, Jul 17, 2009 at 11:08 PM, Matthew Weier O'Phinney matt...@zend.comwrote: The Zend Framework team announces the immediate availability of a preview release of version 1.9.0:

Re: [fw-general] Getting the id generated after insert

2009-07-18 Thread Саша Стаменковић
Isn't it always 1? Is it possible to insert multiple rows at once? Regards, Saša Stamenković On Sat, Jul 18, 2009 at 6:05 PM, Juozas juo...@juokaz.com wrote: Hi, how about lastInsertId()? http://framework.zend.com/manual/en/zend.db.html $db-insert('bugs', $data); // return the last

Re: [fw-general] Caching Zend_XmlRpc_Server decreases performances

2009-07-24 Thread Саша Стаменковић
Looks like Pear XMLRPC2 is faster http://pear.php.net/package/XML_RPC2/. I replaced Zend_XmlRpc_Server with PEAR XML_RPC2_Server and perfermances are better, with same functionality. Regards, Saša Stamenković On Thu, Jul 23, 2009 at 9:32 AM, umpirsky umpir...@gmail.com wrote: Hi zfers. I

Re: [fw-general] Caching Zend_XmlRpc_Server decreases performances

2009-07-24 Thread Саша Стаменковић
Wow, great, now it's faster. Thanks Matthew. Isn't automatic_serialization true by default in Zend_Cache? Why isn't this implemented in Zend_XmlRpc_Server_Cache? Regards, Saša Stamenković On Fri, Jul 24, 2009 at 2:21 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- umpirsky

Re: [fw-general] Zend Framework Deployment (Zend Application)

2009-07-27 Thread Саша Стаменковић
Hi. http://framework.zend.com/manual/en/requirements.html#requirements.dependenciesto http://www.nabble.com/Zend-Framework-Custom-Builds-tp24410459p24410459.html Regards, Saša Stamenković On Mon, Jul 27, 2009 at 2:37 PM, prodigitalson ant.cunning...@gmail.comwrote: Ive got a couple sites in

Re: [fw-general] Zend Framework Deployment (Zend Application)

2009-07-27 Thread Саша Стаменковић
I have this script to extract packages with dependencies, but it's only for internal use, if you are interested I can share. Regards, Saša Stamenković On Mon, Jul 27, 2009 at 3:26 PM, prodigitalson ant.cunning...@gmail.comwrote: umpirsky wrote:

Re: [fw-general] How will the naming scheme look with Php 5.3 namespaces?

2009-07-30 Thread Саша Стаменковић
Hm, will it be possible to set autoloader like now, and don't need to mess around with namespace and require (use) statements? Regards, Saša Stamenković On Thu, Jul 30, 2009 at 3:41 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Jens Ljungblad jens.ljungb...@tjoff.com wrote (on

Re: [fw-general] What is the fourth parameter of pagination control?

2009-08-05 Thread Саша Стаменковић
When we are discussing about this...here is the case: you have a form form id=search method=get action=?= $this-url()) ? ... /form When you submit this form you get query string in your url, is there a way to make it /name/param/... and not ?name=param...? O.K. One option is javascript...another

[fw-general] Re: downloadable api doc

2009-08-12 Thread Саша Стаменковић
for 1.9.1 release). Mickael. Саша Стаменковић a écrit : Hm.. phpdoc -o CHM:default:default -d srcpath -t destpath -ti title will create PHP doc in chm, but I saw some people compiled manual http://framework.zend.com/manual/en/ to chm, ex http://www.mikaelkael.fr/Zend-Framework-CHM-Compilation.html

Re: [fw-general] How to get the number of day between 2 date

2009-08-12 Thread Саша Стаменковић
Maybe this snippet can give you idea http://www.zfsnippets.com/snippets/view/id/39/time-measurement-with-zendmeasuretime Regards, Saša Stamenković On Wed, Aug 12, 2009 at 2:11 PM, Mathieu Suen mathieu.s...@easyflirt.comwrote: Hi, Using Zend_Date how could we get the difference between 2

Re: [fw-general] How to get the number of day between 2 date

2009-08-12 Thread Саша Стаменковић
something like this: $date = new Zend_Date(); $date-setTimezone('UTC'); $date-set($dbRow-date, '-MM-dd HH:mm:ss'); $nowDate = new Zend_Date(); $nowDate-setTimezone('UTC'); $timeSlice = $nowDate-subDate($nowDate); $timeSlice-get('dd HH:mm:ss'); Саша Стаменковић a écrit : Maybe

Re: [fw-general] Zend Framework 1.9.0 PREVIEW release now available

2009-08-20 Thread Саша Стаменковић
matt...@zend.comwrote: -- Саша Стаменковић umpir...@gmail.com wrote (on Saturday, 18 July 2009, 02:50 AM +0200): Great. Any place where we can see full list, and bugs fixed? That's the full list of major features. For the bugs fixed, we haven't published a changelog yet as the release

[fw-general] Zend_Form_Element_Select::addMultiOptions() from Zend_Db_Table_Rowset_Abstract

2009-08-25 Thread Саша Стаменковић
Hi zf gurus! I want to add options to Zend_Form_Element_Select from rowset (Zend_Db_Table_Rowset_Abstract) I fetched from database. The problem is that options must have appropriate structure, and to achieve this, I must iterate rowset and build options. Is there any way to load options from

[fw-general] Share helpers, layouts between modules

2009-08-27 Thread Саша Стаменковић
Is there a way to share helpers and layouts between modules? I did this by creating view subfolder in the application folder, and set paths according to it. any other way? Regards, Saša Stamenković

[fw-general] PHP Fatal error: Class 'Zend_XmlRpc_Value_Nil' not found

2009-09-14 Thread Саша Стаменковић
This is the error I get when passing null value to XML-RPC server: PHP Fatal error: Class 'Zend_XmlRpc_Value_Nil' not found in ZendFramework/library/Zend/XmlRpc/Value.php on line 313 It occurs in 1.9.2 version, for some reason in Zend/XmlRpc/Value.php near 313 are added require onces for each

Re: [fw-general] SpiffyCalendar for the ZendFramework

2009-09-15 Thread Саша Стаменковић
Nice work ;) Regards, Saša Stamenković On Tue, Sep 15, 2009 at 3:42 PM, Kyle Spraggs the...@spiffyjr.me wrote: I wasn't quite sure which category to post this in but went with the general topic. If this is incorrect please correct me and I'll move it to the appropriate category. Finding a

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Саша Стаменковић
My vote for layout by default! Regards, Saša Stamenković On Wed, Sep 16, 2009 at 10:16 AM, aoohralex aoohra...@gmail.com wrote: Matthew: ok - I needn't register to download ZF, but I didn't see these links at the bottom of page and I thought that I must register to download ZF. You have

Re: [fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-18 Thread Саша Стаменковић
Me too, what routes have to do with url helper? Regards, Saša Stamenković On Fri, Sep 18, 2009 at 11:44 AM, aoohralex aoohra...@gmail.com wrote: I completly don't understand. -- View this message in context:

[fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
Hi. I'm crawling this site http://www.mojauto.rs using Zend_Http_Client. Strange thing is that I get messed Serbian characters (č.ć,ž...), probably encoding problem. I tried to explicitly set utf-8 with $client-setHeaders('Content-type: text/html; charset=utf-8'); but same problem occurs. Any

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
Idea is to find the way how to use them in PHP. Running away from the problem is not the solution ;) Regards, Saša Stamenković On Tue, Sep 22, 2009 at 11:59 AM, Benjamin Eberlei kont...@beberlei.dewrote: You shouldnt use Mysql ENUMS, they have some ugly properties. Any change in the list

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
klimp...@gmail.com wrote: On Tue, Sep 22, 2009 at 12:07 PM, Саша Стаменковић umpir...@gmail.com wrote: Idea is to find the way how to use them in PHP. Running away from the problem is not the solution ;) Regards, Saša Stamenković What Benjamin meant to say is that changing an ENUM

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
Didn't know that really. I'm working on pretty large project and there are enums all over tables, works fine. Will check ;) Regards, Saša Stamenković On Tue, Sep 22, 2009 at 1:04 PM, till klimp...@gmail.com wrote: On Tue, Sep 22, 2009 at 12:56 PM, Саша Стаменковић umpir...@gmail.com wrote

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
I monitored firefox headers with live HTTP headers when visiting this site, and it sends Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 when I do the same, I still get wrong chars :( Regards, Saša Stamenković On Tue, Sep 22, 2009 at 10:49 AM, umpirsky umpir...@gmail.com wrote: Hi. I'm

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
that didn't help :( Regards, Saša Stamenković On Tue, Sep 22, 2009 at 2:27 PM, Саша Стаменковић umpir...@gmail.comwrote: I monitored firefox headers with live HTTP headers when visiting this site, and it sends Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 when I do the same, I still get wrong

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
There is already issue http://framework.zend.com/issues/browse/ZF-3938... Regards, Saša Stamenković On Tue, Sep 22, 2009 at 3:08 PM, Саша Стаменковић umpir...@gmail.comwrote: Hehum, in Zend_Dom_Query #177 $domDoc = new DOMDocument; it should be $domDoc = new DOMDocument('1.0', 'utf-8

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
I'm trying... :P Regards, Saša Stamenković On Tue, Sep 22, 2009 at 3:40 PM, till klimp...@gmail.com wrote: On Tue, Sep 22, 2009 at 3:18 PM, Саша Стаменковић umpir...@gmail.com wrote: There is already issue http://framework.zend.com/issues/browse/ZF-3938. .. Regards, Saša Stamenković

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
. For example: $row = $table-find(1)-current(); $row-status; // 'approved' echo MyTable::$row-status; // I don't think this works. -- Hector On Tue, Sep 22, 2009 at 4:06 AM, Саша Стаменковић umpir...@gmail.comwrote: Didn't know that really. I'm working on pretty large project

[fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-24 Thread Саша Стаменковић
I'm trying to do this with set_error_handler(), my will is to trigger Error controller and catch this as application error, since I want to log all errors in one place - Error controller. I tried with setting error handler in bootstrap to function in index.php and that function calls error

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-24 Thread Саша Стаменковић
/ 404 / 500 response codes based on the type of exception, no matter if it is thrown within the dispatch loop. drm / Gerard Саша Стаменковић wrote: I'm trying to do this with set_error_handler(), my will is to trigger Error controller and catch this as application error, since I want

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-25 Thread Саша Стаменковић
Thx. But I can't see how this can help :P Regards, Saša Stamenković On Thu, Sep 24, 2009 at 3:00 PM, Vincent de Lau vinc...@delau.nl wrote: What i did was writing a function that simply throws an exception and passing that function to set_error_handler, something like this:

Re: [fw-general] Adding content to Zend_Form_Element_Button

2009-09-28 Thread Саша Стаменковић
Fixed: // Add button $submit = new Zend_Form_Element_Button(array( 'name' = 'quick-search-submit', 'label' = 'span class=ui-icon ui-icon-searchnbsp;/spanTraži', 'escape' = false, 'class' = 'ui-corner-all ui-button ui-state-default' )); $submit-setDecorators(array('ViewHelper'));

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-28 Thread Саша Стаменковић
*Warning*: set_error_handler() expects the argument (ErrorController::phpError) to be a valid callback in * /mnt/home/sasas/www/auto/application/Bootstrap.php* on line *16* Regards, Saša Stamenković On Mon, Sep 28, 2009 at 12:29 PM, Karol Grecki kgre...@gmail.com wrote: Try this, it works

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-28 Thread Саша Стаменковић
Nice answer Grecki, thanks. require_once 'controllers/ErrorController.php'; set_error_handler(array('ErrorController', 'phpError')); fixed problem. Strange :) Regards, Saša Stamenković On Mon, Sep 28, 2009 at 1:03 PM, Karol Grecki kgre...@gmail.com wrote: If you named your functions

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-28 Thread Саша Стаменковић
or directory in /mnt/home/sasas/www/Zend/Loader.php #165. which is strange, why loader looks for helpers in my helpers path, and not in zf library first? Regards, Saša Stamenković On Mon, Sep 28, 2009 at 1:08 PM, Саша Стаменковић umpir...@gmail.comwrote: Nice answer Grecki, thanks

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-28 Thread Саша Стаменковић
path, and not in zf library first? Regards, Saša Stamenković On Mon, Sep 28, 2009 at 1:08 PM, Саша Стаменковић umpir...@gmail.comwrote: Nice answer Grecki, thanks. require_once 'controllers/ErrorController.php'; set_error_handler(array('ErrorController', 'phpError

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-28 Thread Саша Стаменковић
to open stream: No such file or directory in /mnt/home/sasas/www/Zend/Loader.php #165. which is strange, why loader looks for helpers in my helpers path, and not in zf library first? Regards, Saša Stamenković On Mon, Sep 28, 2009 at 1:08 PM, Саша Стаменковић umpir

Re: [fw-general] Turn PHP errors/warnings/notices into exceptions

2009-09-29 Thread Саша Стаменковић
that one and handle it. You would of course want to eliminate every possibility your error handler itself is faulty. drm / Gerard Саша Стаменковић wrote: Thx. But I can't see how this can help :P Regards, Saša Stamenković On Thu, Sep 24, 2009 at 3:00 PM, Vincent de Lau vinc

Re: [fw-general] Decorators again

2009-09-29 Thread Саша Стаменковић
I need something like addElementDecorators() :D Regards, Saša Stamenković On Tue, Sep 29, 2009 at 3:46 PM, umpirsky umpir...@gmail.com wrote: Hi. I'm trying to do the following thing. I have some form, and I'm putting elements on it one by one, when I finish, I call

Re: [fw-general] Decorators again

2009-09-29 Thread Саша Стаменковић
*Fatal error*: Call to a member function addDecorator() on a non-object in... Regards, Saša Stamenković On Tue, Sep 29, 2009 at 4:34 PM, alayn al...@irontec.com wrote: Have you tried with something like: $form-setElementDecorators( . . . );

Re: [fw-general] Decorators again

2009-09-30 Thread Саша Стаменковић
decorators for some desired elements :) Regards, Saša Stamenković On Wed, Sep 30, 2009 at 7:49 AM, Саша Стаменковић umpir...@gmail.comwrote: *Fatal error*: Call to a member function addDecorator() on a non-object in... Regards, Saša Stamenković On Tue, Sep 29, 2009 at 4:34 PM, alayn al

Re: [fw-general] Decorators again

2009-09-30 Thread Саша Стаменковић
setting decorators, so you can aviod owerwriting decorators for some desired elements :) Regards, Saša Stamenković On Wed, Sep 30, 2009 at 7:49 AM, Саша Стаменковић umpir...@gmail.comwrote: *Fatal error*: Call to a member function addDecorator() on a non-object in... Regards, Saša

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
and the Pluginloader, it shows a way to reduce the amount of plugin loader instances. 2009/9/30 Саша Стаменковић umpir...@gmail.com: But he can cache rendered content, then time will be spent just on pulling html from cache (shooting in the dark) ;) I would try both and do some benchmarking - plz share

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
Made this method work, form is now 3 times slower :( Regards, Saša Stamenković On Wed, Sep 30, 2009 at 11:49 AM, Саша Стаменковић umpir...@gmail.comwrote: Tried to add public function addElement($element, $name = null, $options = null) { if (!is_array($options

Re: [fw-general] Zend form performances

2009-09-30 Thread Саша Стаменковић
Thanks for the response Matt. My profiler says that lot of time is spent on fetching data and executing setMultiOptions on select elements. I guess caching can help. Only I'm thinking about caching strategy... Will get back after optimization... Regards, Saša Stamenković On Wed, Sep 30, 2009

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
-loadDefaultDecorators(); return $this; } Does this works faster for someone? Regards, Saša Stamenković On Wed, Sep 30, 2009 at 3:36 PM, holografix . hologra...@gmail.com wrote: Hi Can you post your solution here ? Cheers holo 2009/9/30 Саша Стаменковић umpir...@gmail.com Made

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
I'ts not 3 times slower, my test form depends on db speed, which is changing like mad :P Regards, Saša Stamenković On Wed, Sep 30, 2009 at 3:58 PM, Саша Стаменковић umpir...@gmail.comwrote: It failed because I'm adding elements like $this-addElement($brand); and name is not provided

Re: [fw-general] Zend_Dom_Query and attributes with spaces

2009-10-02 Thread Саша Стаменковић
Try: $res = $dom-query('input[type=text][value=somevalue]'); Regards, Saša Stamenković On Thu, Oct 1, 2009 at 11:19 PM, gerardroche bullfrogbl...@live.com wrote: how would you query two attributes together? I've tried quite a fwe variations: input type=text value=somevalue' / $res =

Re: [fw-general] Application Resources Access

2009-10-07 Thread Саша Стаменковић
get initialized?. Zend_Registry gives us no clues as to where or when that cache was registered, but the bootstrap resource clues us in to the bootstrap. -- Hector On Mon, Oct 5, 2009 at 10:59 PM, Саша Стаменковић umpir...@gmail.comwrote: Thx Hector. Nice answer and useful code example

Re: [fw-general] Zend_Translate addTranslation

2009-10-08 Thread Саша Стаменковић
How do you initialize Zend_Translate in your bootstrap? Regards, Saša Stamenković On Wed, Oct 7, 2009 at 10:38 PM, ignace developer.ign...@gmail.com wrote: Ok the code i used is: if ($this-_hasParam('language')) { $language = $this-_getParam('language');

Re: [fw-general] url helper available all over your app

2009-10-21 Thread Саша Стаменковић
Why I want to do this in the form is, I want to set url on one place. Form will be rendered in many views, I don't want each of them set separate url, want to do it in one place, in the form init. Regards, Saša Stamenković On Wed, Oct 21, 2009 at 3:22 PM, Kyle Spraggs the...@spiffyjr.me wrote:

Re: [fw-general] url helper available all over your app

2009-10-22 Thread Саша Стаменковић
the helper you could initialize the form and set its action url. Regards, Jurian -- Jurian Sluiman Soflomo.com Op Wednesday 21 October 2009 15:47:45 schreef Саша Стаменковић: Why I want to do this in the form is, I want to set url on one place. Form will be rendered in many views, I

Re: [fw-general] Zend_View adapters

2009-10-26 Thread Саша Стаменковић
I see your point, and having them under ZendX can be useful. Is there some way to download ZendX instead getting it from svn? Regards, Saša Stamenković On Sun, Oct 25, 2009 at 2:27 AM, Pádraic Brady padraic.br...@yahoo.comwrote: There are no plans that I'm aware of since there are something

Re: [fw-general] Zend_View adapters

2009-10-26 Thread Саша Стаменковић
Thx. Regards, Saša Stamenković On Mon, Oct 26, 2009 at 9:00 AM, Jurian Sluiman subscr...@juriansluiman.nlwrote: Grab the full package. It's inside the 'extras' folder. Regards, Jurian -- Jurian Sluiman Soflomo.com Op Monday 26 October 2009 08:25:41 schreef Саша Стаменковић: I see

Re: [fw-general] Zend_Date error in conversion from timestamp

2009-10-27 Thread Саша Стаменковић
Great, thanks. Regards, Saša Stamenković On Tue, Oct 27, 2009 at 12:35 PM, drm d...@melp.nl wrote: umpirsky wrote: expected result is 2010-03-01. The whole year is missed :) Quoting PHP manual: --- o - ISO-8601 year number. This has the same value as /Y/, except that if the ISO week

Re: [fw-general] How to display errors when an ajax request fail?

2009-10-28 Thread Саша Стаменковић
If you send header HTTP code 500 from your controller $this-getResponse()-setHttpResponseCode(500); you can catch it in your javascript with $.ajax({ type: 'POST', url: '/c/a', data: $('#form').serialize(), dataType: 'html', success: function(response) { // success code }, error: function() {

Re: [fw-general] css class to option tags

2009-10-29 Thread Саша Стаменковић
I achieved this with my custom view helper: ?php /** * Select with custom css helper. * * @package Forms * @author Sasa Stamenkovic umpir...@gmail.com */ /** * Select brand helper, options class customization. * * @package Forms */ class Umpirsky_View_Helper_FormSelectCustom extends

Re: [fw-general] css class to option tags

2009-10-30 Thread Саша Стаменковић
On Thu, Oct 29, 2009 at 4:16 PM, drm d...@melp.nl wrote: Саша Стаменковић wrote: class Umpirsky_View_Helper_FormSelectCustom extends Zend_View_Helper_FormSelect { Hi Saša, Good solution, which I would have suggested if same classes for all the options wouldn't suffice. Little suggestion

Re: [fw-general] Zend_Locale

2009-10-30 Thread Саша Стаменковић
Why locale is not on this page http://framework.zend.com/manual/en/zend.application.available-resources.html? Can you give example setting it from config? Regards, Saša Stamenković On Thu, Oct 29, 2009 at 10:59 PM, Ed Lazor edla...@internetarchitects.bizwrote: I'm trying to clean up my

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-02 Thread Саша Стаменковић
Will use this topic to ask sth. When generating controllers like TwoWordsController if you run zf controller twoWords, view script folder gets name like twoWords instead two-words, similar problem occurs with controller name when running zf controller two-words. Is this a bug? Regards, Saša

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Саша Стаменковић
it should be class Admin_GalleryController extends Zend_Controller_Action As I said not sure if it is a bug/problem but we have to correct the classname everytime we create a controller under a module. scs On Tue, Nov 3, 2009 at 8:55 AM, Саша Стаменковић umpir...@gmail.com wrote: Will use

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Саша Стаменковић
but we have to correct the classname everytime we create a controller under a module. scs On Tue, Nov 3, 2009 at 8:55 AM, Саша Стаменковић umpir...@gmail.com wrote: Will use this topic to ask sth. When generating controllers like TwoWordsController if you run zf controller twoWords, view

Re: [fw-general] Zend_Http_Client and utf-8

2009-11-03 Thread Саша Стаменковић
Problem is in http client, since it occurs on some servers, and on some not, probably depending on headers they send by default. Regards, Saša Stamenković On Tue, Sep 22, 2009 at 2:42 PM, Саша Стаменковић umpir...@gmail.comwrote: I'm trying... :P Regards, Saša Stamenković On Tue, Sep

Re: [fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2009-11-06 Thread Саша Стаменковић
Ah, wrong decorators - fixed! Regards, Saša Stamenković On Fri, Nov 6, 2009 at 9:20 AM, umpirsky umpir...@gmail.com wrote: Yes, or $this-addDisplayGroup( array( 'e1', 'e2' ), 'name',

Re: [fw-general] Problem with Zend_Form and a regex validator

2009-11-09 Thread Саша Стаменковић
I'm not sure, but it looks like you need to consider 'º' utf-8 value in your regex somehow. Regards, Saša Stamenković On Mon, Nov 9, 2009 at 1:48 PM, Саша Стаменковић umpir...@gmail.com wrote: http://www.roscripts.com/PHP_regular_expressions_examples-136.html http://www.roscripts.com

Re: [fw-general] Zend_Date problem

2009-11-10 Thread Саша Стаменковић
@Thomas Weidner * * date_default_timezone_set('Europe/Stockholm'); is in bootstrap. @kobsu * * *Same result :( * Regards, Saša Stamenković On Tue, Nov 10, 2009 at 6:20 PM, kobsu ko...@iki.fi wrote: Try Zend_Date::setOptions(array('fix_dst' = true)); before $date = new Zend_Date();

Re: [fw-general] Zend_Date problem

2009-11-10 Thread Саша Стаменковић
://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: kobsu ko...@iki.fi Cc: fw-general@lists.zend.com Sent: Wednesday, November 11, 2009 7:59 AM Subject: Re: [fw-general] Zend_Date problem @Thomas Weidner * * date_default_timezone_set('Europe

Re: [fw-general] Zend_Date problem

2009-11-11 Thread Саша Стаменковић
locales I get: sr_RS: string '2009-10-22T10:01:36+02:00' (length=25) en_GB:string '2009-10-22T10:01:36+02:00' (length=25) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Thomas

Re: [fw-general] Zend_Date problem

2009-11-11 Thread Саша Стаменковић
Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Саша Стаменковић umpir...@gmail.com To: Thomas Weidner thomas.weid...@gmx.at Cc: fw-general@lists.zend.com Sent: Wednesday, November 11, 2009 9:44 AM Subject: Re: [fw-general] Zend_Date

Re: [fw-general] I18N Webinar

2009-11-15 Thread Саша Стаменковић
Hi, glad to see webinar on this subject. Topics: - Caching translations ad optimization. - Best practices and how to pick right adapter. - Picking phrases from templates automation. - Translating routes (urls) Regards, Saša Stamenković On Sun, Nov 15, 2009 at 12:58 AM, Daniel

Re: [fw-general] Bootstrap Resource usage in model - best practice advice please

2009-11-16 Thread Саша Стаменковић
Hi. Zend_Controller_Front::getInstance()-getParam('bootstrap')- getResource('Cache'); But I like $cache = Zend_Registry::get('Zend_Cache); it's shorter. Regards, Saša Stamenković On Tue, Nov 17, 2009 at 8:34 AM, Nick Pack n...@nickpack.com wrote: This is probably a dumb question, but I'm

Re: [fw-general] Zend Form DisplayGroup remove decorator from factory...

2009-11-17 Thread Саша Стаменковић
Naah, a little drag :) I didn't like factory methods at first, didn't like strings instead constants..., but now I just don't want to break the chain. Will do it like you said $group = $form-getDisplayGroup(' group1'); $group-removeDecorator('Label'); Thanks for the fast response!

Re: [fw-general] Zend Form DisplayGroup remove decorator from factory...

2009-11-17 Thread Саша Стаменковић
Hehum, after this: ... )-addDisplayGroup( array( 'brand', 'model', 'year_from', 'year_to', 'price_from', 'price_to', 'kilometer_from', 'kilometer_to'

Re: [fw-general] Zend Form DisplayGroup remove decorator from factory...

2009-11-17 Thread Саша Стаменковић
Removing 'DtDdWrapper' did the job. Regards, Saša Stamenković On Tue, Nov 17, 2009 at 7:53 PM, Саша Стаменковић umpir...@gmail.comwrote: Hehum, after this: ... )-addDisplayGroup( array( 'brand', 'model', 'year_from

Re: [fw-general] Zend Form DisplayGroup remove decorator from factory...

2009-11-18 Thread Саша Стаменковић
Aaargh, now I get invalid xhtml. Will override DispalyGroup. Regards, Saša Stamenković On Wed, Nov 18, 2009 at 8:51 AM, Саша Стаменковић umpir...@gmail.comwrote: Removing 'DtDdWrapper' did the job. Regards, Saša Stamenković On Tue, Nov 17, 2009 at 7:53 PM, Саша Стаменковић umpir

Re: [fw-general] Problem with Zend_translate

2009-11-18 Thread Саша Стаменковић
Same problem here :( Regards, Saša Stamenković On Wed, Nov 18, 2009 at 1:12 AM, kusum kusumso...@sify.com wrote: I am trying to use zend_Translate for translation in my application but it is not working :-(( I am using en.mo and en.po files for translation in my lang folder In my

Re: [fw-general] Call to a member function _() on a non-object

2009-11-19 Thread Саша Стаменковић
Poedit - catalog - settings - keywords - add your function name, in this case 'translate'. Poedit will look for translate() calls and put in all strings. If you need to inject variables into your translation, use sprintf, like: ? $this-sprintf(%this-translate('You added %s items.'),

Re: [fw-general] Signing CLA

2009-11-23 Thread Саша Стаменковић
Great, thanks! Regards, Saša Stamenković On Mon, Nov 23, 2009 at 4:33 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- umpirsky umpir...@gmail.com wrote (on Monday, 23 November 2009, 05:15 AM -0800): I want to become a contributor. Reading

  1   2   3   4   >