Re: [fw-general] Module Sharing and framework.zend.com
Hi, Matthew Weier O'Phinney schrieb: So, hint, hint -- if somebody or a group of you would like to work on such an application, we may be able to host it on the ZF site, and give credit to the authors. We would, of course, like to provide some input as to the specifications, but otherwise... :) I guess as long as we still suffer from the absence of standards regarding self-contained modules, this would rather lead to confusion than to a big success. I think most developers would expect to have the option to download and to easily integrate some typical modules like Auth, ACL etc - and they would be quickly frustrated if the modules - due to the lack of standardization - would not work the way like Firefox plug-ins do. Don't get me wrong: I don't expect the ambitious developer not to see that it is always difficult to incorporate other people's work, but I really think that for a newcomer such a site at the current stage would be rather counter-productive as it induces some wrong expectations. First we need to have some best practices like we discussed them before - then it would be a joy to code such modules and certainly a big leap forward for ZF to a wider user base. Just my two cents. :) -- Cheers,\\|// Vince (o o) ooO-(_)-Ooo- ''' (o)_(o)[ ][0][ ] ô¿ô (=°o°=) World Domination by Copy and Paste [ ][ ][0] -()_()[0][0][0] () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Ooo. ---.ooO( )- ( )(_/ \_) signature.asc Description: OpenPGP digital signature
Re: [fw-general] Zend_Validate_Regex issue
Hi Thomas, Only today I set aside my stubborness and tried to set the INVALID message, which worked fine. I just don't understand why this was changed and why BC was broken. Do you know? -Bart Thomas Weidner schreef: The regex validator has also a INVALID message which you did not set. Which type has the value you want to validate ? Try a var_dump of the value. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Bart McLeod mcl...@spaceweb.nl To: fw-general fw-general@lists.zend.com Sent: Thursday, July 09, 2009 2:17 PM Subject: [fw-general] Zend_Validate_Regex issue Hi all, I searched the mailing list and the issue tracker, but I can't find an issue for this. However, I would like to double check with you all, before creating a new issue. Maybe I am just coding wrong or there already exists an issue that you can point me to. Here's the problem: I add a Regex validator to a form. I set the a custom message on Zend_Validate_Regex::NOT_MATCH. I do not get the custom message, but instead I get: Invalid type given, value should be string, integer or float Which makes no sense at all (at least to me). Anyone? My version is latest trunk, it also affects existing solutions that worked fine for months. The code: $phoneValidator = new Zend_Validate_Regex($pattern); $phoneValidator-setMessage(U mag de volgende tekens gebruiken: + - ( ) een spatie en cijfers., Zend_Validate_Regex::NOT_MATCH ); $telephone-addValidator($phoneValidator); $form-addElement($telephone); Regards, Bart McLeod
Re: [fw-general] Zend Framework Custom Builds
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 are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE-
Re: [fw-general] Problem with Zend Form
It works. thanks Eugene Morgan wrote: You have to call $request-isValid($formData) in order for getValue() to work with the posted data. On Thu, Jul 9, 2009 at 7:40 AM, magrytos1magry...@wp.pl wrote: Hi. I have a problem with my form. In my simple ZF project i have 2 actions: request and critere. Each one have a form class. In form request i have one select and one submit button. After selecting a request, the submit button send us to Form critere. The problem is, that when i'm in form critere i can't recive my valu that i choose in my select in form request. I already tried this: $request = new Form_Request(); $request-getValue('selReq'); //'selReq' is the name of my select. When I do something like this when I'm in critere: $formData = $this-getRequest()-getPost(); print_r($formData); i have: Array ( [selReq] = 2 [crit] = go to critere ) so i have my value, but i can'tget it by function getValue(). My question is WHY ??? thx -- View this message in context: http://www.nabble.com/Problem-with-Zend-Form-tp24409414p24409414.html Sent from the Zend Framework mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Problem-with-Zend-Form-tp24409414p24424527.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend Form - setAction()
Hi. I have action add and a form for this action. After click on submit button i want to add a data that I chose to my database and also I want to go to the next page of my form 'critere'. When i put setAction('critere'); in my form add form, after pushing submit button it goes to form critere, but it doesn't add any data to my db. If I comment setAction() function, it adds data, but it stays in add form. Is it possible to put an array as an arguments for setAction()? If not, how can I do 2 actions by pushin one button. public function addAction() { $this-view-title = Add Request; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type = $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } } $this-view-form = $form; } thx -- View this message in context: http://www.nabble.com/Zend-Form---setAction%28%29-tp24424644p24424644.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Form - setAction()
This is exactly what I was looking for. thank you Bart McLeod wrote: are you looking for $this-_forward('critere'); after your submit action has completed? -Bart magrytos1 schreef: Hi. I have action add and a form for this action. After click on submit button i want to add a data that I chose to my database and also I want to go to the next page of my form 'critere'. When i put setAction('critere'); in my form add form, after pushing submit button it goes to form critere, but it doesn't add any data to my db. If I comment setAction() function, it adds data, but it stays in add form. Is it possible to put an array as an arguments for setAction()? If not, how can I do 2 actions by pushin one button. public function addAction() { $this-view-title = Add Request; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type = $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } } $this-view-form = $form; } thx -- View this message in context: http://www.nabble.com/Zend-Form---setAction%28%29-tp24424644p24425401.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Module Sharing and framework.zend.com
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 implemented, and why not making it better. Simply attach what works for you. What do you think? Regards, Saša Stamenković On Fri, Jul 10, 2009 at 8:18 AM, Vince42 z...@vineal.de wrote: Hi, Matthew Weier O'Phinney schrieb: So, hint, hint -- if somebody or a group of you would like to work on such an application, we may be able to host it on the ZF site, and give credit to the authors. We would, of course, like to provide some input as to the specifications, but otherwise... :) I guess as long as we still suffer from the absence of standards regarding self-contained modules, this would rather lead to confusion than to a big success. I think most developers would expect to have the option to download and to easily integrate some typical modules like Auth, ACL etc - and they would be quickly frustrated if the modules - due to the lack of standardization - would not work the way like Firefox plug-ins do. Don't get me wrong: I don't expect the ambitious developer not to see that it is always difficult to incorporate other people's work, but I really think that for a newcomer such a site at the current stage would be rather counter-productive as it induces some wrong expectations. First we need to have some best practices like we discussed them before - then it would be a joy to code such modules and certainly a big leap forward for ZF to a wider user base. Just my two cents. :) -- Cheers,\\|// Vince (o o) ooO-(_)-Ooo- ''' (o)_(o)[ ][0][ ] ô¿ô (=°o°=) World Domination by Copy and Paste [ ][ ][0] -()_()[0][0][0] () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Ooo. ---.ooO( )- ( )(_/ \_)
Re: [fw-general] Zend Form - setAction()
are you looking for $this-_forward('critere'); after your submit action has completed? -Bart magrytos1 schreef: Hi. I have action add and a form for this action. After click on submit button i want to add a data that I chose to my database and also I want to go to the next page of my form 'critere'. When i put setAction('critere'); in my form add form, after pushing submit button it goes to form critere, but it doesn't add any data to my db. If I comment setAction() function, it adds data, but it stays in add form. Is it possible to put an array as an arguments for setAction()? If not, how can I do 2 actions by pushin one button. public function addAction() { $this-view-title = Add Request; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type = $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } } $this-view-form = $form; } thx
Re: [fw-general] Zend Framework Custom Builds
-- Саша Стаменковић umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): 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... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com wrote: Not if you are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE- -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend Form - setAction()
OK, maybe it wasn't exactly what I was looking for. Now I have another problem. I made somehing like this: public function addAction() { $this-view-title = Add Request; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type= $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } $this-_forward('critere'); } $this-view-form = $form; } public function critereAction() { $this-view-title = Add critere; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type= $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } //$this-_forward('index'); } $this-view-form = $form; } I know it looks stupid, cause it's the same code in both actions. The problem is that when I'm going from index to add action, my add form waits till I put some data into the form elements and than to click submit. When I do that it goes to critere action, where it adds the same data right away without waiting for submit. WHY I've made the same actions just to be sure, that i didn't make any syntax error. But i also tried whith other code in critere action and it was the same, the critere was transparent. magrytos1 wrote: This is exactly what I was looking for. thank you Bart McLeod wrote: are you looking for $this-_forward('critere'); after your submit action has completed? -Bart magrytos1 schreef: Hi. I have action add and a form for this action. After click on submit button i want to add a data that I chose to my database and also I want to go to the next page of my form 'critere'. When i put setAction('critere'); in my form add form, after pushing submit button it goes to form critere, but it doesn't add any data to my db. If I comment setAction() function, it adds data, but it stays in add form. Is it possible to put an array as an arguments for setAction()? If not, how can I do 2 actions by pushin one button. public function addAction() { $this-view-title = Add Request; $this-view-headTitle($this-view-title, 'PREPEND'); $form = new Form_Add(); //$this-view-form = $form; if ($this-getRequest()-isPost()) { $formData = $this-_request-getPost(); if ($form-isValid($formData)) { $reqName = $form-getValue('requestName'); $type = $form-getValue('type'); $request = $form-getValue('request'); $requests = new Model_DbTable_Requests(); $requests-addRequest($reqName, $type, $request); } } $this-view-form = $form; } thx -- View this message in context: http://www.nabble.com/Zend-Form---setAction%28%29-tp24424644p24429437.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework Custom Builds
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 will build download with dependencies, will anyone use it? Maybe this can be added to Zend_Tool and then used on zend website... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com wrote: Not if you are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE- -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend Framework Custom Builds
Given that the average number of days for unresolved issues has increased from 143days 2 years ago to where it is now at 224 days, and seems likely to continue climbing, wouldn't our communal efforts be best applied elsewhere? Checkboxes still don't work correctly in Zend Form for instance. -- Sean - Original Message - From: Matthew Weier O'Phinney matt...@zend.com To: fw-general@lists.zend.com Sent: Friday, July 10, 2009 7:35 AM Subject: Re: [fw-general] Zend Framework Custom Builds -- Саша Стаменковић umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): 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... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com wrote: Not if you are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE- -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend Framework + Doctrine Module Autoloader issue
Thanks to all for the input. I want to continue down the road of a resource plugin for my Doctrine configuration since it is what I think the resource plugin is meant to provide. I envision for my application that I will configure the DB Adapter in the application configuration and within my Bootstrap I will load the adapter dynamically based on that configuration. So let me pose this question differently and I hope some Zend people will comment. Is it currently possible from within a Resource Plugin to modify, update the default module autoloader object configuration when it is instantiated the application configuration? If so, how? If not, does this seem like a valid enhancement? --David -- View this message in context: http://www.nabble.com/Zend-Framework-%2B-Doctrine-Module-Autoloader-issue-tp24392765p24431101.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework Custom Builds
On Fri, Jul 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 result can passed to a script with builds (sorts directories and compresss) the package. Greetings Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- signature.asc Description: Digital signature
Re: [fw-general] Zend Framework Custom Builds
I exported http://framework.zend.com/manual/en/requirements.html#requirements.dependenciesto csv, will try to make dependency tree and use it to implement simple packagizer script. Regards, Saša Stamenković On Fri, Jul 10, 2009 at 7:19 PM, Mario Guenterberg m...@poolbyte.de wrote: On Fri, Jul 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 result can passed to a script with builds (sorts directories and compresss) the package. Greetings Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpXeC8ACgkQAGfmtsX4QJLMfQCdGLiK5rZdc8GIkLpsKfaI4DXB e8wAnj7GXoo8RFygO1bOY44qrJm5U+o0 =7NBl -END PGP SIGNATURE-
[fw-general] IExternalizable support
Hello, Does ZendAMF supports IExternalizable ? Where to find ressources on how to use it for the PHP part ? Thank you for your work ! -- View this message in context: http://www.nabble.com/IExternalizable-support-tp24432015p24432015.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework Custom Builds
I 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: 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.com mailto:matt...@zend.com wrote: -- Саша Стаменковић umpir...@gmail.com mailto:umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): 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... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com mailto:umpir...@gmail.com wrote: Not if you are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de mailto:m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE- -- Matthew Weier O'Phinney Project Lead| matt...@zend.com mailto:matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend Framework Custom Builds
Can you automate something like this given all of the variations of $somevar = new $className() in the framework, or these constructs buried deep enough within each module that they won't matter much? Andrew On Fri, Jul 10, 2009 at 2:35 PM, Ralph Schindlerralph.schind...@zend.com wrote: I 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: How do you think we can specify dependencies? Regards, Saša Stamenković
[fw-general] ZF with Ajax
I am just trying to figure out if I can do this or whether I am just doing it wrong I have a form that displays more of itself as the user fills in info. When they choose from a select option it calls a javascript function via Prototype which makes a request to the server for a controller. The issue is this. The view variables from the controller are set to display for the matching view template. But since I was using Ajax I had the other part of the form hidden via a div: div id=adjForm style=display:none rest of the form /div The issue is that the div above is in the original page. So it does not see any of the view variables from the controller. Is there a way to make it see those? I know that I can take out what is in the div and put it into the view that the controller is looking for, but I wanted to do it with all the code in one page and using a display:none. Will I have to pull the code back out and put it in the the view? -- View this message in context: http://www.nabble.com/ZF-with-Ajax-tp24432700p24432700.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework Custom Builds
As you know there is much $className::something in zf, so I would go with http://framework.zend.com/manual/en/requirements.html#requirements.dependenciesdependency speecification :) Regards, Saša Stamenković On Fri, Jul 10, 2009 at 8:35 PM, Ralph Schindler ralph.schind...@zend.comwrote: I 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: 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.com mailto:matt...@zend.com wrote: -- Саша Стаменковић umpir...@gmail.com mailto:umpir...@gmail.com wrote (on Friday, 10 July 2009, 11:40 AM +0200): 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... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? On Thu, Jul 9, 2009 at 9:58 PM, Саша Стаменковић umpir...@gmail.com mailto:umpir...@gmail.com wrote: Not if you are a fan ;) Regards, Saša Stamenković On Thu, Jul 9, 2009 at 5:49 PM, Mario Guenterberg m...@poolbyte.de mailto:m...@poolbyte.de wrote: On Thu, Jul 09, 2009 at 05:38:15PM +0200, Саша Стаменковић wrote: 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 20MB :), it's silly isn't it? Right, but for a simple contact form or twitter service implementation it is a little bit overkill to realize with ZF. My 2 cents Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWEXcACgkQAGfmtsX4QJKR3wCfeJJLFLK2nFtDAbJBKzH7wUrf IysAn3YspBaAug4N0Q6FkgHKrByBZ6Uz =SwJ2 -END PGP SIGNATURE- -- Matthew Weier O'Phinney Project Lead| matt...@zend.com mailto:matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Module Sharing and framework.zend.com
On Thu, Jul 09, 2009 at 08:56:21PM -0700, Mary Nicole Hicks wrote: I have found that Zend Framework is brilliant, but there are some parts of a website that are just boring to implement. Take login and registration forms for example. I am sure that 80% are very similar. I think that the Zend framework team needs to add a registry of 3rd party ZF modules to their site. Just something similar to https://addons.mozilla.org/en-US/firefox/ would do the job. The url could be something like http://framework.zend.com/modules. The 3rd party modules would not have to be hosted on framework.zend.com, but could be hosted anywhere like http://sourceforge.net/. There could also be rules such as only allowing free open source modules. The benefit of this sort of project is that it would foster a stronger user community around the framework.zend.com site. I think the speed for developing new minor/major versions of ZF and there changes in API make this to a not practicable scheme. The resulting _modules_ must be marked for compatibility of ZF versions. And of course, there is so mutch changed in the last months, that it is better to implement more standards, or maybe standard ways. Just my 2 cents. Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- signature.asc Description: Digital signature
Re: [fw-general] Zend Framework Custom Builds
On Fri, Jul 10, 2009 at 07:45:06PM +0200, Саша Стаменковић wrote: I exported http://framework.zend.com/manual/en/requirements.html#requirements.dependenciesto csv, will try to make dependency tree and use it to implement simple packagizer script. For the first tests and implemantiation, this maybe right. For the future I recommend a automated solution like parsing the files directly, so you build the packages eventually also from trunk. Greetings Mario -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M- V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D G++ e* h r+++ y --END GEEK CODE BLOCK-- signature.asc Description: Digital signature
Re: [fw-general] Zend Framework Custom Builds
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, which will build download with dependencies, will anyone use it? Maybe this can be added to Zend_Tool and then used on zend website... If we go this route, we'll utilize a PEAR channel instead of re-inventing the wheel. However, it will take some work for us to determine what constitutes an individual package, and how to specify the dependencies -- and as that will likely be a fairly large task, it's been a backburner task for some time as a result. Any solution we come up with will need to be automated, to ensure that we don't need to manually determine this information for each new component, or when component features change. Would anyone like to start working on such a project? I have a script that is 99% done. Splits up top-level components into pear packages. I could contribute that if wanted. I didn't know Zend wanted a PEAR channel for the Zend Framework. Till
Re: [fw-general] Module Sharing and framework.zend.com
Mary Nicole Hicks wrote: - QUOTE Mary Nicole Hicks - I think that the Zend framework team needs to add a registry of 3rd party ZF modules to their site. Just something similar to https://addons.mozilla.org/en-US/firefox/ would do the job. - QUOTE END - Matthew Weier O'Phinney-3 wrote: - QUOTE Matthew Weier O'Phinney-3 - - We've discussed this a number of times - The ZF team at Zend is very small - Fairly busy - hint, hint -- if somebody or a group of you would like to work on such an application, we may be able to host it on the ZF site, and give credit to the authors. - QUOTE END - Is there a bare list of features that such a thing would need. If there is very little time that anyone can spend on it, then I think number of features would need to be cut down to the bare minumim. To me, the bare minumim would be a list of links in a wiki somewhere. Although this would be far from being like https://addons.mozilla.org/en-US/firefox/, but it would be a start. Vince42 wrote: - QUOTE Vince42 - I guess as long as we still suffer from the absence of standards regarding self-contained modules, this would rather lead to confusion than to a big success. Don't get me wrong: I don't expect the ambitious developer not to see that it is always difficult to incorporate other people's work, but I really think that for a newcomer such a site at the current stage would be rather counter-productive as it induces some wrong expectations. - QUOTE END - It is for that reason that I think such a system would need to start small. Out of the way of newcomers, but in a place on the site where the ambitious developer can learn to bookmark. umpirsky wrote: - QUOTE umpirsky - 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 implemented, and why not making it better. Simply attach what works for you. What do you think? Regards, Saša Stamenkovic - QUOTE END - This is why I think that the modules should be setup at a place like http://sourceforge.net/ with links from the framework.zend.com site. Currently there is code for modules scattered around on blogs and threads. Often no one will update code on threads or blogs, so to find a tr.im API class or extended twitter API class that works after ZF has moved along a few versions is hard. When I do find a broken 3rd party tr.im API class or extended twitter API class that has been broken by a ZF update, I want to help fix it. Although I might not be the best coder, I can find the broken parts or bugs and help fix them. The bonus is that places like http://sourceforge.net/ have issue trackers for when these 3rd part classes break. As long as all the linked modules are free, open source and are hosted on a web-based source code repository then collaboration is able to happen. Having this as a requirement to be linked to would help encourage people to put classes into web-based source code repositories. -- View this message in context: http://www.nabble.com/Module-Sharing-and-framework.zend.com-tp24421433p24436535.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Tool does nothing / Zend Framework on MAMP / Mac
I have tried to setup Zend Framework on my Mac. I do not get zf.sh errors. BUT nothing happens when I type “zf.sh” on my terminal/console. Here are my settings. Inside my /usr/local/bin wenbert:/usr/local/bin wenbert$ pwd /usr/local/bin wenbert:/usr/local/bin wenbert$ ls -la zf* -rwxr-xr-x 1 wenbert admin 3004 Jul 11 11:14 zf.php -rwxrwxrwx 1 wenbert admin 1404 Jul 11 11:14 zf.sh Where my Zend library is located: wenbert:/Applications/MAMP/bin/php5/lib/php wenbert$ pwd /Applications/MAMP/bin/php5/lib/php wenbert:/Applications/MAMP/bin/php5/lib/php wenbert$ ls Archive OS PEAR.phpbuild doc library peclcmd.php Console PEARSystem.php dataextensions pearcmd.php zf.bat wenbert:/Applications/MAMP/bin/php5/lib/php wenbert$ cd library/ wenbert:/Applications/MAMP/bin/php5/lib/php/library wenbert$ ls Zend wenbert:/Applications/MAMP/bin/php5/lib/php/library wenbert$ My /etc/profile # System-wide .profile for sh(1) PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH ZEND_TOOL_INCLUDE_PATH=/Applications/MAMP/bin/php5/lib/php/library export ZEND_TOOL_INCLUDE_PATH if [ ${BASH-no} != no ]; then [ -r /etc/bashrc ] . /etc/bashrc fi - http://blog.ekini.net -- View this message in context: http://www.nabble.com/Zend_Tool-does-nothing---Zend-Framework-on-MAMP---Mac-tp24437184p24437184.html Sent from the Zend Framework mailing list archive at Nabble.com.