Re: [fw-general] Zend Framework 1.10.4 Released

2010-04-28 Thread Саша Стаменковић
Great, I was so waiting for XML_RPC to be optimized :) Regards, Saša Stamenković On Wed, Apr 28, 2010 at 6:44 PM, Matthew Weier O'Phinney wrote: > On behalf of the Zend Framework community, I'm pleased to announce the > immediate availability of Zend Framework 1.10.4, our fourth maintenance > r

[fw-general] Twitter Launches Countdown to OAuthcalypse

2010-04-25 Thread Саша Стаменковић
Twitter Launches Countdown to OAuthcalypse http://mashable.com/2010/04/24/twitter-oauthcalypse/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Mashable+%28Mashable%29 . Does this means Zend_Service_Twitter will stop working? Regards, Saša Stamenković

Re: [fw-general] How to load module specific configuration

2010-04-24 Thread Саша Стаменковић
Look here http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html, I solved it something like this http://binarykitten.me.uk/dev/zend-framework/177-active-module-based-config-with-zend-framework.html . Regards, Saša Stamenković On Sat, Apr 24, 2010 at

Re: [fw-general] Spoon-feeding the view

2010-04-22 Thread Саша Стаменковић
*Full Model Alternative.* * * *You pass the model, since it represents your data, and view(s) are responsable for model representation. * Regards, Saša Stamenković On Thu, Apr 22, 2010 at 8:05 PM, Hector Virgen wrote: > Hello, > > Do you spoon-feed your views from your controller? In other word

Re: [fw-general] Zend_Navigation question?

2010-04-21 Thread Саша Стаменковић
$view->navigation()->menu()->setPartial('your-script.phtml'); Regards, Saša Stamenković On Wed, Apr 21, 2010 at 9:25 AM, wrote: > Hi, i am using zend-navigation to render my menu but the html template i am > using has a span inside a like this: > > > > >Home > > > > >

Re: [fw-general] Re: Zend Framework and Facebook Connect

2010-04-20 Thread Саша Стаменковић
Yes, I've done that, but can't find which method give you ability to post messages to your fanpage. Regards, Saša Stamenković On Tue, Apr 20, 2010 at 10:10 PM, pwansch wrote: > > Yes. I recommend downloading the official Facebook PHP Client Library > package > (facebook-platform.tar.gz from >

Re: [fw-general] Zend Framework and Facebook Connect

2010-04-20 Thread Саша Стаменковић
By the way, when we are talking about face. Is it possible to post sth to fb fanpage via API, like we do with twitter? Regards, Saša Stamenković On Tue, Apr 20, 2010 at 6:57 PM, pwansch wrote: > > Hi, > I added Facebook Connect to my site and it works well. > > This is what I do to detect that

Re: [fw-general] Re: Please help with routes

2010-04-18 Thread Саша Стаменковић
Adding this patch to Zend/Controller/Router/Route.php http://pastie.org/925891 fixed the problem. Is there a bug for this, or we should open new one? It would be nice to have this before bug hunt days is over. Anyone? Regards, Saša Stamenković On Sun, Apr 18, 2010 at 4:17 PM, umpirsky wrote:

[fw-general] Re: Please help with routes

2010-04-18 Thread Саша Стаменковић
Стаменковић wrote: > What do you suggest with those complex search queries for better SEO, Zend > should be good at this. > > Regards, > Saša Stamenković > > > > On Sat, Apr 17, 2010 at 5:13 PM, Саша Стаменковић wrote: > >> Added pagination, but search url still don

[fw-general] Re: Please help with routes

2010-04-17 Thread Саша Стаменковић
What do you suggest with those complex search queries for better SEO, Zend should be good at this. Regards, Saša Stamenković On Sat, Apr 17, 2010 at 5:13 PM, Саша Стаменковић wrote: > Added pagination, but search url still dont work > > resources.router.routes. adds.route = &q

[fw-general] Re: Please help with routes

2010-04-17 Thread Саша Стаменковић
quot;index" resources.router.routes. adds.defaults.page = 1 Regards, Saša Stamenković On Sat, Apr 17, 2010 at 4:47 PM, Саша Стаменковић wrote: > I just don't want index after /adds, thats all. > > Regards, > Saša Stamenković > > > > On Sat, Apr 17, 2010 at 4:46 P

[fw-general] Re: Please help with routes

2010-04-17 Thread Саша Стаменковић
I just don't want index after /adds, thats all. Regards, Saša Stamenković On Sat, Apr 17, 2010 at 4:46 PM, Саша Стаменковић wrote: > Hi. > > I want route to handle urls like this: > >- /adds >- >/adds/price/0/price/10/year/1960/year/20

[fw-general] Please help with routes

2010-04-17 Thread Саша Стаменковић
Hi. I want route to handle urls like this: - /adds - /adds/price/0/price/10/year/1960/year/2010/city/0/sort_by/0/mode/0 - /adds/price/0/price/10/kilometer/0/kilometer/20/volume/0/volume/5000/year/1960/year/2010/power/0/power/500/brand/0/city/0/model/0/sort_by/0/driver_air

Re: [fw-general] Zend_Http_Client timeout on production server

2010-04-09 Thread Саша Стаменковић
ario Guenterberg wrote: > On Fr, Apr 09, 2010 at 02:54:41 +0200, Саша Стаменковић wrote: > > > http://www.screencast.com/users/umpirsky/folders/Jing/media/0102059b-8c12-46ff-83e0-cb6b6159c63b > > > > but for any other URL it works fine. > > > > Regards, >

Re: [fw-general] Zend_Http_Client timeout on production server

2010-04-09 Thread Саша Стаменковић
check for allow_url_open. ;-) > > Oops: Ok, great. Create a phpinfo ... > > > > Also, are you sure the other website is "up"? > > > > On Fri, Apr 9, 2010 at 2:38 PM, Саша Стаменковић > wrote: > >> First one is false, second one gives IP. > >

Re: [fw-general] Zend_Http_Client timeout on production server

2010-04-09 Thread Саша Стаменковић
he first shouldn't be false, the second should be the IP of the > domain. Most likely the same as if you run this code from "home". > > Till > > On Fri, Apr 9, 2010 at 2:03 PM, Саша Стаменковић > wrote: > > When I change URL to any other site, it works, but f

Re: [fw-general] Zend_Http_Client timeout on production server

2010-04-09 Thread Саша Стаменковић
> On Fr, Apr 09, 2010 at 10:11:00 +0200, Саша Стаменковић wrote: > > Hi. > > > > I'm openin url like this with Zend_Http_Client > > > http://www.xxx.net/index.php?option=com_autoexp&page=show_search&mode=1&Itemid=54 > > . > > > > Th

[fw-general] Zend_Http_Client timeout on production server

2010-04-09 Thread Саша Стаменковић
Hi. I'm openin url like this with Zend_Http_Client http://www.xxx.net/index.php?option=com_autoexp&page=show_search&mode=1&Itemid=54 . This works perfect in my test environment (Windows), but on production (FreeBSD) I have this error: 2010-04-09T08:14:48+02:00 ERR (3): exception 'Zend_Http_Clie

Re: [fw-general] Re: Get View object inside a controller plugin

2010-04-08 Thread Саша Стаменковић
Are you sure? Regards, Saša Stamenković On Wed, Apr 7, 2010 at 10:37 PM, Chris Trahey wrote: > > > umpirsky wrote: > > > > > Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view'); > > > > Note that for this to work (I'm using 1.10), you need a bootstrap method > name

Re: [fw-general] Log sent emials

2010-04-07 Thread Саша Стаменковић
return Zend_Mime::encode($this->_content, $this->encoding, >> $EOL); >>} >>} >> >> You should file a bug for this. Adding a "getContentRaw()" method should >> be easy :) >> >> -- >> Hector >> >> &

Re: [fw-general] Log sent emials

2010-04-07 Thread Саша Стаменковић
just need to use the right decoding function. > > -- > Hector > > > > On Wed, Apr 7, 2010 at 10:45 AM, Саша Стаменковић wrote: > >> Nice try, I think I was already trying this few months ago :) >> >> Result is now >> >> 2010-04-07T19:44:18+02:

Re: [fw-general] Log sent emials

2010-04-07 Thread Саша Стаменковић
Printable()? > > -- > Hector > > > > On Wed, Apr 7, 2010 at 10:33 AM, Саша Стаменковић wrote: > >> Sure, same thing: >> >> 2010-04-07T19:32:17+02:00 INFO (6): >> From: *** >> To: array ( >> 0 => '***', >> ) >> Subjec

Re: [fw-general] Log sent emials

2010-04-07 Thread Саша Стаменковић
omobi.li=0D=0A=09=09=09=0D=0A=09=09=0D=0A=09=0D=0A Regards, Saša Stamenković On Wed, Apr 7, 2010 at 7:23 PM, Hector Virgen wrote: > Did you try $this->getBodyText(true) ? > > -- > Hector > > > > On Wed, Apr 7, 2010 at 10:13 AM, Саша Стаменковић wrote: > >>

[fw-general] Log sent emials

2010-04-07 Thread Саша Стаменковић
I extended Zend_Mail in order to log all outgoing emails. overriden public function send($transport = null) { // Send parent::send($transport); // Log $this->log(); return $this; } private function log() { $log = new Zend_Log(); $log->addWriter(new Zend_Log_Writer

Re: [fw-general] Zend_Form (get populated values)

2010-04-05 Thread Саша Стаменковић
$this->getValue() and $this->getValues() should do the job. Regards, Saša Stamenković On Mon, Apr 5, 2010 at 11:47 PM, eduardocury wrote: > > Hello, is there any way to get the values inside the form after populate it > ? > > e.g: > $myForm= new Default_Form_MyForm; > $myForm->populate(array(m

[fw-general] How do you translate javascript files?

2010-04-02 Thread Саша Стаменковић
Hi. I'm thinking about best way to translate js files. In my previous project, I use to have server side generated js file for translation, looked like var STR1 = translate('str.') ?>; var STR2 = translate('str2.') ?>; // ... But is this really required, maybe writing manual this files and then

Re: [fw-general] Get View object inside a controller plugin

2010-03-30 Thread Саша Стаменковић
Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view'); Regards, Saša Stamenković On Tue, Mar 30, 2010 at 12:02 PM, wrote: > Hi, > how i can get the view object from a controller plugin? > > Now i put Zend_View in the Registry during the bootstrap, but i am asking > m

Re: [fw-general] Help with ajaxContext helper

2010-03-26 Thread Саша Стаменковић
/index/facebook/format/html in robots.txt Regards, Saša Stamenković On Fri, Mar 26, 2010 at 4:13 PM, Hector Virgen wrote: > Nice find! :) > > -- > Hector > > > > On Fri, Mar 26, 2010 at 4:29 AM, Саша Стаменковић wrote: > >> Looks like it's googlebot >

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-26 Thread Саша Стаменковић
D5 each row before it returned the > matches. > > -- > Hector > > > > On Fri, Mar 26, 2010 at 9:45 AM, Саша Стаменковић wrote: > >> You can do a simple query >> >> $this->_db->quoteInto('md5(CONCAT(email, password)) = ?', $hash) >> >&

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-26 Thread Саша Стаменковић
browser is closed > and reopened. > > -- > Hector > > > > On Fri, Mar 26, 2010 at 9:32 AM, Саша Стаменковић wrote: > >> But I want to keep session storage, and existing auth mechanism. What for >> should I implement cookie storage then? And writing to storage

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-26 Thread Саша Стаменковић
re hash in cookie, and if no identitiy, regenerate hash and compare it with one from cookie? I'm confused now...thinking... Regards, Saša Stamenković On Fri, Mar 26, 2010 at 5:17 PM, Hector Virgen wrote: > On Fri, Mar 26, 2010 at 8:49 AM, Саша Стаменковић wrote: > >> Soun

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-26 Thread Саша Стаменковић
> placed in an early-running front controller plugin. > > The nice thing about this is you can make the cookie last for 6 months or > longer, and it will still work. > > -- > Hector > > > > On Fri, Mar 26, 2010 at 7:17 AM, Саша Стаменковић wrote: > >> @Juria

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-26 Thread Саша Стаменковић
@Jurian Nice idea, but since Zend_Auth stores only identity, I don't think that information is enought to reauthenticate from cookie. @Dmitry Yes, but Zend_Session::rememberMe() sets session expiration time, and session expiration is not per user setting, but per server setting. Regards, Saša Sta

Re: [fw-general] Help with ajaxContext helper

2010-03-26 Thread Саша Стаменковић
n for preventing this errors to be placed in error.log, ah maybe robots.txt. Regards, Saša Stamenković On Thu, Mar 25, 2010 at 8:57 PM, Саша Стаменковић wrote: > Will do, stay tunes ;) > > Regards, > Saša Stamenković > > > > On Thu, Mar 25, 2010 at 4:25 PM, Hector Virgen

Re: [fw-general] Help with ajaxContext helper

2010-03-25 Thread Саша Стаменковић
give you some details as to what's happening when it > errors. > > -- > Hector > > > > On Thu, Mar 25, 2010 at 8:18 AM, Саша Стаменковић wrote: > >> > class PretragaController extends Zend_Controller_Action { >> >> >> public function init()

Re: [fw-general] Help with ajaxContext helper

2010-03-25 Thread Саша Стаменковић
Stamenković On Thu, Mar 25, 2010 at 4:14 PM, Hector Virgen wrote: > Are you manually calling $this->render() in your action, or do you have a > controller plugin or helper that is calling it? > > -- > Hector > > > > On Thu, Mar 25, 2010 at 8:12 AM, Саша Стаме

Re: [fw-general] Help with ajaxContext helper

2010-03-25 Thread Саша Стаменковић
tead, > > and change your AJAX calls to pass the format parameter, or to throw > > an exception when !$this->getRequest()->isXmlHttpRequest() for actions > > that MUST be called via AJAX. You might even want to put all of these > > calls in their own controller, and t

Re: [fw-general] Help with ajaxContext helper

2010-03-24 Thread Саша Стаменковић
I thinks second requirement is there, but XMLHttpRequest is not. Otherwise, it would always fail. Regards, Saša Stamenković On Wed, Mar 24, 2010 at 6:15 PM, Jurian Sluiman wrote: > On Tuesday 23 Mar 2010 20:15:03 Саша Стаменковић wrote: > > Interesting. Is there a way to solve it on

Re: [fw-general] Help with ajaxContext helper

2010-03-23 Thread Саша Стаменковић
I'm getting a number of logs daily. Very strange, it can't be that all of these people don't have javascript enabled. Regards, Saša Stamenković On Tue, Mar 23, 2010 at 8:15 PM, Саша Стаменковић wrote: > Interesting. Is there a way to solve it on one place. What is enough for

Re: [fw-general] Help with ajaxContext helper

2010-03-23 Thread Саша Стаменковић
Interesting. Is there a way to solve it on one place. What is enough for me is to prevent logging errors in error controller. So custom exception thrown from controller plugin is fine...if ajax action is called without ajax. Regards, Saša Stamenković On Tue, Mar 23, 2010 at 5:43 PM, Hector Virge

Re: [fw-general] Would anyone want Zend_VersionControl_Subversion?

2010-03-19 Thread Саша Стаменковић
Nice to have. Regards, Saša Stamenković On Fri, Mar 19, 2010 at 12:58 PM, Shaun Farrell wrote: > Steven, > I would like to see this too! > I like Zend_VersionControl_* > > Look forward to see it something. > > Shaun J. Farrell > Washington, DC > (202) 713-5241 > www.farrelley.com > > > > On Th

Re: [fw-general] How can I insert class name for Zend Navigation generated menu?

2010-03-17 Thread Саша Стаменковић
e only generates for the A > element like . Do you know how to insert > the css class name for the element?. > > > > --- > Enkhbilguun Erdenetsogt > > > On Wed, Mar 17, 2010 at 5:05 PM, Саша Стаменковић wrote: > >> $itemArray[] = array( >>

Re: [fw-general] How can I insert class name for Zend Navigation generated menu?

2010-03-17 Thread Саша Стаменковић
$itemArray[] = array( 'label' => $label, 'uri' => $uri, 'class' => 'css-class' ); Regards, Saša Stamenković On Wed, Mar 17, 2010 at 7:36 AM, Enkhbilguun Erdenetsogt < enkhbilg...@beregu.com> wrote: > Hello, > > I'm generating my menu w

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-11 Thread Саша Стаменковић
Ah, right. Thanks. Regards, Saša Stamenković On Thu, Mar 11, 2010 at 4:29 AM, David Muir > wrote: > > You can't selectively set the gc_maxlifetime unless you also change the > save > path while you're at it. Otherwise, the garbage collector may run and wipe > all your "rememberMe" sessions whe

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
, or...? Regards, Saša Stamenković On Wed, Mar 10, 2010 at 8:28 PM, Саша Стаменковић wrote: > Looks like it's possible http://www.phpriot.com/articles/zend-session/5, > but it says: > > *Caution:* Ensure your sessions are written to a different filesystem > location than

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
sions being cleaned-up anyway. Regards, Saša Stamenković On Wed, Mar 10, 2010 at 3:58 PM, Саша Стаменковић wrote: > Ah, yes. That way you'll set session time for all users. > > So, hash in cookie, and some table, and check when he returns then > reauthenticate. Damn, too mu

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
Ah, yes. That way you'll set session time for all users. So, hash in cookie, and some table, and check when he returns then reauthenticate. Damn, too much work :) Regards, Saša Stamenković On Wed, Mar 10, 2010 at 3:45 PM, Jurian Sluiman wrote: > On Wednesday 10 Mar 2010 15:38

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
Yes, but if you change it from ini, you change it on every request, so no conditional changes in the code, thats what holografix is talking about. So, if you keep it default, no ini, you can change it with if ($form->getValue('remember')) { ini_set('session.gc_maxlifetime', 604800); } if user ch

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
; regards > holo > > > 2010/3/10 Саша Стаменковић > >> Thanks. >> >> So, I can have in my applicatin.ini >> >> phpSettings.session.gc_maxlifetime = 10800 >> >> and in authenticate method >> >> if ($form->getValue('remember&#

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
PM, holografix . wrote: > Hi > > Yes, you can. > > http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime > > regards > holo > > 2010/3/10 Саша Стаменковић > > Can I override this without changing php.ini, since I'm on shared hostin

Re: [fw-general] Re: Zend_Session::rememberMe

2010-03-10 Thread Саша Стаменковић
Can I override this without changing php.ini, since I'm on shared hosting? Regards, Saša Stamenković On Wed, Mar 10, 2010 at 12:04 PM, umpirsky wrote: > It's 1440. > > Regards, > Saša Stamenković > > > On Wed, Mar 10, 2010 at 11:47 AM, David Muir [via Zend Framework Community] > <[hidden > e

Re: [fw-general] Re: Zend_Session setId

2010-03-09 Thread Саша Стаменковић
The problem is I determine upload directory based on session data. But in my specific case, if he change SID, he'll end up uploading files to non existing directory and get upload error. This is ok, comparing to uploadify suggestion to set upload dir path as parameter on client :) Regards, Saša S

Re: [fw-general] Re: Zend_Session setId

2010-03-08 Thread Саша Стаменковић
Thanks, I fixed it like this: I put in bootstrap setting session Id bfore _initSession (session start) and it works fine, bu tI have this code on every request, ionstead having it only in one controller. Also, this is a security issue, because everyone can change uploadify settings on the client (

Re: [fw-general] This list was spamed?

2010-03-03 Thread Саша Стаменковић
+1 Regards, Saša Stamenković 2010/3/4 Dasn > > Hi guys, I found that when I post a message to this list > I receive two or three emails like: > > Return-path: > Received: from cta.cq.cn (mta6.cta.cq.cn [61.128.128.101]) by lavabit.comwith > SMTP id XNRHJVJTCV7O for ; Mon, 01 Mar 2010 05:14:1

Re: [fw-general] Zend_Service_Twitter short url

2010-02-26 Thread Саша Стаменковић
ervice like Zend_Service_Bitly or Zend_Service_Trim would be > fantastic. I currently don't see any proposals for these. > > Shaun J. Farrell > Washington, DC > > > On Thu, Feb 25, 2010 at 5:09 AM, Саша Стаменковић wrote: > >> If you are using http://tr.im/ service for url

Re: [fw-general] Zend_Service_Twitter short url

2010-02-25 Thread Саша Стаменковић
If you are using http://tr.im/ service for url shortening, I have imeplemented service based on Zend_Rest_Client. Check http://code.google.com/p/servicetrim/ Regards, Saša Stamenković On Thu, Feb 25, 2010 at 10:43 AM, MrMastermindNL wrote: > > Hi, > > I'm implementing the Twitter service in my

Re: [fw-general] Re: form elements thrown out of the fieldgroup

2010-02-25 Thread Саша Стаменковић
:D Regards, Saša Stamenković On Thu, Feb 25, 2010 at 10:23 AM, greg606 wrote: > > Sorry I removed the question: > Hi > Do you have any idea why here: http://pastie.org/841977 elements: $skype > and > $gg are displayed at the beginning of the form and not in the fieldset > (fieldgroup) ? > > Th

Re: [fw-general] form elements thrown out of the fieldgroup

2010-02-25 Thread Саша Стаменковић
Line #25 $this->addElements(array($firstname , $lastname , $phone , $skype , $gg)); try replacing with: $this->addElements(array($firstname , $lastname , $phone)); Regards, Saša Stamenković On Thu, Feb 25, 2010 at 10:13 AM, greg606 wrote: > > Hi > Do you have any idea why here: http://past

Re: [fw-general] Re: PDO or Mysqli?

2010-02-24 Thread Саша Стаменковић
Does anyone knows if there are differences in performances? Regards, Saša Stamenković On Wed, Feb 24, 2010 at 1:17 PM, David Muir > wrote: > > PDO here as well (although I've used mysqli on servers that didn't have > PDO) > There are some differences with binding parameters between the two. I

Re: [fw-general] PDO or Mysqli?

2010-02-18 Thread Саша Стаменковић
So, which one is better in terms of performances? Regards, Saša Stamenković On Thu, Feb 18, 2010 at 7:37 PM, Ralph Schindler wrote: > In terms of the general use cases (anything documented in the manual, > Zend_Db_Table, Zend_Db_Select) - you will see no discernible difference. The > only time

Re: [fw-general] Warning: array_fill(): Number of elements must be positive in Zend_Paginator_Adapter_Null

2010-02-17 Thread Саша Стаменковић
Great, thanks! Regards, Saša Stamenković On Wed, Feb 17, 2010 at 10:59 PM, Matthew Ratzloff wrote: > Michael Rehbein helpfully supplied a patch and unit tests for this issue, > so I'll be merging that in sometime this week or Sunday. In the meantime, > feel free to patch your code manually: >

Re: [fw-general] Re: PDO or Mysqli?

2010-02-17 Thread Саша Стаменковић
I use mysqli, because I think it's faster, but I'm not really sure. Regards, Saša Stamenković On Wed, Feb 17, 2010 at 6:37 PM, Ross Little wrote: > > bump... > -- > View this message in context: > http://n4.nabble.com/PDO-or-Mysqli-tp1556941p1559054.html > Sent from the Zend Framework mailing

Re: [fw-general] Setting form element id

2010-02-16 Thread Саша Стаменковић
Chage $mySubForm->getElement('lock')->setAttribs('id', 'lock' . $server->getUniqueId()); to $mySubForm->getElement('lock')->setAttrib('id', 'lock' . $server->getUniqueId()); Regards, Saša Stamenković On Tue, Feb 16, 2010 at 9:06 AM, mathieu.suen wrote: > Hi, > > How do you setup the id of fo

Re: [fw-general] validator Db_NoRecordExists -- support for multifield unique indices?

2010-02-11 Thread Саша Стаменковић
Can we see the source? Regards, Saša Stamenković On Thu, Feb 11, 2010 at 9:43 PM, David Mintz wrote: > I've just written my own extension of Zend_Validate_Db_Abstract that > supports multiple fields to query against, for the case where your table has > a multi-field unique index. I wonder if t

Re: [fw-general] Unable to set infinite lifetime with cache manager

2010-02-05 Thread Саша Стаменковић
@Pádraic Brady Thanks for the fix! Regards, Saša Stamenković On Thu, Feb 4, 2010 at 2:46 PM, Pádraic Brady wrote: > Here's a workaround for getting an infinite lifetime, can be called in any > controller: > > // workaround since config cannot define a NULL value :( > $this->_helper->get

Re: [fw-general] Re: Zend_Session setId

2010-02-03 Thread Саша Стаменковић
ty issue, but I will fix some hashes later. Regards, Saša Stamenković On Wed, Feb 3, 2010 at 10:08 AM, drm wrote: > Hi, > > > > Саша Стаменковић wrote: > >> i need to set exact session ID in order to regenerate specific session. >> > Ah, I see. In that case you&

Re: [fw-general] Re: Zend_Session setId

2010-02-02 Thread Саша Стаменковић
On Tue, Feb 2, 2010 at 5:37 PM, drm wrote: > Hi, > > > Саша Стаменковић wrote: > >> I only know that: >> >> Zend_Session::setId('13123'); >> >> fails with >> >> "Zend_Session_Exception: The session has already been started. Th

Re: [fw-general] Re: Zend_Session setId

2010-02-02 Thread Саша Стаменковић
b 2, 2010 at 2:14 PM, drm wrote: > Hi, > > Саша Стаменковић wrote: > >> No. >> >> From Zend_Session.php >> [snip] >> >> >> Always throw exception if SID is defined. >> >> PHP manual is also clear about this ( >> http://www.p

Re: [fw-general] Re: Zend_Session setId

2010-02-02 Thread Саша Стаменковић
e that the cookie can't be sent, but this should > kick out an error or something anyway. > > Pádraic Brady > > http://blog.astrumfutura.com > http://www.survivethedeepend.com > OpenID Europe Foundation Irish Representative<http://www.openideurope.eu/> > >

Re: [fw-general] Re: Zend_Session setId

2010-02-01 Thread Саша Стаменковић
Looking at Zend_SessionTest::testRegenerateId, looks like it's not possible to set another session ID if session is already started. Regards, Saša Stamenković On Mon, Feb 1, 2010 at 3:45 PM, umpirsky wrote: > > I'm integrating uploadify, because of Flash Cookie Bug > (http://swfupload.org/foru

Re: [fw-general] Re: A question about bootstrapping modules

2010-01-30 Thread Саша Стаменковић
Greg, first of all, thanks for the answer, really appriciate it. I read blog post where controller plugin is used. It's ok, but additional code is needed, and it's not fully zf compatible. I want to be able to separate resource config (navigation, routes...), with possibility to keep most of resou

Re: [fw-general] Which Zend_Form was submitted?

2010-01-28 Thread Саша Стаменковић
Have you tried Zend_Form_Element_Submit::isChecked() ? Regards, Saša Stamenković On Thu, Jan 28, 2010 at 3:57 PM, Nick Pack wrote: > First option is favourable, although you could also use image elements > instead of submit buttons, as these can have a value. > > > Nick > > > takeshin wro

Re: [fw-general] Re: A question about bootstrapping modules

2010-01-27 Thread Саша Стаменковић
That's ok, but I'm not thinking about implementation now. I think about most logic expected behaviour and how to achieve it. I want - Common (app) bootstrap - bootstrap resources for entire app. - Per module bootstraps - bootstrap resources required only for specific module. Can I achi

Re: [fw-general] Load forms with ajax / cache forms

2010-01-27 Thread Саша Стаменковић
Fixed by adding form ?> jQuery() ?> in ajax.phtml view script. Caching forms still a mistery. Regards, Saša Stamenković On Wed, Jan 27, 2010 at 1:24 PM, umpirsky wrote: > > Hi. > > I had a problem to cache ZendX_Jquery forms, and I asked for help on > http://n4.nabble.com/Caching-ZendX-Jque

Re: [fw-general] Re: How to set the default decorators for form elements?

2010-01-27 Thread Саша Стаменковић
Thats a waste, you're right! Must do some refactoring, just giving myself some time to think about the problem...maybe overriding creteElement is the right way to go. Regards, Saša Stamenković On Wed, Jan 27, 2010 at 2:48 PM, darkangel wrote: > > > umpirsky wrote: > > > > I forgot to add that

Re: [fw-general] Re: How to set the default decorators for form elements?

2010-01-27 Thread Саша Стаменковић
I forgot to add that I have overriden setElementDecorators as well :P http://pastie.org/796814 Regards, Saša Stamenković On Wed, Jan 27, 2010 at 2:22 PM, darkangel wrote: > > > Hector Virgen wrote: > > > > Have you tried: > > > > $this->setElementDecorators($defaultDecorators); > > > > You sh

Re: [fw-general] Re: How to set the default decorators for form elements?

2010-01-26 Thread Саша Стаменковић
I set element decorators in parent form, and override loadDefaultDecorators to set custom form decorators. Regards, Saša Stamenković On Tue, Jan 26, 2010 at 9:40 PM, bparise wrote: > > createElement() by the docs says it should set the default decorators: > http://framework.zend.com/issues/bro

Re: [fw-general] post vars and buttons

2010-01-23 Thread Саша Стаменковић
What is the type of your button? I use type="submit". Regards, Saša Stamenković On Fri, Jan 22, 2010 at 11:03 PM, Hector Virgen wrote: > Yea, unfortunately buttons are not very reliable between browsers. IE will > submit the inner HTML of the button, while Firefox will submit the value of > th

Re: [fw-general] Creating custom jQuery slider element

2010-01-21 Thread Саша Стаменковић
@Paul Nice, nice. @drm Yes, I will look into this, looks like $_isArray can make it have multiple value with zero based arrays. Regards, Saša Stamenković On Thu, Jan 21, 2010 at 3:56 PM, drm wrote: > Саша Стаменковић wrote: > >> Hehum.. $_isArray property is never used in Zend_

Re: [fw-general] Creating custom jQuery slider element

2010-01-21 Thread Саша Стаменковић
Hehum.. $_isArray property is never used in Zend_Form_Element class. I implemented it like this http://pastie.org/788043 A bit ugly. If someone have better idea, I'm glad to hear. Regards, Saša Stamenković On Thu, Jan 21, 2010 at 12:21 PM, umpirsky wrote: > Yes, tha

Re: [fw-general] Re: Pointer to ACL tutoials

2010-01-20 Thread Саша Стаменковић
How slow is generating ACL from application.ini with resource? When is dynamic ACL really required? Probably when you feel slow page load :) Regards, Saša Stamenković On Wed, Jan 20, 2010 at 5:48 PM, prodigitalson wrote: > > Unfortunately its older but ive found it tremendously helpful in a rec

Re: [fw-general] Repository of shared Zend Framework Helpers, Resources, etc.

2010-01-20 Thread Саша Стаменковић
It would be nice to have something official, with reviews, real collab...github can be the right choice. Regards, Saša Stamenković On Wed, Jan 20, 2010 at 10:28 AM, Ladislav Prskavec wrote: > Konr Ness wrote: > >> All, >> >> Are there any online repositories of shared Zend Framework components

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

2010-01-14 Thread Саша Стаменковић
nd_Controller_Front::getInstance()->getParam('bootstrap')-> > getResource('Cache'); > } > return $this->_cache; > } > > This would allow you to easily create a setter method that your unit tests > can use to stub in a black hole ca

Re: [fw-general] Updated @copyright tag

2010-01-06 Thread Саша Стаменковић
How did you do that? :) Regards, Saša Stamenković On Wed, Jan 6, 2010 at 3:16 AM, BillKarwin wrote: > > I have updated the @copyright tag for 2010, across the whole ZF tree. > Revision 20096 resolves ZF-8718. > My apologies for the big commit, affecting nearly every file. Your next > svn > up

Re: [fw-general] How can I get controller name from view script?

2010-01-05 Thread Саша Стаменковић
This Zend_Controller_Front::getInstance()->getRequest()->getControllerName() can be calle dfrom view script as well - scarry :) Regards, Saša Stamenković On Wed, Jan 6, 2010 at 7:26 AM, Mon Zafra wrote: > Push it into the view from the controller. E.g. $this->view->controller = > $this->_req

Re: [fw-general] Conditional validators for File form elements

2010-01-05 Thread Саша Стаменковић
I have similar problem, need to skip validation of some form parts if radio is checked. Regards, Saša Stamenković On Wed, Jan 6, 2010 at 1:12 AM, Hector Virgen wrote: > Hello ZF, > > A team member and I are building a form with a radio element that contains > 2 options and a file input element

Re: [fw-general] Zend_Measure_Time and localization

2010-01-05 Thread Саша Стаменковић
http://www.zfsnippets.com/snippets/view/id/43 http://www.zfsnippets.com/snippets/view/id/39 Might help as starting point. Regards, Saša Stamenković On Tue, Jan 5, 2010 at 5:03 PM, Thomas Weidner wrote

Re: [fw-general] How should I get Posting form name ()

2010-01-05 Thread Саша Стаменковић
No, hidden field is the right way to go. Regards, Saša Stamenković On Tue, Jan 5, 2010 at 1:40 PM, Enkhbilguun Erdenetsogt < enkhbilg...@beregu.com> wrote: > Thanks Victor. > I understood that you suggested me to use hidden field to properly identify > which form is been posted. Yes I solved my

Re: [fw-general] Is this filter alive?

2009-12-30 Thread Саша Стаменковић
/Filter/Word/ > > Perhaps they too might prove useful. > > -ralph > > Саша Стаменковић wrote: > >> Yeah, utf-8... >> >> Regards, >> Saša Stamenković >> >> >> On Thu, Dec 24, 2009 at 1:06 PM, scs > sasc...@gmail.com>> wrote: >

Re: [fw-general] flashMessenger a bit hard to use

2009-12-28 Thread Саша Стаменковић
Thats good enough then, thx. Regards, Saša Stamenković On Mon, Dec 28, 2009 at 1:19 AM, Michael Depetrillo wrote: > flashMessenger already has namespace support. > > > $this->getHelper('flashMessenger')->setNamespace("page1-errors")->addMessage($msg); > > $this->getHelper('flashMessenger')->set

Re: [fw-general] Is this filter alive?

2009-12-24 Thread Саша Стаменковић
version. > Thus, if you have problems using ucfirst like above, then you have to > write your own ucfirst function. > > scs > > > On Thu, Dec 24, 2009 at 1:40 PM, Саша Стаменковић > wrote: > > True. > > > > Regards, > > Saša Stamenković > > > &

Re: [fw-general] Is this filter alive?

2009-12-24 Thread Саша Стаменковић
TO Soflomo V.O.F. > http://soflomo.com > > On Thursday 24 Dec 2009 12:23:33 Саша Стаменковић wrote: > > Capitalizing input, realy handy. Is it in progress or this functionality > > can be achieved with existing filters? > > > > > http://framework.zend.com/wi

[fw-general] Is this filter alive?

2009-12-24 Thread Саша Стаменковић
Capitalizing input, realy handy. Is it in progress or this functionality can be achieved with existing filters? http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_UcWords+-+Ashley+Broadley Regards, Saša Stamenković

Re: [fw-general] Buttons and isChecked method

2009-12-23 Thread Саша Стаменковић
x27;s an "improvement" request, which has already been completed. Maybe a > new bug should be opened just for this case (button elements). > > -- > Hector > > > > On Wed, Dec 23, 2009 at 8:42 AM, Саша Стаменковић wrote: > >> This works for me, and for buttons type=

Re: [fw-general] Buttons and isChecked method

2009-12-23 Thread Саша Стаменковић
nković On Wed, Dec 23, 2009 at 5:29 PM, Hector Virgen wrote: > Looks good! Have you filed a bug report for this? > > -- > Hector > > > > On Wed, Dec 23, 2009 at 4:28 AM, Саша Стаменковић wrote: > >> O.K. This is better: >> >> public fu

Re: [fw-general] Buttons and isChecked method

2009-12-23 Thread Саша Стаменковић
O.K. This is better: public function isChecked() { $value = $this->getValue(); if (null === $value) { return false; } return true; } Regards, Saša Stamenković On Wed, Dec 23, 2009 at 12:04 AM, Саша Стаменковић wrote: > I need to fi

Re: [fw-general] Buttons and isChecked method

2009-12-22 Thread Саша Стаменковић
I need to find out exactly which button is clicked, because I have wizard with multi page form and on each step I have back and forward button. Regards, Saša Stamenković On Wed, Dec 23, 2009 at 12:02 AM, Саша Стаменковић wrote: > You are right, even with: > > public function

Re: [fw-general] Buttons and isChecked method

2009-12-22 Thread Саша Стаменковић
ferently. > > Do you just need to test if the form was submitted, or if a specific button > was clicked? > > -- > Hector > > > > On Tue, Dec 22, 2009 at 9:04 AM, Саша Стаменковић wrote: > >> Yes, I need them to be buttons, styling problems, I need

Re: [fw-general] Buttons and isChecked method

2009-12-22 Thread Саша Стаменковић
Yes, I need them to be buttons, styling problems, I need sth like: Traži And that cannot be done with submit. However, this works for me: public function isChecked() { if (empty($this->getValue())) { return true; } return false; } Regards, Saša

Re: [fw-general] Base Controller Classes

2009-12-22 Thread Саша Стаменковић
You can try with extending Zend_Controller_Plugin_Abstract http://framework.zend.com/manual/en/zend.controller.plugins.html Regards, Saša Stamenković On Tue, Dec 22, 2009 at 7:23 AM, Taha Bayrak wrote: > Hi , > > I have a quick question: > > What is the best practice for placing the base contr

<    1   2   3   4   >