Re: [fw-general] Zend_Locale - simplexml_load_file - parser error : Document is empty
In any case, this error is not caused by ZF, but from simplexml. When you say that the file is always there, and you've seen that the error is thrown by simplexml_load_file I expect that there is a caching issue or a problem with multiple accesses/multithreading. Have you installed APC or some other file caching extension maybe on the OS ? I've seen sort of this error reported but without being able to reproduce it on any machine. Do you receive this error always, or only particular from time to time ? Which ZF release, which PHP release, which OS ? Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Terre Porter" To: Sent: Friday, January 30, 2009 7:15 AM Subject: [fw-general] Zend_Locale - simplexml_load_file - parser error : Document is empty Anyone know what might have caused this error ? Warning: simplexml_load_file() [function.simplexml-load-file]: /home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data/en_US.xml:1: parser error : Document is empty in /home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data.php on line 146 This was working earlier today but suddenly has decided to die. $locale = new Zend_Locale('en_US'); The code from data.php : if (empty(self::$_ldml[(string) $locale])) { $filename = dirname(__FILE__) . '/Data/' . $locale . '.xml'; if (!file_exists($filename)) { require_once 'Zend/Locale/Exception.php'; throw new Zend_Locale_Exception("Missing locale file '$filename' for '$locale' locale."); } self::$_ldml[(string) $locale] = simplexml_load_file($filename); } The file is not empty. http://www.unicode.org/cldr/dtd/1.6/ldml.dtd";> Thanks, Terre
[fw-general] Zend_Locale - simplexml_load_file - parser error : Document is empty
Anyone know what might have caused this error ? Warning: simplexml_load_file() [function.simplexml-load-file]: /home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data/en_US.xml:1: parser error : Document is empty in /home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data.php on line 146 This was working earlier today but suddenly has decided to die. $locale = new Zend_Locale('en_US'); The code from data.php : if (empty(self::$_ldml[(string) $locale])) { $filename = dirname(__FILE__) . '/Data/' . $locale . '.xml'; if (!file_exists($filename)) { require_once 'Zend/Locale/Exception.php'; throw new Zend_Locale_Exception("Missing locale file '$filename' for '$locale' locale."); } self::$_ldml[(string) $locale] = simplexml_load_file($filename); } The file is not empty. http://www.unicode.org/cldr/dtd/1.6/ldml.dtd";> Thanks, Terre
[fw-general] Re: Generate PDF, DOCX, DOC and RTF with ZF
Hello all I have written quite a lot of e-mail off list in response to my original post. Here is a summary: 1. In addition to the version which is publicly available over the Internet, we will be releasing a commercial version, which can be installed locally in a client network. The price point of this product has yet to be set. I wrote about this here: http://www.phplivedocx.org/2009/01/16/using-phplivedocx-in-your-own-projects/ 2. It is possible to encrypt communication between client and server with SSL. Indeed, when personal data are being sent over the wire, I would recommend this approach. 3. The following template file formats (input) are supported: * DOCX - Microsoft Word DOCX Format * DOC - Microsoft Word DOC Format * RTF - Rich Text Format File * TXD - TX Text Control Format The following document file formats are supported: * DOCX - Microsoft Word DOCX Format * DOC - Microsoft Word DOC Format * RTF - Rich Text Format File * PDF - Acrobat Portable Document Format * TXD - TX Text Control Format * TXT - ANSI Plain Text It is possible that in a future version of the backend technology (TX Text Control) that the formats ODT, ODS, ODP will be supported. However, currently this is not planned. Also see: http://www.phplivedocx.org/2009/01/13/template-vs-document-whats-the-difference/ I would also be really interested in hearing in which kind of applications you would like to use phpLiveDocx. At the company for which I work, we use phpLiveDocx to generate invoices, quotations and price lists. I have spoken to an organization, which is planning on using phpLiveDocx to generate vouchers (as PDF) and which are then e-mailed in a batch job to around 15,000 recipients per day. What about you? What would your applications be with phpLiveDocx? Jonathan Maron On Thu, Jan 29, 2009 at 10:02 AM, Jonathan Maron wrote: > Hello all > > Zend_Pdf is a great component to generate PDF files with ZF. If you > want to populate PDF templates with text, however, it can be very time > consuming to get the positioning of the text fields just right. I > wrote about this issue here: > > http://tinyurl.com/bym43f > > After having developed several ZF applications in which text had to be > inserted into PDF templates, I knew there must be a better way and > went about developing one. > > The result is a project called phpLiveDocx, which is an unofficial > component for ZF. (If it were to become official component some day, I > would be thrilled.) > > The idea is really simple: > > 1. You design a template in a word processing package (such as Open > Office or Word). In the template, you define any number of text > fields, into which data will be later inserted (same idea as > mail-merge). > > 2. Using phpLiveDocx, you assign data to the template. > > 3. You generate and save the populated document as a PDF, DOCX, DOC or RTF > file. > > The great advantage of this approach is that you uncouple the > formatting of the template and the position of the text fields. In > other words, should a designer change the layout of a template, there > is no need for a developer to update the positioning of the text > fields. > > Of course, the other great advantage is that you can save the > resulting document as DOCX, DOC or RTF, in addition to PDF. > > Here is a really basic example, which illustrates how phpLiveDocx works: > > http://tinyurl.com/ao9c2v > > (The template and resulting document can be download from the bottom > of the post.) > > Here is a very short getting started guide and download links: > > http://tinyurl.com/db23fc > > If you need any help or want to talk about phpLiveDocx, just follow up > here or post me a message: > > http://tinyurl.com/culdpj > > Thank you > > Jonathan Maron > http://www.phpLiveDocx.org >
[fw-general] How to create select element of Zend_Form using xml
Hi, I am stuck at a point where I need to create an html select list. I want to do this using xml, but I don know the grammar for the 'select'. Am trying to use this: . . . select Is active Choose one 0 I have inserted the highlighted part for trial purpose. Please, can someone post the correct grammar for this? Thanks, Vibhor
Re: [fw-general] free Zend Framework Screencasts for your desktop and iPhone
The download link is for the higher resolution quicktime file (that's being streamed into the flash player on the site). Unfortunately, I have to re-encode for the iPhone at 640x480. Grabbing it from iTunes is probably the best way. Thanks! j On Thu, Jan 29, 2009 at 5:25 PM, drj201 wrote: > > Excellent resource! Thank you. Long may this continue. I am subscribed to > the > podcasts in iTunes but FYI I am unable to view video on my iPhone by > clicking the "Download quicktime" link. > > Thanks again. > > > > Jonathan Lebensold wrote: > > > > Hello List, > > > > I recently started a site with screencasts about the Zend Framework. I'm > > trying to update this site every week with a new podcast. > > > > In honour of the author of railscasts, the site is called zendcasts: > > > > http://www.zendcasts.com/ > > > > I always appreciate of feedback! > > > > Best Regards, > > - > > Jon Lebensold > > > > > > -- > View this message in context: > http://www.nabble.com/free-Zend-Framework-Screencasts-for-your-desktop-and-iPhone-tp21733499p21737345.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
Re: [fw-general] Zend Layout problem with sub-actions
Hi, most likely a path issue. Be sure to always use paths relative to the public folder of your ZF app (i.e., yourdomain.com/your_zf_app/), and always prepend the base URL of said folder to your paths. Most people I know have used a simple-to-write BaseUrl view helper that pulls the base url from your request object. If you need further assistance, please also show some example code (from your layout view script), since my crystal ball is currently bein repaired. Best regards, Tobias 2009/1/29 lkimme : > > My layout.phtml file works fine if I try to render from a > controller/indexAction function, but when I try to display from a > controller/non-indexAction function the css files and image files that I > link to all fail. > > I am including files in my controller/init() method like this: > >$response->insert('header', $this->view->render('header.phtml')); > > Again, it works fine in the controller/indexAction function, but not in the > controller/non-indexAction function. > > Thanks for any help. > -- > View this message in context: > http://www.nabble.com/Zend-Layout-problem-with-sub-actions-tp21734622p21734622.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
Re: [fw-general] free Zend Framework Screencasts for your desktop and iPhone
Excellent resource! Thank you. Long may this continue. I am subscribed to the podcasts in iTunes but FYI I am unable to view video on my iPhone by clicking the "Download quicktime" link. Thanks again. Jonathan Lebensold wrote: > > Hello List, > > I recently started a site with screencasts about the Zend Framework. I'm > trying to update this site every week with a new podcast. > > In honour of the author of railscasts, the site is called zendcasts: > > http://www.zendcasts.com/ > > I always appreciate of feedback! > > Best Regards, > - > Jon Lebensold > > -- View this message in context: http://www.nabble.com/free-Zend-Framework-Screencasts-for-your-desktop-and-iPhone-tp21733499p21737345.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] File element for Zend_Dojo_Form
Zend_Dojo_Form has elements like Button, CheckBox, RadioButton, SimpleTextarea which implement the same functionality as regular Zend_Form elements but allow you to keep you form elements in the same style/theme. Although there is Zend_Form_Element_File I haven't found an equivalent for Zend_Dojo_Form. It would be nice to have it.
[fw-general] Zebd_Form Select Element
Hello, I am trying to create a select box that ends up lookign like this: Top Level * First Child * * First Gandchild * Second Child * * First Second Gandchild I have a recursive function that reads and can build the select elemtn with html, but then how would I add it to the send_form that I am building. If i just have the array ($this->_getTreeStrut()) sent to: $this->addElement('select', 'parent_structure', array( 'label' => 'Parent: ', 'id' => 'parent_structure, 'isArray' => false, 'multiOptions' => $this->_getTreeStrut(), // this get the values and such for options. ) ); I loose all my values. Even if i add the val as the key, how would I add blank records and disables ones specifically? The '* ' in the menu labels are being generated by str_repeat iin the recursive function, which i would like to keep int he final generated znd_form element. Is there a way to just send my generated html to an element that can be included in the Z_form object i am creating? Thanks. -- View this message in context: http://www.nabble.com/Zebd_Form-Select-Element-tp21735298p21735298.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] The Calendar of Dojo DateTextBox Translation
Dojo has rich i18n capabilities. I use Dojo DateTextBox element in my instance of Zend_Dojo_Form. I wonder how to setup translation for this element. I mean if I use French translation for instance how to force the drop-down calendar to display the month name and weeks in French? I haven't found anything related in the documentation and would appreciate any help.
[fw-general] Zend Layout problem with sub-actions
My layout.phtml file works fine if I try to render from a controller/indexAction function, but when I try to display from a controller/non-indexAction function the css files and image files that I link to all fail. I am including files in my controller/init() method like this: $response->insert('header', $this->view->render('header.phtml')); Again, it works fine in the controller/indexAction function, but not in the controller/non-indexAction function. Thanks for any help. -- View this message in context: http://www.nabble.com/Zend-Layout-problem-with-sub-actions-tp21734622p21734622.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] free Zend Framework Screencasts for your desktop and iPhone
Hello List, I recently started a site with screencasts about the Zend Framework. I'm trying to update this site every week with a new podcast. In honour of the author of railscasts, the site is called zendcasts: http://www.zendcasts.com/ I always appreciate of feedback! Best Regards, - Jon Lebensold
[fw-general] Zend Cache instance PDO
I'm trying to cache with an frontend core and a backend file, an instance of a class who extends Zend_Db_Table_Abstract. I'm getting the following error : You cannot serialize or unserialize PDO instances Is it impossible to cache a Zend_Db_Table_Abstract ?
[fw-general] Exception occurs when I try to send a mail
Hi, I have the following exception when sending a mail: Warning: Zend_Mail_Protocol_Abstract::require_once(Zend/Mail/Protocol/Exception.php) [zend-mail-protocol-abstract.require-once]: failed to open stream: No such file or directory in /home/emas/domains/emas-ltd.be/public_html/library/Zend/Mail/Protocol/Abstract.php on line 377 Fatal error: Zend_Mail_Protocol_Abstract::require_once() [function.require]: Failed opening required 'Zend/Mail/Protocol/Exception.php' (include_path='./library:./application/models/:./application/helpers/:./application/exceptions/:./application/constants/') in /home/emas/domains/emas-ltd.be/public_html/library/Zend/Mail/Protocol/Abstract.php on line 377 I doubt it is a path problem since all my application works except the mails ... Can anyone help ? Thank you ! -- View this message in context: http://www.nabble.com/Exception-occurs-when-I-try-to-send-a-mail-tp21729192p21729192.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Exceptions
Zend_Exception is specific to the Zend Framework. Exception is the most generic PHP exception type. -- Chris Weldon On Thu, Jan 29, 2009 at 9:07 AM, debussy007 wrote: > > What is the difference between: > > > } catch (Zend_Exception $e) { > > and > > > } catch (Exception $e) { > > > ? > > > Chris Weldon wrote: >> >> } catch (Zend_Mail_Exception $e) { >> >> All cases: >> >> } catch (Zend_Exception $e) { >> -- >> Chris Weldon >> >> On Thu, Jan 29, 2009 at 8:08 AM, debussy007 wrote: >>> >>> Hi, >>> >>> I would like to catch any exception that may occur, when sending a mail >>> and >>> using the config. >>> I am not sure of what I should specify in ... } catch ( ) { ? >>> >>> Thank you for any advice! >>> -- >>> View this message in context: >>> http://www.nabble.com/Exceptions-tp21727533p21727533.html >>> Sent from the Zend Framework mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Christopher Weldon >> http://chrisweldon.net >> ch...@chrisweldon.net >> >> > > -- > View this message in context: > http://www.nabble.com/Exceptions-tp21727533p21728660.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Christopher Weldon http://chrisweldon.net ch...@chrisweldon.net
Re: [fw-general] Exceptions
What is the difference between: } catch (Zend_Exception $e) { and } catch (Exception $e) { ? Chris Weldon wrote: > > } catch (Zend_Mail_Exception $e) { > > All cases: > > } catch (Zend_Exception $e) { > -- > Chris Weldon > > On Thu, Jan 29, 2009 at 8:08 AM, debussy007 wrote: >> >> Hi, >> >> I would like to catch any exception that may occur, when sending a mail >> and >> using the config. >> I am not sure of what I should specify in ... } catch ( ) { ? >> >> Thank you for any advice! >> -- >> View this message in context: >> http://www.nabble.com/Exceptions-tp21727533p21727533.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > > > -- > Christopher Weldon > http://chrisweldon.net > ch...@chrisweldon.net > > -- View this message in context: http://www.nabble.com/Exceptions-tp21727533p21728660.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Exceptions
} catch (Zend_Mail_Exception $e) { All cases: } catch (Zend_Exception $e) { -- Chris Weldon On Thu, Jan 29, 2009 at 8:08 AM, debussy007 wrote: > > Hi, > > I would like to catch any exception that may occur, when sending a mail and > using the config. > I am not sure of what I should specify in ... } catch ( ) { ? > > Thank you for any advice! > -- > View this message in context: > http://www.nabble.com/Exceptions-tp21727533p21727533.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Christopher Weldon http://chrisweldon.net ch...@chrisweldon.net
Re: [fw-general] Bug in Zend_File_transfer
Thomas Weidner pisze: Just to note... Your reproduction example can impossibly work. It throws an exception at initiation. Greetings Thomas Weidner - Original Message - From: "kamil" To: Sent: Thursday, January 29, 2009 1:56 PM Subject: [fw-general] Bug in Zend_File_transfer |For example $upload = new Zend_File_Transfer(); $||upload ||->setDestination('some path') $upload->addFilter('Rename', 'C:\new\n1', 'file1') ->addFilter('Rename', 'C:\new\w1', 'file2'); This is only example but only works one the last filter I have problem adding the same filter and propably validator to two diffrent files want work beacuse there will be used only the last filter There is in code a bug $this->_filters[$class] = $filter; on line 683 in zend_file_adpter_abstract and for validators will be the same or i am doing something wrong sorry for english | try this ,, maybe i did somthing wrong , now i dont have this code , because i did this by my way $adapter = new Zend_File_Transfer_Adapter_Http(array('ignoreNoFile' => true)); $adapter->setDestination(Zend_Registry::get('config')->files) $adapter->addFilter('Rename', array('target' => Zend_Registry::get('config')->files.'note_'.$id,'overwrite' => true), 'note') ->addFilter('Rename', array('target' => Zend_Registry::get('config')->files.'terms_'.$id,'overwrite' => true), 'terms');
[fw-general] Exceptions
Hi, I would like to catch any exception that may occur, when sending a mail and using the config. I am not sure of what I should specify in ... } catch ( ) { ? Thank you for any advice! -- View this message in context: http://www.nabble.com/Exceptions-tp21727533p21727533.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Bug in Zend_File_transfer
Just to note... Your reproduction example can impossibly work. It throws an exception at initiation. Greetings Thomas Weidner - Original Message - From: "kamil" To: Sent: Thursday, January 29, 2009 1:56 PM Subject: [fw-general] Bug in Zend_File_transfer |For example $upload = new Zend_File_Transfer(); $||upload ||->setDestination('some path') $upload->addFilter('Rename', 'C:\new\n1', 'file1') ->addFilter('Rename', 'C:\new\w1', 'file2'); This is only example but only works one the last filter I have problem adding the same filter and propably validator to two diffrent files want work beacuse there will be used only the last filter There is in code a bug $this->_filters[$class] = $filter; on line 683 in zend_file_adpter_abstract and for validators will be the same or i am doing something wrong sorry for english |
Re: [fw-general] Directory structure in zend
Routers. Plain and simple. What you can end up doing is "virtually" providing the same URL combinations (with http://site/admin/:module/:action) by using router definitions to reroute requests to the appropriate controller in a module. So, you could theoretically have your folder structure as: \application \modules \authentication \controllers \IndexController.php \AdminController.php \othermodule You'd probably normally access it by going to http://site/authentication/admin/:action, but routers can allow you to swap authentication and admin and the user wouldn't know the difference. The general idea behind doing it this way is you program your logic (including admin logic) to remain in it's respective area. In other words, you can keep your admin logic for orders (as an example), in the orders module instead of having a separate module dubbed "admin" that contains logic from every different portion of your application. It's much cleaner separation this way. -- Chris Weldon On Thu, Jan 29, 2009 at 3:36 AM, Anees wrote: > > Hi, > > Before i came to zend i followed the following structure for keeping Both > front end and Back end(admin) for a site separately > > \Site > \images > \index.php > \contents > \config.php > \other files. > Plus a folder > \admin > \index.php > \images > \contents and other files > > So 'Admin' side resides entirely separate from the front end in the \admin > directory > > i just followed the same idea when i came to zend, but found difficulties > when i used AUTH controller.. > > i read about modules to separate the controllers with 'Modules' > But i couldn't follow how exactly it should apply in the sites > > If anyone have idea about how to organize this > please help > > Thanks in Advance > Anees > Regards > Anees > -- > View this message in context: > http://www.nabble.com/Directory-structure-in-zend-tp21723257p21723257.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Christopher Weldon http://chrisweldon.net ch...@chrisweldon.net
Re: [fw-general] Bug in Zend_File_transfer
kamil pisze: |For example $upload = new Zend_File_Transfer(); $||upload ||->setDestination('some path') $upload->addFilter('Rename', 'C:\new\n1', 'file1') ->addFilter('Rename', 'C:\new\w1', 'file2'); This is only example but only works one the last filter I have problem adding the same filter and propably validator to two diffrent files want work beacuse there will be used only the last filter There is in code a bug $this->_filters[$class] = $filter; on line 683 in zend_file_adpter_abstract and for validators will be the same or i am doing something wrong sorry for english | I saw an note in manual Note that even though setting the same filter multiple times is allowed, doing so can lead to issues when using different options for the same filter. But for me this is a bug and in this case i can`t change multiple files , you cant add the same filter with dirffent options to 2 diffrent files
[fw-general] Bug in Zend_File_transfer
|For example $upload = new Zend_File_Transfer(); $||upload ||->setDestination('some path') $upload->addFilter('Rename', 'C:\new\n1', 'file1') ->addFilter('Rename', 'C:\new\w1', 'file2'); This is only example but only works one the last filter I have problem adding the same filter and propably validator to two diffrent files want work beacuse there will be used only the last filter There is in code a bug $this->_filters[$class] = $filter; on line 683 in zend_file_adpter_abstract and for validators will be the same or i am doing something wrong sorry for english |
[fw-general] Dojo setup issue
In the bootstrap: //setup dojo $view = new Zend_View; Zend_Dojo::enableView($view); $view->dojo()->setLocalPath('http://localhost/scripts/dojo/dojo/dojo.js') ->addStyleSheetModule('dijit.themes.tundra') ->disable(); In the action controller init() method: Zend_Dojo::enableView($this->view); $this->view->dojo()->enable(); The form class: class Forms_AddUser extends Zend_Dojo_Form { public function init() { $this->setMethod('post'); $this->addElement( 'FilteringSelect', 'test_select', array( 'label' => 'Label', 'multiOptions' => array( 'option1' => 'Option1', 'option2' => 'Option2' ) ) ); $this->setDecorators(array( array('ViewScript', array('viewScript' => 'forms/adduser.phtml')) )); } } The view script decorator: element->test_select; ?> The layout script: doctype( 'XHTML1_TRANSITIONAL'); ?> headTitle(); ?> headMeta(); ?> headLink(); ?> headStyle(); ?> dojo()->isEnabled()) { echo $this->dojo(); } ?> headScript(); ?> layout()->content; ?> I get the following HTML code as a result: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://localhost/scripts/dojo/dojo/dojo.js";> // Label Option1 Option2 ...but both IE and Firefox show only the label and don't show the filtering select at all. If I add more dojo elements to the form they will show but as regular Zend_Form elements not Dojo. ZendFramework 1.7.2 Dojo is from ZF externals I would appreciate any advice.
[fw-general] Zend_Service_LiveDocx Proposal (phpLiveDocx)
Hello again Following the release of phpLiveDocx this morning, I have submitted a proposal for the classes to be included in the Zend Framework: http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_LiveDocx Your feedback is appreciated. Jonathan Maron http://www.phpLiveDocx.org
Re: [fw-general] Zend_Cache_Frontend_Page behaviour
I had todo after hours this: 'regexps' => array( '^/Mapa\+do\+Site' => array('cache' => true, 'cache_with_session_variables' => true, 'cache_with_cookie_variables'=> true, 'make_id_with_session_variables' => false, 'make_id_with_cookie_variables' => false, ), ), I'd like an explanation for this because I'm new to zend Page caching. Can't understand these lines: 'cache_with_session_variables' => true, 'cache_with_cookie_variables'=> true, 'make_id_with_session_variables' => false, 'make_id_with_cookie_variables' => false, But the only way it worked. =/ -- View this message in context: http://www.nabble.com/Zend_Cache_Frontend_Page-behaviour-tp15109143p21724803.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] HeadScript: the first file is non append()ed ?
Hi all. I have this piece of code: public function formAction() { $this->view->headScript()->appendFile('/js/myscripts.js'); $this->view->headScript()->appendFile('/js/jquery.tooltip.js'); $this->view->headScript()->appendFile('/js/jquery.dimensions2.js'); $this->view->headLink()->appendStylesheet('/js/jquery.tooltip.css'); . } and the HTML output is: Where is /js/myscripts.js ? If I invert the first two line the output is: The first script is always not writed. Infact if I insert a 4th line: $this->view->headScript()->appendFile('/js/jquery.tooltip.js'); $this->view->headScript()->appendFile('/js/myscripts.js'); $this->view->headScript()->appendFile('/js/jquery.dimensions2.js'); $this->view->headScript()->appendFile('/js/myscripts2.js'); the HTML output is : I have solved with this line before others: $this->view->headScript()->appendFile(''); Why this ? Is this a bug or what ? M. -- Michel 'ZioBudda' Morelli mic...@ziobuddalabs.it Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: mic...@ziobuddalabs.it JABBER: mic...@gmail.com
Re: [fw-general] Generate PDF, DOCX, DOC and RTF with ZF
This looks awesome! I would really be happy if you would propose that as an addition to the ZF. :) You have to sign the CLA and then make a proposal on the Proposal Wiki http://framework.zend.com/wiki/display/ZFPROP What about arrays or Iterators and simple IF statements. Are they supported or could they be implemented? That would make the solution very powerful. On the blog you only show DocX examples, how are Doc and Rtf supported? greetings, Benjamin On Thursday 29 January 2009 10:02:50 Jonathan Maron wrote: > Hello all > > Zend_Pdf is a great component to generate PDF files with ZF. If you > want to populate PDF templates with text, however, it can be very time > consuming to get the positioning of the text fields just right. I > wrote about this issue here: > > http://tinyurl.com/bym43f > > After having developed several ZF applications in which text had to be > inserted into PDF templates, I knew there must be a better way and > went about developing one. > > The result is a project called phpLiveDocx, which is an unofficial > component for ZF. (If it were to become official component some day, I > would be thrilled.) > > The idea is really simple: > > 1. You design a template in a word processing package (such as Open > Office or Word). In the template, you define any number of text > fields, into which data will be later inserted (same idea as > mail-merge). > > 2. Using phpLiveDocx, you assign data to the template. > > 3. You generate and save the populated document as a PDF, DOCX, DOC or RTF > file. > > The great advantage of this approach is that you uncouple the > formatting of the template and the position of the text fields. In > other words, should a designer change the layout of a template, there > is no need for a developer to update the positioning of the text > fields. > > Of course, the other great advantage is that you can save the > resulting document as DOCX, DOC or RTF, in addition to PDF. > > Here is a really basic example, which illustrates how phpLiveDocx works: > > http://tinyurl.com/ao9c2v > > (The template and resulting document can be download from the bottom > of the post.) > > Here is a very short getting started guide and download links: > > http://tinyurl.com/db23fc > > If you need any help or want to talk about phpLiveDocx, just follow up > here or post me a message: > > http://tinyurl.com/culdpj > > Thank you > > Jonathan Maron > http://www.phpLiveDocx.org -- Benjamin Eberlei http://www.beberlei.de
Re: [fw-general] Generate PDF, DOCX, DOC and RTF with ZF
The only problem i see here is that it's free.. for now. :) Maybe you could start thinking on a commercial (and encoded) version that runs on client server (as a service alternative).. regards Francisco A
[fw-general] Directory structure in zend
Hi, Before i came to zend i followed the following structure for keeping Both front end and Back end(admin) for a site separately \Site \images \index.php \contents \config.php \other files. Plus a folder \admin \index.php \images \contents and other files So 'Admin' side resides entirely separate from the front end in the \admin directory i just followed the same idea when i came to zend, but found difficulties when i used AUTH controller.. i read about modules to separate the controllers with 'Modules' But i couldn't follow how exactly it should apply in the sites If anyone have idea about how to organize this please help Thanks in Advance Anees Regards Anees -- View this message in context: http://www.nabble.com/Directory-structure-in-zend-tp21723257p21723257.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Generate PDF, DOCX, DOC and RTF with ZF
Hello all Zend_Pdf is a great component to generate PDF files with ZF. If you want to populate PDF templates with text, however, it can be very time consuming to get the positioning of the text fields just right. I wrote about this issue here: http://tinyurl.com/bym43f After having developed several ZF applications in which text had to be inserted into PDF templates, I knew there must be a better way and went about developing one. The result is a project called phpLiveDocx, which is an unofficial component for ZF. (If it were to become official component some day, I would be thrilled.) The idea is really simple: 1. You design a template in a word processing package (such as Open Office or Word). In the template, you define any number of text fields, into which data will be later inserted (same idea as mail-merge). 2. Using phpLiveDocx, you assign data to the template. 3. You generate and save the populated document as a PDF, DOCX, DOC or RTF file. The great advantage of this approach is that you uncouple the formatting of the template and the position of the text fields. In other words, should a designer change the layout of a template, there is no need for a developer to update the positioning of the text fields. Of course, the other great advantage is that you can save the resulting document as DOCX, DOC or RTF, in addition to PDF. Here is a really basic example, which illustrates how phpLiveDocx works: http://tinyurl.com/ao9c2v (The template and resulting document can be download from the bottom of the post.) Here is a very short getting started guide and download links: http://tinyurl.com/db23fc If you need any help or want to talk about phpLiveDocx, just follow up here or post me a message: http://tinyurl.com/culdpj Thank you Jonathan Maron http://www.phpLiveDocx.org