Re: [fw-general] 2 paginator in same view
Hello, ;-) np, i will open a ticket today ... Chris Well, this is embarrassing. It's a bug that I apparently introduced in 1.6.1. Please file a ticket and I'll try to fix it within 12 hours. In the meantime, you can resolve this by naming your paginator object something besides $paginator; $paginator1 will work. -Matt -- View this message in context: http://www.nabble.com/2-paginator-in-same-view-tp19547285p19566859.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] zend form processAjax redirect
Hello, I'm new to Zend Framework and found no solution for my problem: submitting a form in my action controller I use the following code: $json = $form-processAjax($request-getPost()); //check if we have a valid form if($json != 'true') { $this-_helper-viewRenderer-setNoRender(true); $this-_helper-layout-disableLayout(); echo $json; } works fine so far. If the form is valid I store the data and would like to jump into another action of my controller. I tried a lot but rendering, forwarding, using the action stack and so on does not work till now. I found no solution to jump into a new action. When using: $this-_helper-viewRenderer-setNoRender(false); $this-_helper-actionStack('index', 'index', 'default'); In the response of the post I see the data of the action but I'm not able to render them. Any help would be fine. Thanks -- View this message in context: http://www.nabble.com/zend-form-processAjax-redirect-tp19567027p19567027.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Bug with Zend_File_Transfer
it seem that each validation for the file elements in the zend_form would validate all of the file elements in the form.it means that if there have two file elements in the form,says A and B. So isValid() for the element A is called,it would validate A and B,not just A. So if i want to upload two files, one is option, and another is required,then would result in error if i left the option one empty. do you understand me? if you don't , try the following: ?php $form = new Zend_Form(); $form-setEnctype(Zend_Form::ENCTYPE_MULTIPART); // file a,optional $a = new Zend_Form_Element_File('A'); $a-setLabel('file a'); $form-addElement($a); // file b,required $b = new Zend_Form_Element_File('B'); $b-setLabel('file b'); $b-setRequired(true); $form-addElement($b); if ($this-_request-isPost()) { if ($form-isValid($_POST)) { echo 'valid'; } else { echo 'invalid'; } } echo $form;
Re: [fw-general] Bug with Zend_File_Transfer
thanks your rapid reply. 2008/9/19 Thomas Weidner [EMAIL PROTECTED] Jacky, this is not supported for now and has been reported several times in the last few days. A issue is already filled and in work. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Jacky Chen [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Friday, September 19, 2008 8:47 AM Subject: [fw-general] Bug with Zend_File_Transfer it seem that each validation for the file elements in the zend_form would validate all of the file elements in the form.it means that if there have two file elements in the form,says A and B. So isValid() for the element A is called,it would validate A and B,not just A. So if i want to upload two files, one is option, and another is required,then would result in error if i left the option one empty. do you understand me? if you don't , try the following: ?php $form = new Zend_Form(); $form-setEnctype(Zend_Form::ENCTYPE_MULTIPART); // file a,optional $a = new Zend_Form_Element_File('A'); $a-setLabel('file a'); $form-addElement($a); // file b,required $b = new Zend_Form_Element_File('B'); $b-setLabel('file b'); $b-setRequired(true); $form-addElement($b); if ($this-_request-isPost()) { if ($form-isValid($_POST)) { echo 'valid'; } else { echo 'invalid'; } } echo $form;
Re: [fw-general] Z C E - ZF e xa m
By the way, I created a ZFCE group on LinkedIn. For those who are certified, you can request a join, it's here : http://www.linkedin.com/groups?gid=870067 Julien.P 2008/9/19 Aldemar Bernal [EMAIL PROTECTED] Hi Zenders, Now that the e xa m is out, are you planning any kind of discount coupon for those who are suscribed to this list or at least to those that have contributed proposals to the framework? (:rolling eyes) =D Best, Aldemar
Re: [fw-general] 2 paginator in same view
Hello, I have added a ticket in the zend framework bug tracker. Chris Hello, ;-) np, i will open a ticket today ... Chris Matthew Ratzloff wrote: Well, this is embarrassing. It's a bug that I apparently introduced in 1.6.1. Please file a ticket and I'll try to fix it within 12 hours. In the meantime, you can resolve this by naming your paginator object something besides $paginator; $paginator1 will work. -Matt -- View this message in context: http://www.nabble.com/2-paginator-in-same-view-tp19547285p19568286.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] image in database
HI All, My image in database, I need view for view image : img src= ? Thanks Ambo Dalle
Re: [fw-general] image in database
2008/9/19 Ambo Dalle [EMAIL PROTECTED]: My image in database, I need view for view image : img src= ? I suppose you are talking about a Blob field. You should create a controller action and a view that outputs the data and sends correct headers (disabling first the view renderer and the layout). -- Giorgio Sironi Piccolo Principe Ossigeno Scripter http://www.sourceforge.net/projects/ossigeno
Re: [fw-general] image in database
Giorgio you deserve a medal for deciphering that message. :) Tom On 19 Sep 2008, at 13:14, Giorgio Sironi wrote: 2008/9/19 Ambo Dalle [EMAIL PROTECTED]: My image in database, I need view for view image : img src= ? I suppose you are talking about a Blob field. You should create a controller action and a view that outputs the data and sends correct headers (disabling first the view renderer and the layout). -- Giorgio Sironi Piccolo Principe Ossigeno Scripter http://www.sourceforge.net/projects/ossigeno
RE: [fw-general] Infrastructural problems? Issuetracker, apidocs etc.
My apologies, Patrick. I'm not sure how you sent your reports, but I never received them. Could you please send me your username in a direct email to [EMAIL PROTECTED] We are aware of the API docs download issue and will work on it once we've finished our tasks around ZendCon. As far as infrastructure and general communication goes, it's certainly fair to say that the ZF team at Zend doesn't have a perfect track record. We're always trying to improve, so your feedback is greatly appreciated. That said, stuff happens. We have 4 guys on the team, and I'm in charge of Java administration right now; the team and I unfortunately cannot always make administering the site and tools our highest priority. We try to deliver the most value to the community that we can, and sometimes that means that we can't have things go 100% the way we'd like them to. I try to manage our time and tasks to avoid inconveniences to the community, but we would get far less done if we invested our time in the vigorous QA that would be required to make sure that the kinds of issues you mention never come up. I'd love to hear people's feedback on this; I have come to the conclusion that most in the community prefer this MO over the alternative by anecdotal evidence alone. Please also keep in mind that the ZF community has grown considerably since the 1.0 release, and judging by several metrics I track on, growth seems to be accelerating with every new release. While this is great for the project and the community, it sometimes does make it difficult for us to answer every communication and address everyone's individual issues. I'm always interested in any process improvements that might help us keep up with the growth, so please don't hesitate to make any suggestions. ,Wil From: mbneto [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 7:59 AM To: Patrick Schulz Cc: fw-general@lists.zend.com Subject: Re: [fw-general] Infrastructural problems? Issuetracker, apidocs etc. Hi Patrick, I suppose (hope) things will be back to normal as soon as ZendCon ends. The ZF/Zend guys were probably focused on finishing the necessary talks/tools/goals etc. On Tue, Sep 16, 2008 at 5:35 AM, Patrick Schulz [EMAIL PROTECTED] wrote: Hi, I'm not sure if there are any infrastructural problems at Zend, but I noticed that there are some things not going well. I.e. there are no apidocs downloadable right now. Until the last 1.5 release they were available. The other thing is, that I cannot report any issues. I have two accounts (one for my company one for myself) and I cannot create new issues with both of them. I created one issue with my business account, but some days later the permission to report new issues was dropped. Yes, I was logged in and I also tried to get it working by cleaning the cache and cookies - nothing helped. If I'm logged in, I also experience problems when I want to browse the wiki. I always get Not permitted errors/messages until I log out and browse it anonymously. I sent two or more emails to the Jira administrators and reported the problems, but I neither got any response nor the stuff is working. Sorry for that, but this is not the best way to manage a community... We at our company are also Zend partners but none of our requests are heard anyway. It is all a bit annoying... ...especially for ZF itself. -- Patrick Schulz
[fw-general] Serious logging - syslog and / or alternatives
Hi list, as surely most of you have a lot of free time available I'll throw in a new old topic to hopefully be discussed in this round ;-) It's about logging. I like Zend_Log, it's well done - but the writers currently available are not an option for most of my projects. Let's make some example: * stream writers writing to local files are running fine, are not blocking parallel requests and should be ok so far if you just want your logs to be written down somewhere * it's difficult to set up a secure environment allowing PHP scripts running under different UIDs writing to the same log file (mostly leading to insecure logfile permissions or strange hacks) * hacked PHP sites are able to modify (application) log entries if PHP is able to write to them * if you want a cronjob to rotate log files for a PHP-written daemon you have to implement signal handlers (who has ever done so knows that this could be a really funny task) * writing to DB is great for small projects - but impossible for sites with heavy traffic. If you want to handle high loads your application should be able to serve most requests without the need to connect to your database cluster * ZF documentation should make people aware of locking and therefore performance issues when using MyISAM instead of InnoDB on MySQL * who wants to achieve a distributed centralized logging is currently either forced to write it's own syslog writer or probably going to reimplement things syslog would usually do for you Said all this: why is there still no Zend_Log_Writer_Syslog? Windows is no excuse - PHP's syslog() function exists also there, so we should be able to satisfy ZF's rules. And those rare windows people taking care of their logs will surely be able to find out where they are going to finish ;-) We should however avoid LOCAL*-facilities, as far as I know (didn't test it) they are not available on windows. Thanks for your feedback - and have a nice weekend! Regards, Thomas Gelf
[fw-general] HeadMeta Helper...
Hi Does anyone know the correct directive for disallowing caching of images using the HeadMeta Helper? After replacing some remotes images via an upload, my browser still caches the old image. I dont want this. Someone suggested having an apache directive that refuses caching of images. Please help. Thanks - dee -- View this message in context: http://www.nabble.com/HeadMeta-Helper...-tp19574276p19574276.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Any way of accessing DB Table metadata from a Zend_Paginator object?
Nick, Thanks for writing that up. We'll look at a way to accommodate this in a future release in a way that makes sense for the component as a whole. -Matt On Thu, Sep 18, 2008 at 4:09 PM, Nick Thornley [EMAIL PROTECTED] wrote: Okay, well I'll try and explain firstly what I'm trying to achieve. I have a bunch of database tables, such as 'tags' and 'articles', and basically just needed a quick and easy way to generate admin pages out of them, to allow for adding, editing and deleting. I've written an abstract class extending Zend_Controller_Action that contains index (list view), new, edit and delete actions. These actions use class variables, that are populated in any descendant classes, variables that hold an instance of the model, and which forms to use, as well as some things for customising and 'decorating' the output. I've then made a bunch of admin controllers that extend this class and populated the class variables. An example may show this better than I can explain it: class Admin_TagsController extends My_Controller_Action_Admin { public function init() { $this-_model = new Tags(); $this-_new_form_class = 'AdminTagsNewForm'; $this-_edit_form_class = 'AdminTagsEditForm'; parent::init(); } } That's the entire controller class and it, along with some fairly generic view scripts, gives me all the basic functionality. The complexity comes in a bit with the list view, as I needed to generate a tabulated display of whatever is in the rowset. So I have a view helper to handle it. Originally it took the resultant rowset object, which meant it could get right back to the table schema and set up the columns, check which are the primary keys and what data types there are etc.. Great… but then I wanted to use pagination, originally thinking I'd just tweak my view helper to accept a Zend_Pagination object and rattle through laying out the table. However, unlike a rowset object, you can't get at the database table meta data, so although I could lay out a table, I could not do the fancy things that I had done previously, such as check the column types, display datetimes and timestamps in a friendly manner, as well as highlight the primary key column(s) and so forth. I've managed this now purely by bundling the table meta data returned by Zend_Db_Table-info() into an array with the pagination object, populated within the controller action, stored in a view variable, and then passed in the view to my view helper. Not sure how easy that was to follow, but there you go. I'm quite pleased with how it all works actually. I've many ways that I can customise things per controller, if I need to, but that's another can of worms ;) I'm not for one minute going to say there aren't many better ways, but it makes me smile! Cheers. N On 18 Sep 2008, at 21:16, Jason Eisenmenger wrote: Nick, So you're writing a new partial for every single pagination on your site? And managing how to set the links in ascending/descending, and what db columns each table column param represents if their names arent synced up? That's alot of repeat code. If not I'm curious how you've abstracted it. Jason On Thu, Sep 18, 2008 at 12:20 PM, Nick Thornley [EMAIL PROTECTED] wrote: Thanks for that, it's an interesting idea, though I'm not sure personally, it feels a little odd deciding those sort of display settings within the model. Frustrating because the info is there, it's just in a nest of protected class variables. For now I've just decided to put everything inside an array to keep it together for my view helper. Not very pretty, but it gets the job done, for the time being. Action: $select = $this-_model-select()-order($this-_row_order); $paginator = Zend_Paginator::factory($select); $paginator-setItemCountPerPage(10); $paginator-setCurrentPageNumber($curpage); $this-view-model = array( 'info' = $this-_model-info(), 'paginator' = $paginator ); Cheers N On 18 Sep 2008, at 16:15, Jason Eisenmenger wrote: Nick, I was just discussing the paginator adapter with Jurrien. I don't have a direct answer but I have this leftover paste I can send your way to show you what kind of usage I wrapped around it. I may propose it later. http://pastie.org/274967 Jason On Thu, Sep 18, 2008 at 11:06 AM, Nick Thornley [EMAIL PROTECTED] wrote: Hi everybody. I currently have a view helper that constructs a tabulated output of the data contained in Zend_Db_Table_Rowset object, using the tables meta data to determine primary keys etc., for various uses. I would love to make use of Zend_Paginator, but cannot see any obvious way to get from a Zend_Paginator object back to the database table info. Does anyone know of an obvious way? Thanks Nick
Re: [fw-general] image in database
Yeah, big up for that (the deciphering!). The attitude of some emails is slightly disturbing sometimes. ;))) On Fri, Sep 19, 2008 at 2:37 PM, Tom Graham [EMAIL PROTECTED] wrote: Giorgio you deserve a medal for deciphering that message. :) Tom On 19 Sep 2008, at 13:14, Giorgio Sironi wrote: 2008/9/19 Ambo Dalle [EMAIL PROTECTED]: My image in database, I need view for view image : img src= ? I suppose you are talking about a Blob field. You should create a controller action and a view that outputs the data and sends correct headers (disabling first the view renderer and the layout).
[fw-general] Upload a file with Flash ?
Is it possible to upload a file with Flash and Zend Framework ?? Does someone has an example ? Because i've tried to do it but it seems that the url /image/upload of the image' controller and the 'upload' action cannot be access by Flash... Flash returns me a 404 Error. And in the 'init' method of my controller i've tried to log a message but i haven't any in the file... Can someone helps me ?
[fw-general] Re: Serious logging - syslog and / or alternatives
Here what Zend_Log_Writer_Syslog could look like: class Zend_Log_Writer_Syslog extends Zend_Log_Writer_Abstract { /** * Maps Zend_Log priorities to PHP's syslog priorities * @var array */ protected $_priorities = array(Zend_Log::EMERG = LOG_EMERG, Zend_Log::ALERT = LOG_ALERT, Zend_Log::CRIT = LOG_CRIT, Zend_Log::ERR= LOG_ERR, Zend_Log::WARN = LOG_WARNING, Zend_Log::NOTICE = LOG_NOTICE, Zend_Log::INFO = LOG_INFO, Zend_Log::DEBUG = LOG_DEBUG); /** * The default log priority - for unmapped custom priorities * @var string */ protected $_defaultPriority = LOG_NOTICE; public function __construct($application = 'Zend_Log') { if (false === @openlog($application, LOG_PID, LOG_USER)) { throw new Zend_Log_Exception('Cannot connect to syslog'); } } /** * Close syslog. * * @return void */ public function shutdown() { @closelog(); } /** * Write a message to syslog. * * @param array $event event data * @return void */ protected function _write($event) { if (array_key_exists($event['priority'], $this-_priorities)) { $priority = $this-_priorityStyles[$event['priority']]; } else { $priority = $this-_defaultPriority; } if (false === @syslog($priority, $event['message'])) { throw new Zend_Log_Exception('Unable to write to syslog'); } } } Even if LOG_USER should be fine for most users (it is available on Windows too) methods allowing to change facility could be added, the rest should be fine. Could someone test if this would work out of the box on windows? Cheers, Thomas NB: I'm not sure about the @'s in front of the syslog functions - as syslog is working fine on all of my systems I never experienced such an error ;-) If no one knows I'll test it - if there is even one single scenario producing a PHP-notice they have to stay there. Thomas Gelf schrieb: Hi list, as surely most of you have a lot of free time available I'll throw in a new old topic to hopefully be discussed in this round ;-) It's about logging. I like Zend_Log, it's well done - but the writers currently available are not an option for most of my projects. Let's make some example: * stream writers writing to local files are running fine, are not blocking parallel requests and should be ok so far if you just want your logs to be written down somewhere * it's difficult to set up a secure environment allowing PHP scripts running under different UIDs writing to the same log file (mostly leading to insecure logfile permissions or strange hacks) * hacked PHP sites are able to modify (application) log entries if PHP is able to write to them * if you want a cronjob to rotate log files for a PHP-written daemon you have to implement signal handlers (who has ever done so knows that this could be a really funny task) * writing to DB is great for small projects - but impossible for sites with heavy traffic. If you want to handle high loads your application should be able to serve most requests without the need to connect to your database cluster * ZF documentation should make people aware of locking and therefore performance issues when using MyISAM instead of InnoDB on MySQL * who wants to achieve a distributed centralized logging is currently either forced to write it's own syslog writer or probably going to reimplement things syslog would usually do for you Said all this: why is there still no Zend_Log_Writer_Syslog? Windows is no excuse - PHP's syslog() function exists also there, so we should be able to satisfy ZF's rules. And those rare windows people taking care of their logs will surely be able to find out where they are going to finish ;-) We should however avoid LOCAL*-facilities, as far as I know (didn't test it) they are not available on windows. Thanks for your feedback - and have a nice weekend! Regards, Thomas Gelf
Re: [fw-general] Re: Serious logging - syslog and / or alternatives
-- Thomas Gelf [EMAIL PROTECTED] wrote (on Friday, 19 September 2008, 07:41 PM +0200): Here what Zend_Log_Writer_Syslog could look like: Could you write a proposal for this, please? This is definitely a useful addition. class Zend_Log_Writer_Syslog extends Zend_Log_Writer_Abstract { /** * Maps Zend_Log priorities to PHP's syslog priorities * @var array */ protected $_priorities = array(Zend_Log::EMERG = LOG_EMERG, Zend_Log::ALERT = LOG_ALERT, Zend_Log::CRIT = LOG_CRIT, Zend_Log::ERR= LOG_ERR, Zend_Log::WARN = LOG_WARNING, Zend_Log::NOTICE = LOG_NOTICE, Zend_Log::INFO = LOG_INFO, Zend_Log::DEBUG = LOG_DEBUG); /** * The default log priority - for unmapped custom priorities * @var string */ protected $_defaultPriority = LOG_NOTICE; public function __construct($application = 'Zend_Log') { if (false === @openlog($application, LOG_PID, LOG_USER)) { throw new Zend_Log_Exception('Cannot connect to syslog'); } } /** * Close syslog. * * @return void */ public function shutdown() { @closelog(); } /** * Write a message to syslog. * * @param array $event event data * @return void */ protected function _write($event) { if (array_key_exists($event['priority'], $this- _priorities)) { $priority = $this- _priorityStyles[$event['priority']]; } else { $priority = $this- _defaultPriority; } if (false === @syslog($priority, $event['message'])) { throw new Zend_Log_Exception('Unable to write to syslog'); } } } Even if LOG_USER should be fine for most users (it is available on Windows too) methods allowing to change facility could be added, the rest should be fine. Could someone test if this would work out of the box on windows? Cheers, Thomas NB: I'm not sure about the @'s in front of the syslog functions - as syslog is working fine on all of my systems I never experienced such an error ;-) If no one knows I'll test it - if there is even one single scenario producing a PHP-notice they have to stay there. Thomas Gelf schrieb: Hi list, as surely most of you have a lot of free time available I'll throw in a new old topic to hopefully be discussed in this round ;-) It's about logging. I like Zend_Log, it's well done - but the writers currently available are not an option for most of my projects. Let's make some example: * stream writers writing to local files are running fine, are not blocking parallel requests and should be ok so far if you just want your logs to be written down somewhere * it's difficult to set up a secure environment allowing PHP scripts running under different UIDs writing to the same log file (mostly leading to insecure logfile permissions or strange hacks) * hacked PHP sites are able to modify (application) log entries if PHP is able to write to them * if you want a cronjob to rotate log files for a PHP-written daemon you have to implement signal handlers (who has ever done so knows that this could be a really funny task) * writing to DB is great for small projects - but impossible for sites with heavy traffic. If you want to handle high loads your application should be able to serve most requests without the need to connect to your database cluster * ZF documentation should make people aware of locking and therefore performance issues when using MyISAM instead of InnoDB on MySQL * who wants to achieve a distributed centralized logging is currently either forced to write it's own syslog writer or probably going to reimplement things syslog would usually do for you Said all this: why is there still no Zend_Log_Writer_Syslog? Windows is no excuse - PHP's syslog() function exists also there, so we should be able to satisfy ZF's rules. And those rare windows people taking care of their logs will surely be able to find out where they are going to finish ;-) We should however avoid LOCAL*-facilities, as far as I know (didn't test it) they are not available on windows. Thanks for your feedback - and have a nice weekend! -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
[fw-general] dojo programmatic declaration not working
can anyone help me, when I try to use programmatic declaration of dijit, it won't work unless I specify which dijit it belongs NOT WORKING CODE ? echo $this-numberSpinner( 'test', 5, array( 'min' = -10, 'max' = 10, 'places' = 2 ), array( 'maxlenth' = 3 ) ); ? WORKING CODE ? echo $this-numberSpinner( 'test', 5, array( 'min' = -10, 'max' = 10, 'places' = 2 ), array( 'maxlenth' = 3, 'dojoType' = 'dijit.form.NumberSpinner' ) ); ? The same also happen in form, NOT WORKING CODE $form-addElement( 'Button', 'foo', array( 'label' = 'Button Label' ) ); WORKING CODE $form-addElement( 'Button', 'foo', array( 'label' = 'Button Label', 'dojoType' = 'dijit.form.Button' ) ); And for the code working, I need to explicitly include the module I need $this-dojo()-setDjConfigOption('parseOnLoad', true) -requireModule('dijit.form.NumberSpinner') -requireModule('dijit.form.Button'); Please help, because in the Zend framework's manual, I don't need to include the dojoType parameter Thank you -- View this message in context: http://www.nabble.com/dojo-programmatic-declaration-not-working-tp19577345p19577345.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Upload a file with Flash ?
The flash is created dynamically : http://www.sitepen.com/blog/2008/09/02/the-dojo-toolkit-multi-file-uploader/ I'm using regular http. Robin Skoglund a écrit : Hmm, are you using https or regular http? I recall experiencing something like this once. The fix in that case was to load the flash file with an absolute path (when loading it into the DOM), otherwise the Flash sandbox got confused. robinsk On Fri, Sep 19, 2008 at 7:34 PM, Apsy [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is it possible to upload a file with Flash and Zend Framework ?? Does someone has an example ? Because i've tried to do it but it seems that the url /image/upload of the image' controller and the 'upload' action cannot be access by Flash... Flash returns me a 404 Error. And in the 'init' method of my controller i've tried to log a message but i haven't any in the file... Can someone helps me ?
[fw-general] How to use sections with Zend_Config and PHP Arrays
Hi, I know that both Zend_Config_Ini and Zend_Config_Xml support sections and extending sections for config data definitions. In the manual I read that Zend_Config also supports sections when used with PHP arrays. If this is right, how can this be achieved? If not, I think this passage of the manual is a little unclear: The Zend_Config family of classes enables configuration data to be organized into sections. Zend_Config adapter objects may be loaded with a single specified section, multiple specified sections, or all sections (if none are specified). http://framework.zend.com/manual/en/zend.config.theory_of_operation.html Thanks for clarification. Best regards, Ralf
[fw-general] Zend_File_Transfer_Http and mime_type
Hey, I tried to figure this out myself and starred at the code (in Zend/File/Transfer/Adapter/Http.php and the Validator file), but I couldn't figure out where it gets the mime type value of the uploaded file from when I assign the validator to it. Does it just populate it with whatever is in $_FILES? Thanks, Till
[fw-general] Zend Forms - Dynamic Content
I figured out how to dynamically add sub-forms to a form using Ajax and Zend Framework. I want to share what I've done as well as seek feedback on how I could implement it better. I've setup Drupal on my home computer to host the article and comments. I've also set up a link to demonstrate working code. Article: http://www.canadiandev.com http://www.canadiandev.com/ Demo: http://dynamic.canadiandev.com http://dynamic.canadiandev.com/ Thanks, Jamie
[fw-general] Re: Serious logging - syslog and / or alternatives
Done: http://framework.zend.com/wiki/display/ZFPROP/Zend_Log_Writer_Syslog+-+Thomas+Gelf As it is my first proposal: - do you consider it ready for review? - and if yes: how to move it there? And: could you be so kind to delete the Zend_Log_-proposal for me? I created it accidentally and it seems that I'm not allowed to remove it. Thanks a lot for your help! Regards, Thomas Matthew Weier O'Phinney schrieb: -- Thomas Gelf [EMAIL PROTECTED] wrote (on Friday, 19 September 2008, 07:41 PM +0200): Here what Zend_Log_Writer_Syslog could look like: Could you write a proposal for this, please? This is definitely a useful addition.
Re: [fw-general] HeadMeta Helper...
i have tried something like this but to no avail: ?php echo $this-headMeta()-appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT') -appendHttpEquiv('pragma', 'no-cache') -appendHttpEquiv('Cache-Control', 'no-cache') -appendHttpEquiv('Content-Type', 'image/jpg'); ? dele454 wrote: Hi Does anyone know the correct directive for disallowing caching of images using the HeadMeta Helper? After replacing some remotes images via an upload, my browser still caches the old image. I dont want this. Someone suggested having an apache directive that refuses caching of images. Please help. Thanks - dee -- View this message in context: http://www.nabble.com/HeadMeta-Helper...-tp19574276p19581853.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] dojo programmatic declaration not working
-- ignite7 [EMAIL PROTECTED] wrote (on Friday, 19 September 2008, 11:25 AM -0700): can anyone help me, when I try to use programmatic declaration of dijit, it won't work unless I specify which dijit it belongs snip The same also happen in form, snip And for the code working, I need to explicitly include the module I need $this-dojo()-setDjConfigOption('parseOnLoad', true) -requireModule('dijit.form.NumberSpinner') -requireModule('dijit.form.Button'); Please help, because in the Zend framework's manual, I don't need to include the dojoType parameter The dojo integration is intended to work *with* Zend_Layout or some other Composite/Two Step View solution. In other words, you need to echo the dojo() view helper placeholder in your layout script: html head titleDojo example/title ?= $this-dojo() ? /head body ?= $this-layout()-content ? /body /html Rendering the dojo() view helper any time prior to rendering your elements -- or not rendering it at all -- will result in none of the required javascript or CSS includes being performed. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
Re: [fw-general] Re: Serious logging - syslog and / or alternatives
-- Thomas Gelf [EMAIL PROTECTED] wrote (on Saturday, 20 September 2008, 12:55 AM +0200): Done: http://framework.zend.com/wiki/display/ZFPROP/Zend_Log_Writer_Syslog+-+Thomas+Gelf Excellent, thanks! As it is my first proposal: - do you consider it ready for review? Ready for Review means that you're ready to receive community feedback; it's up to you to make that decision. We ask that you have community review for at least a week prior to then re-parenting it to the 'Ready for Recommendation' area -- which is when the Zend internal team will review it and decide whether to include it, and where. - and if yes: how to move it there? Edit the page. Below the area where you add content, there's a tree -- simply drag your page's entry to the appropriate section, and then save the page. And: could you be so kind to delete the Zend_Log_-proposal for me? I created it accidentally and it seems that I'm not allowed to remove it. I'll see what can be done about that. :) Thanks a lot for your help! Regards, Thomas Matthew Weier O'Phinney schrieb: -- Thomas Gelf [EMAIL PROTECTED] wrote (on Friday, 19 September 2008, 07:41 PM +0200): Here what Zend_Log_Writer_Syslog could look like: Could you write a proposal for this, please? This is definitely a useful addition. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
AW: [fw-general] HeadMeta Helper...
He dele454, you cannot set HTTP-EQUIV meta-tags on an image... These are (X)HTML-tags to be used in (X)HTML-pages - images on the other side are send as binary data in the according format (JPEG, GIF, PNG for example), adding meta-tags to these data-streams has no effect other then corrupting the image data. You have to set the response headers in your action accordingly: ?php $this-getResponse()-setHeader('Content-Type', 'image/jpg'); $this-getResponse()-setHeader('Cache-Control', 'no-cache'); [...] ? Best regards Stefan -Ursprüngliche Nachricht- Von: dele454 [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 20. September 2008 03:52 An: fw-general@lists.zend.com Betreff: Re: [fw-general] HeadMeta Helper... i have tried something like this but to no avail: ?php echo $this-headMeta()-appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT') -appendHttpEquiv('pragma', 'no-cache') -appendHttpEquiv('Cache-Control', 'no-cache') -appendHttpEquiv('Content-Type', 'image/jpg'); ? dele454 wrote: Hi Does anyone know the correct directive for disallowing caching of images using the HeadMeta Helper? After replacing some remotes images via an upload, my browser still caches the old image. I dont want this. Someone suggested having an apache directive that refuses caching of images. Please help. Thanks - dee -- View this message in context: http://www.nabble.com/HeadMeta-Helper...-tp19574276p19581853.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: AW: [fw-general] HeadMeta Helper...
Thanks for this Am using the Zend_Layout how then do i make my layout scripts see this declaration after adding it to my action controller. At present though i have added it to my controller it isnt visible on my layout template and image is still caching Thanks Stefan Gehrig wrote: He dele454, you cannot set HTTP-EQUIV meta-tags on an image... These are (X)HTML-tags to be used in (X)HTML-pages - images on the other side are send as binary data in the according format (JPEG, GIF, PNG for example), adding meta-tags to these data-streams has no effect other then corrupting the image data. You have to set the response headers in your action accordingly: ?php $this-getResponse()-setHeader('Content-Type', 'image/jpg'); $this-getResponse()-setHeader('Cache-Control', 'no-cache'); [...] ? Best regards Stefan -Ursprüngliche Nachricht- Von: dele454 [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 20. September 2008 03:52 An: fw-general@lists.zend.com Betreff: Re: [fw-general] HeadMeta Helper... i have tried something like this but to no avail: ?php echo $this-headMeta()-appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT') -appendHttpEquiv('pragma', 'no-cache') -appendHttpEquiv('Cache-Control', 'no-cache') -appendHttpEquiv('Content-Type', 'image/jpg'); ? dele454 wrote: Hi Does anyone know the correct directive for disallowing caching of images using the HeadMeta Helper? After replacing some remotes images via an upload, my browser still caches the old image. I dont want this. Someone suggested having an apache directive that refuses caching of images. Please help. Thanks - dee -- View this message in context: http://www.nabble.com/HeadMeta-Helper...-tp19574276p19581853.html Sent from the Zend Framework mailing list archive at Nabble.com. - dee -- View this message in context: http://www.nabble.com/HeadMeta-Helper...-tp19574276p19582595.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend Grid Proposal??
Hi, I was trying to find a ZF data grid , and after google, Zend Framework Grid I found this site. http://www.petala-azul.com/blog ( http://www.petala-azul.com/grid examples ) The grid seams good and simple, the author says it will be open source. This means we gonna have a Zend_Grid Component?? At the examples pages we can also see alpha written at the top. My point is: Is this in any way related to ZF team, or is a standalone work. If this is a standalone work, is Zend working on something similar. (Not referring to Dojo) Reagrds, -- View this message in context: http://www.nabble.com/Zend-Grid-Proposal---tp19582725p19582725.html Sent from the Zend Framework mailing list archive at Nabble.com.