Re: [fw-general] Zend_Date Problems

2009-04-06 Thread Thomas Weidner
Note the difference between "Y" and "y". Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "milesap" To: Sent: Tuesday, April 07, 2009 4:51 AM Subject: [fw-general] Zend_Date Problems Hello, I'm fairly new to Zend

[fw-general] Zend_Date Problems

2009-04-06 Thread milesap
Hello, I'm fairly new to Zend Framework, so forgive me if this is a really easy question. I have been looking everywhere for a solution. I am trying to get the difference between the current date and a persons birthday to see how old they are. $date = new Zend_Date(); $date->sub(

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread Daryl Handley
Keith, I've been following that series closely. I'm hoping to do this without writing a custom decorator for an element as I'd like the option to omit the the form field this non form element might be related to. For example, if a user were allowed three attachments per node/form, the actual

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread keith Pope
What about a callback or viewHelper decorator? 2009/4/6 James Stuart : > Keith, > > I've been following that series closely.  I'm hoping to do this without > writing a custom decorator for an element as I'd like the option to omit the > the form field this non form element might be related to.  Fo

[fw-general] Re: Disable id attribute for form elements?

2009-04-06 Thread Colin Guthrie
Matthew (and others), 'Twas brillig, and Matthew Weier O'Phinney at 01/04/09 12:11 did gyre and gimble: -- fire-eyed-...@hotmail.com wrote (on Wednesday, 01 April 2009, 10:14 AM +): Thanks for the response again. I just read in an issue that this is made intentional behaviour: http://fra

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread James Stuart
Keith, I've been following that series closely. I'm hoping to do this without writing a custom decorator for an element as I'd like the option to omit the the form field this non form element might be related to. For example, if a user were allowed three attachments per node/form, the actual fil

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread keith Pope
You may want to look at Matthews Zend_Form series on his blog, heres the latest: http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html 2009/4/6 James Stuart : > Hi, > > Has anyone ever tried to insert a non form field element into Zend Form? > > I have a f

[fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread James Stuart
Hi, Has anyone ever tried to insert a non form field element into Zend Form? I have a form that includes file uploads and I need to cause the uploaded files to be listed inside the form after they have been added, much like a webmail application. I can do that using Javascript by finding the pare

Re: [fw-general] Trying to forward request using ActionStack plugin

2009-04-06 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To actually answer your question, do $this->_forward(); within your controller. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|_

Re: [fw-general] Trying to forward request using ActionStack plugin

2009-04-06 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://www.rmauger.co.uk/2009/03/why-the-zend-framework-actionstack-is-evil/ ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Matthew Weier O'Phinney
-- Marko Korhonen wrote (on Monday, 06 April 2009, 01:43 AM -0700): > I have made my model system as: > Model, Model_DbTable, Model_DbTable_Row etc... > > I have always declared by models in controller, but MVC seems > to "allow" View to command models also? > I also try to live by the "Fat model

fw-general@lists.zend.com

2009-04-06 Thread PHPScriptor
quotes are working fine... thanks Bart McLeod wrote: > > the quotes are indeed required by the ini format AND php 5.3 on *.nix > (we found out lately), the manual has some examples without quotes... > > -Bart > - visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.c

[fw-general] Trying to forward request using ActionStack plugin

2009-04-06 Thread Fire Eye'd Boy
Hi all, I'm trying to forward a request to a previous made request if the users login session was expired. What I have is the following in my UserController::login() if login succeeded: hasReferrer() ) { // Zend_Controller_Request_Abstract $referrer $referrer = $cmsApplication->getRefer

[fw-general] Re: Failed to save Zend_Controller_Request_Http in Zend_Session_Namespace

2009-04-06 Thread Fire Eye'd Boy
Fire Eye'd Boy schreef: Hi all, I'm trying to save a Zend_Controller_Request_Http in a Zend_Session_Namespace but it gives me a strict standards warning: Strict Standards: Creating default object from empty value Any idea what is going on here? Cheers Sorry people, never mind. I figured

[fw-general] Failed to save Zend_Controller_Request_Http in Zend_Session_Namespace

2009-04-06 Thread Fire Eye'd Boy
Hi all, I'm trying to save a Zend_Controller_Request_Http in a Zend_Session_Namespace but it gives me a strict standards warning: Strict Standards: Creating default object from empty value Any idea what is going on here? Cheers

fw-general@lists.zend.com

2009-04-06 Thread Bart McLeod
the quotes are indeed required by the ini format AND php 5.3 on *.nix (we found out lately), the manual has some examples without quotes... -Bart Paweł Chuchmała schreef: application.job = "/usr/local/bin/php /home/admin/domains/app/jobs/job.php > /dev/null 2> /dev/null &" Doesn;t work? On M

fw-general@lists.zend.com

2009-04-06 Thread Paweł Chuchmała
application.job = "/usr/local/bin/php /home/admin/domains/app/jobs/job.php > /dev/null 2> /dev/null &" Doesn;t work? On Mon, Apr 6, 2009 at 10:51, PHPScriptor wrote: > > Well, I don't think that's going to work. 'Cause I want to use it for a unix > command. > > in my config.ini: > > application.

fw-general@lists.zend.com

2009-04-06 Thread Bart McLeod
Does there not exist something like unhtmlentities() that you can call on the value to get rid of &? -Bart PHPScriptor schreef: Well, I don't think that's going to work. 'Cause I want to use it for a unix command. in my config.ini: application.job = /usr/local/bin/php /home/admin/domains/app/

fw-general@lists.zend.com

2009-04-06 Thread Vadim Gabriel
Hey, I am not sure the config_ini parser allows those kind of characters. Try using an XML parser or an array one instead and maybe that will work. Beside you can always overload the config value trough your script somewhere in the constructor. Vince. On Mon, Apr 6, 2009 at 11:51 AM, PHPScriptor

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Marko Korhonen
=) question was in the first post, I quicly just replied to my own post... Marko vince. wrote: > > Hey, > > Was that a question? Cause i didn't quite get what your asking/saying. > > Vince. > > On Mon, Apr 6, 2009 at 11:43 AM, Marko Korhonen < > marko.korho...@datafisher.com> wrote: > >>

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Cameron
You should be populating the values of the form in your model before passing it as a completed whole through to the view, then if you have to do any autocomplete stuff, do it in javascript. On Mon, Apr 6, 2009 at 4:43 PM, Marko Korhonen < marko.korho...@datafisher.com> wrote: > > Hi, > > I have m

fw-general@lists.zend.com

2009-04-06 Thread PHPScriptor
Well, I don't think that's going to work. 'Cause I want to use it for a unix command. in my config.ini: application.job = /usr/local/bin/php /home/admin/domains/app/jobs/job.php > /dev/null 2> /dev/null & With this command I execute a php job in the background with passthru, so that I don't hav

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Vadim Gabriel
Hey, Was that a question? Cause i didn't quite get what your asking/saying. Vince. On Mon, Apr 6, 2009 at 11:43 AM, Marko Korhonen < marko.korho...@datafisher.com> wrote: > > ps. I use Zend_Application and module bootstraps so auto loader finds those > models nicely =) > > Marko > -- > View thi

Re: [fw-general] MVC - Model in View

2009-04-06 Thread Marko Korhonen
ps. I use Zend_Application and module bootstraps so auto loader finds those models nicely =) Marko -- View this message in context: http://www.nabble.com/MVC---Model-in-View-tp22904523p22904532.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] MVC - Model in View

2009-04-06 Thread Marko Korhonen
Hi, I have made my model system as: Model, Model_DbTable, Model_DbTable_Row etc... I have always declared by models in controller, but MVC seems to "allow" View to command models also? I also try to live by the "Fat models, thin controllers" rule... So I made following: -- Fi

fw-general@lists.zend.com

2009-04-06 Thread Vadim Gabriel
Hey, Use the & HTML Entity which is & On Mon, Apr 6, 2009 at 11:18 AM, PHPScriptor wrote: > > Hey, > > I'm using the Zend_Config_Ini for loading my config file. > > $config = new Zend_Config_Ini('etc/config.ini', $environment); > > When I add a & somewhere in my config.ini file, I get this error

fw-general@lists.zend.com

2009-04-06 Thread PHPScriptor
Hey, I'm using the Zend_Config_Ini for loading my config file. $config = new Zend_Config_Ini('etc/config.ini', $environment); When I add a & somewhere in my config.ini file, I get this error: fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error parsing C:\wamp\www\app/et