Re: [fw-general] About Zend_Pdf tables
Is there any progress in this case? I find it nowhere in Zend_Pdf documentation On Mon, May 5, 2008 at 6:36 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: I think this is one very needed feature! 2008/4/1 Logan Buesching [EMAIL PROTECTED]: By default, no, Zend_Pdf does not support this feature. It is something that is being planned for the next Major release. I have done some simple text formatting which can be seen by the proposal: http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf_Cell+-+Logan+Bueschin g?focusedCommentId=43457http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf_Cell+-+Logan+Buesching?focusedCommentId=43457 Also, in the comments, someone notes that they have implemented tables: http://gorilla3d.com/blog/entry/2008-03-28/zend-pdf-text-wrapping-and-tables -- Logan http://agoln.net -Original Message- From: mysticav [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 12:48 AM To: fw-general@lists.zend.com Subject: Re: [fw-general] About Zend_Pdf tables ...to know if Zend_Table I mean, Zend_Pdf mysticav wrote: I would like to know if Zend_Table has the functionality to create tabulated data in a simple way, or import html tables. Thanks. -- View this message in context: http://www.nabble.com/About-Zend_Pdf-tables-tp16412842p16412843.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Atenciosamente, José de Menezes Soares Neto (11) 3881-1981 - [EMAIL PROTECTED] Detetive.net ltda. - www.detetive.net Conheça outros projetos: www.ofertas.com.br www.geraboleto.com.br www.vai.la -- -- http://groups.google.com/group/phpvietnam
Re: [fw-general] Upload a file with Flash ?
You can use FancyUpload or SWFUpload, which are all client-side. However, they may be broken in Flash Player 10, due to a controversial change in security policy On Sat, Sep 20, 2008 at 12:34 AM, Apsy [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 ? -- -- http://groups.google.com/group/phpvietnam
[fw-general] PHP 5.3 and Zend Framework
Have anyone tested Zend Framework-based application with PHP 5.3? In PHP 5.2, import is a reserved keyword so we can not make such a call as Zend_Feed::import anymore? A fatal error should occur as follows: PHP Parse error: syntax error, unexpected T_IMPORT, expecting T_STRING in Regards, -- -- http://groups.google.com/group/phpvietnam
Re: [fw-general] re: .net or zend framework?
ASP.NET http://asp.net/ is not a MVC framework. I just call it a messy framework. :D Premature open sourced software is root of evil :D Moreover, Microsoft does not open source .NET or ASP.NET http://asp.net/, they only show some source for fun. Who cares unimportant source codes :D On 10/7/07, rogeson [EMAIL PROTECTED] wrote: Alex Netkachov wrote: BTW: MS will make .NET source code available to debug in next version of Visual Studio: http://www.alexatnet.com/node/87 I didn't know that - great move on Microsofts part! -- View this message in context: http://www.nabble.com/.Net-or-Zend-Framework--tf4580976s16154.html#a13077572 Sent from the Zend Framework mailing list archive at Nabble.com. -- -- http://groups.google.com/group/phpvietnam
Re: [fw-general] .Net or Zend Framework?
.NET means many things. I guess that you want to make a choice between ASP.NET and Zend Framework. It depends on what operating system you are planning to deploy applications on. You should stick with ASP.NET if you use Windows extensively. For me, LAMP is a better, more powerful alternative to Windows/MSSQL/ASP.NET: + Choice: more choices + Price: your development cost and your customer's cost when they buy and deploy your products + Community: PHP communities is more friendly and helpful + Lot of open source applications that you can try and get rid of if it they do not fit your need. + Linux is more powerful, scriptable, flexible and reliable than the counterpart. + PHP is a more compact and web friendly language. VB.NET and C# are system programming language and they are much more verbal. One PHP line of code can be rewritten in tens of VB.NET or C# lines of code. + No lock in one IDE, one OS and/or database server + If you care about web standards, go PHP. ASP.NET tag soups is substandard-oriented + ASP.NET is not flexible and non MVC. Smarty/PHPSavant + PHP classes at PHPClasses.org == ASP.NET way of thinking. I don't like component-based frameworks like ASP.NET because it always tries to be desktop-alike environment. It comes with no surprise because MS is a desktop shop. I hate to see some javascript generated automatically by IDE to make webpages work with single form architecture. I hate to see evil ViewState and substandard WebForms + Mono is a toy project. ASP.NET has several advantages + Optimized for Windows + Better tooling support + Desktop application developer friendly + State-of-art integration with MS products + You don't need to care about web standards Just my 2 cents On 10/7/07, rogeson [EMAIL PROTECTED] wrote: This is of course a no-brainer to me, but my current task is to convince the company I work for to build our next product using the Zend Framework instead of .Net, and there are a lot of .Net enthusiasts here. Does anybody have any good arguments as to how and why using PHP and the Zend Framework is a superior choice to .Net? Has anybody had convince their organization of the same sort of thing? Thanks! Roger -- View this message in context: http://www.nabble.com/.Net-or-Zend-Framework--tf4580976s16154.html#a13076861 Sent from the Zend Framework mailing list archive at Nabble.com. -- -- http://groups.google.com/group/phpvietnam
[fw-general] Maximum execution time and Zend Framework
Maximum execution time is a common fatal error in PHP. I wonder if there is any way to catch the type of error and replace its message with more friendly and less sensitive one in Zend Framework. I feel that it is impossible at this time due to the limitation in PHP because the compiler halted after that. Does anybody have some workaround solutions to handle this error? It is really useful if PHP can throw an exception instead of a fatal error. Thanks Dinh
[fw-general] Zend Mail and SMTP Status Code
Hi all, I can not find any API in Zend_Mail that allows to retrieve proper smtp status code. Am I missing something or I need to do it myself? Thanks, Dinh
Re: [fw-general] Zend Mail and SMTP Status Code
Hi Mundy, Thanks for your quick response. When I put 'proper smtp status code' I mean I expect to get the smtp status code in digits. Our mail server has set up a set of custom SMTP status codes. So, when I have to deal with this mail server, I need to retrieve the smtp status code to determine which kind of message should be delivered to our customer to describe the proper status of the email sending activities. Therefore, our customers don't need to look up our FAQs to see what actually happens and why it happens. Here is my code require_once 'Zend/Mail.php'; require_once 'Zend/Mail/Transport/Smtp.php'; $transporter = new Zend_Mail_Transport_Smtp('mail.domain.com', $config); Zend_Mail::setDefaultTransport($transporter); $this-_mailer = new Zend_Mail(); $this-_mailer-addHeader('X-MailGenerator', 'CustomerService'); $this-_mailer-setReturnPath('[EMAIL PROTECTED]'); $this-_mailer-setFrom('[EMAIL PROTECTED]', 'Automatic Mail Sender'); $this-_mailer-addTo($email, $fullName); // Email subject title $this-_mailer-setSubject('Account activation'); $this-_mailer-setBodyText($message); try { $this-_mailer-send(); return true; } catch (Exception $ex) { $this-_errorMessage = $ex-getMessage(); // Error message like that: 531 Message_here_ return false; } It is easy to parse the Exception message to get the smtp status code but I am not sure that if Zend_Mail has a specific API to do that task. Thanks, Dinh On 8/2/07, Simon Mundy [EMAIL PROTECTED] wrote: Hi Dinh Can you explain what you mean by a 'proper' smtp status code? Do you mean the code returned by the server at the end of the transaction? Or do you need a transcript of the all requests/responses? The Zend_Mail_Transport_Smtp transport object lets you retrieve a connection instance. The connection instance can then give you a complete transcript of the conversation between client and server. E.g. $tr = new Zend_Mail_Transport_Smtp(); Zend_Mail::setDefaultTransport($tr); $mail = new Zend_Mail(); ... etc ... $mail-send(); $log = $tr-getConnection()-getLog(); If you are performing multiple mail send() operations you can also reset the log between each new mail:- $tr-getConnection()-resetLog(); Hope this answers your question. Cheerio Hi all, I can not find any API in Zend_Mail that allows to retrieve proper smtp status code. Am I missing something or I need to do it myself? Thanks, Dinh -- Simon Mundy | Director | PEPTOLAB 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000 Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124 http://www.peptolab.com -- Nobody in nowhere
Re: [fw-general] ZF Application Variables?
Regarding to Spead extension for PHP, it is out of date and does not work any more. An up-to-date version can be found at http://www.briggs.net.nz/log/projects/phpspread/ On 6/29/07, Nico Edtinger [EMAIL PROTECTED] wrote: What you need might be a database if you need data in sync across all your servers (or you use the Spread extension from PECL). If you only need a cache you can use Zend_Cache. It's what the example you linked to does only with several other and better storage options. nico [28.06.2007 21:59] Jack Sleight wrote: Hi, Are there any plans to introduce an application variable type system in ZF? Something like this: http://www.leosingleton.com/projects/code/phpapp/ As far as I'm aware this is something PHP cant do. If this is something you would be interested in adding I would be happy to help with a proposal/coding/development. Thanks, Jack -- View this message in context: http://www.nabble.com/ZF-Application- Variables--tf3996469s16154.html#a11349949 Sent from the Zend Framework mailing list archive at Nabble.com. -- Nobody in nowhere
[fw-general] Project Zero - have anyone heard of it?
Dear all, IBM has started a project that supports building REST-like services using dynamic languages like PHP at https://www.projectzero.org/wiki/bin/view/Main/WebHome Does IBM do it with some PHP experts support or they just ignore us? I think Zend Framework (SolarPHP, CakePHP...) should be a good reference for such kind of project, shouldn't it? I am afraid that they are trying to create another standard for PHP community Dinh -- Nobody in nowhere
Re: [fw-general] Implementing complex Views with ZF
It is excellent, Stephan. It is a really good Composite View implementation. Could you share something on how you design it? On 4/22/07, Stephan Stapel [EMAIL PROTECTED] wrote: Hi Padraic, I'm currently playing with a portal-like behaviour. I implemented a number of Controller/View pairs as portlets that can be layouted in any way you want on a webpage. I was initially not planning to mention this so early but to announce it later in this list when it is more mature, but anyway, this little add-on might be of help for you. There's a little demo on http://www.rehno.de which shows a simple and ugly wireframe layout (simple table layout) that are completely code-driven, i.e. you can adjust them dynamically during runtime. There are three demos on this page: a form example which shows how forms can be implemented as portlets and submitted/ evaluated independently of each other. The second example is a link example which shows how intra-portlet navigation can be implemented. The third example is a modification example which shows how one portlet might change the content of another area of the layout. Please enable the Inplace debug output to get a better feeling about layouting and portlets within the layout cells. If you like the demos and like to contribute or give feedback, feel free to contact me! Regards, Stephan
Re: [fw-general] [ANNOUNCEMENT] PhpWishList becomes public
Some others: http://code.google.com/hosting/search?q=zendbtn=Search+Projects On 1/3/07, Gavin Vess [EMAIL PROTECTED] wrote: http://sourceforge.net/search/index.php?all_words=zend+framework Lars Strojny wrote: So I'm correctly informed that PhpWishList is the first Open Source project based on Zend Framework? -- Nobody in nowhere
Re: [fw-general] PHP Adoption and the Zend Framework
There are several PHP hosting companies that offer free PHP 5.2 engine already. However, it comes as a surprise to me that all of them refuse to offer PDO for MySQL or PosgreSQL. Instead, they offer PDO for Sqlite which can not be a serious option. I have tried 5 companies that offer free PHP 5.1+ hosting and see no difference. For instance, you can have a look here: http://pcdinh.phpnet.us/info.php What happens to PDO? Have it been considered a dangerous extension or PHP 5.1+ new features are simply mysteries to hosting company's owners? Time of PHP 5.1+ seems to be a long way. Dinh
[fw-general] Proper way to catch Exception
Dear all, I wonder what is the proper way to catch Exception in bootstrap file. In my code, I have done as follows: try { $controller = Zend_Controller_Front::getInstance(); $controller-throwExceptions(true); $response = $controller-setControllerDirectory('./app/controllers') -setRequest($request) -setRouter($router) -setBaseUrl($baseUrl) -dispatch(); echo $response; } catch (Zend_Controller_Dispatcher_Exception $ex) { $request = $controller-getRequest(); echo Exception: .$request-getControllerName().Controller class not found. .$request-getActionName().Action() not found. ; } However, it only works with URL like this: http://domain/NotExistedController/notExistedActionForSure my try{} catch does not have any effect when user types: http://domain/ExistedController/notExistedAction. Exception can not be caught so it displayed as follows: Zend_Controller_Exception: IndexController::doAction() does not exist and was not trapped in __call() in D:\webroot\Zend_Framework\library\Zend.php on line 229 Call Stack: 0.0095 1. {main}() D:\webroot\uproject\helloworld\index.php:0 0.2894 2. Zend_Controller_Front-dispatch() D:\webroot\uproject\helloworld\index.php:103 Is there anyway to catch this kind of exception? Thks Dinh -- Nobody in nowhere
Re: [fw-general] PHP Adoption and the Zend Framework
I would like to confirm that SQLite allows: 1. Big database 2. Big number of fields 3. Complicated queries 4. Very fast but not 1. High concurrency The problem is there is a lot of PHP applications require MySQL or PostgreSQL backend. SQLite is very fast for tasks with low concurrency. It will become a bad option when you decide to roll out a high-traffic website and/or a website that need to serve multi-users browsing at once. By nature, it locking mechanism does not fit for it. Moreover, PHP is moving toward to be a tool for web applications that require high concurrency and scalability. On 12/17/06, Chris Hartjes [EMAIL PROTECTED] wrote: I beg to differ about PDO + Sqlite. File-based solutions like SQLite have their place if you're creating large databases with small numbers of fields and don't need to do any complicated queries. -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard -- Nobody in nowhere
[fw-general] Re: [fw-mvc] Re: [fw-general] MVC components now in core
Great work, Matthew I also see that the documentation for Zend Controller has been updated in Trunk too. Do they reflect the lastest updates? Thanks