Re: [fw-general] how to judge the growth and adoption of zf
This framework needs a lot of good up to date tutorials when it hits 1.0 final It also needs screencasts with audio (cakePHP's dont have audio :( ) a better message board than one on nabble would be nice also, one hosted on Zend A book on it released soon, if anything free online in PDF form and then later on complete for sale for those that wnat it printed out (like rails did) CakePHP is the leader in PHP frameworks for now, with Symfony and CodeIgniter behind it. I'm sure Zend Framework will get used a lot, cuz of their influence but without the above its gonna be painful for the less experienced (like me). -- View this message in context: http://www.nabble.com/how-to-judge-the-growth-and-adoption-of-zf-tf3959653s16154.html#a11245252 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Wiki watcher suggestion
On 6/22/07, Mark <[EMAIL PROTECTED]> wrote: 0,15,30,45 * * * * result=`wget --tries 1 --server-response --timeout 60 http://framework.zend.com/wiki/display/ZFDEV/Home 2>&1 | grep 'HTTP/'`; [[ ${result} == " HTTP/1.1 200 OK" ]] || ( echo "Wiki site down. ${result} reported. Attempting restart"; /etc/init.d/apache2 restart ) Ouch! That's another way of saying 'defeat'. :) We use Confluence and JIRA in symbiosis here at work and never have these kinds of problems, so I can at least vouch for the robustness of those software packages. Could there be some plugin gone avry, or something else entirely? Surely the logs would be helpful to have a peak at. Alex -- --- Project Wrangler, SOA, Information Alchymist, UX, RESTafarian, Topic Maps -- http://shelter.nu/blog/
[fw-general] Wiki watcher suggestion
Hi, I've noted the ZF Wiki's uptime is less than ideal and that in another post Bill Karwin intends to upgrade the whole thing when time permits. It was down again yesterday. I've seen it down for hours at a time. I'd like to suggest a quick and dirty one liner solution to ease the pain. Something like this in the server's root crontab: 0,15,30,45 * * * * result=`wget --tries 1 --server-response --timeout 60 http://framework.zend.com/wiki/display/ZFDEV/Home 2>&1 | grep 'HTTP/'`; [[ ${result} == " HTTP/1.1 200 OK" ]] || ( echo "Wiki site down. ${result} reported. Attempting restart"; /etc/init.d/apache2 restart ) The above assumes *nix like of course, with wget installed and system v style restart of Apache2. Also, that when a downtime event occurs, the output is emailed to root by a suitable redirect in /etc/aliases to go to a real person. Note the two spaces in the " HTTP/1.1" comparison needed to be there when I tested on another website The restart could be chopped out if it's a worry and at least an email notification would still be sent. I only included the restart as selfishly speaking I'm in the UK and so seem to notice the downtime more when you guys arn't up and about in the US. Hopefully the Wiki upgrade will solve the uptime issue, but I hope people would agree it's no bad thing in principle to have an automated process watching over important web sites' availability. I cannot help think it's a bad thing for newcomers to encounter part of the site down so often as version 1 approaches final release. I understand a robust web site watcher set up would be much more than a crontab one liner, featuring at least two remote watchers travelling over different backbones with back off logic regarding the restart and notification which of course would SMS everyone who works at Zend as well as email them. Not to mention the satellite integration! :) But right now, perhaps the suggested one liner, or a simple script might be more achievable? Any thoughts? Regards, Mark Maynereid
Re: [fw-general] Routing does not work correctly
Matthew, Actual requested URI = ANY $_SERVER['REDIRECT_URL'] = '/index.php' $_SERVER['REQUEST_URI'] = '/' Here were my earlier post to try to resolve this in the order I posted them: http://www.nabble.com/Invalid-controller-specified-%28index.php%29-tf3938224s16154.html http://www.nabble.com/%24_SERVER-%27REDIRECT_URL%27--%3D-%27-index.php%27-tf3941470s16154.html http://www.nabble.com/Zend_Controller_Request_Http-setRequestUri-bug--tf3953464s16154.html If you need access to my dreamhost account or you'd like me to test something let me know. Jim -- View this message in context: http://www.nabble.com/Routing-does-not-work-correctly-tf3960104s16154.html#a11243822 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] how to judge the growth and adoption of zf
How about sending someone over to NYPHP to give a presentation (-: http://nyphp.org/ David On 6/21/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: Hi there, Our team is working on just that cc'ing Brad and Kent who are spearheading this effort. Part of getting ready for ZF 1.0 release is to make sure we considerably upgrade our materials which include showing how big and vibrant the community is. This will be an ongoing process over the coming months but we are definitely going to invest energy into it and will have an updated Web site for the 1.0 release. If there are some specific things you think we should be doing please let us know. Btw, a lot of these activities are dependent on the ongoing support from many of you who have been using ZF in your day to day jobs. I'm glad to say that we have already received great support from many of you so keep up the good work! Best, Andi -- David Mintz http://davidmintz.org/ "Our universe is just one of those things that happens from time to time."
[fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false
I updated against trunk and now... require_once('Zend/Validate/Alnum.php'); $validator = new Zend_Validate_Alnum(); $vars = array ( 'Alnum' => 'foobar1', 'NotAlnum' => '[EMAIL PROTECTED]' ); foreach ( $vars as $var ) { echo $validator->isValid($var) ? $var .':true ' : $var . ':false '; } -- result: foobar1:false [EMAIL PROTECTED]:false -- php5 -v PHP 5.2.0 with Suhosin-Patch 0.9.6.1 (cli) (built: May 8 2007 20:00:45) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies with Suhosin v0.9.10, (C) Copyright 2006, by Hardened-PHP Project
[fw-general] Zend_Service_PayPal in laboratory
Hi All, While the proposal has not been accepted or rejected yet (http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_PayPal +-+Shahar+Evron?focusedCommentId=34255#comment-34255), I just committed the first draft of Zend_Service_PayPal into the laboratory so you can all check it out from Subversion and send in your comments. Basically this is an implementation of new new PayPal NVP API, and right now it supports DirectPayment, ExpressCheckout, MassPay and GetTransactionDetails, with more calls planned. Your comments are welcome here or in the proposal page. Enjoy! Shahar. signature.asc Description: This is a digitally signed message part
Re: [fw-general] Zend_Pdf Rev 5376 Broke my PDF Generation
Hi John, I am already working on this problem. It came with new Zend_Pdf resources clean-up mechanism. It's also clear where the problem is. Temporary workaround is to keep images "in memory" up to the PDF generation time. Please take a look at http://framework.zend.com/issues/browse/ZF-1559 With best regards, Alexander Veremyev. John Coggeshall wrote: Hey guys… I really would love to be able to provide a patch for this and/or report a bug with a reproducible test case but I simply don’t have time to track it down at the moment. But The resource management fix in commit 5376 broke my PDF Generation.. I can’t provide the code because its not mine to give, but I can show you the error log which might be useful in tracking it down (see below).. The PDF still gets generated but the images using drawImage() don’t show up and I get two errors (one is about missing element ‘%s’, the other is about missing element ‘X1’. I wish I could provide more info at the moment but as I said I can’t share the code and I wasn’t able to quickly come up with a new test case. Ping me if you have other questions and I’ll gladly try patches, etc. against my code base to help debug. Cheers, John --- string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:262)" [15]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)" [16]=> string(117) "[WARN] ksort() expects parameter 1 to be array, null given (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:374)" [17]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:377)" [18]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:390)" [19]=> string(117) "[WARN] ksort() expects parameter 1 to be array, null given (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:374)" [20]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:377)" [21]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:390)" [22]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)" [23]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)"
Re: [fw-general] Routing does not work correctly
-- Aleš Lončar <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 09:36 PM +0200): > I'm not sure if this is the solution for your problem. But if you are > stuck, > this maybe worth a try. > > > It worked!! Thanks! While it may have worked, would one of you (Jim or Ales) be willing to provide me the information I requested, so I can find a general solution that will work for you as well as those using apache's 404 handling for routing? Again, I'd like to know: * The value of $_SERVER['REDIRECT_URL'] * The value of $_SERVER['REQUEST_URI'] * Actual requested URI from the browser Hopefully then I will have enough information to make Zend_Controller_Request_Http work properly for you *and* those using other facilities. Thanks! > Jim Scherer wrote: > > Hi, > > I'm a Dreamhost hosting user and I am having routing problems too. I've > hacked Zend_Controller_Request_Http public function setRequestUri to > resolve > my issue and have posted a question about it here > > http://www.nabble.com/Zend_Controller_Request_Http-setRequestUri-bug--tf3953464s16154.html > > My hack is to flip the 1st and 2nd elseif condition so that > $_SERVER['REDIRECT_URI'] is checked before $_SERVER['REDIRECT_URL']. > > public function setRequestUri($requestUri = null) > { > if ($requestUri === null) { > if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this > first > so IIS will catch > $requestUri = $_SERVER['HTTP_X_REWRITE_URL']; > ==> } elseif (isset($_SERVER['REQUEST_URI'])) { > ==> $requestUri = $_SERVER['REQUEST_URI']; > ==> } elseif (isset($_SERVER['REDIRECT_URL'])) { // Check if using > mod_rewrite > ==> $requestUri = $_SERVER['REDIRECT_URL']; > } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP > as CGI > $requestUri = $_SERVER['ORIG_PATH_INFO']; > if (!empty($_SERVER['QUERY_STRING'])) { > $requestUri .= '?' . $_SERVER['QUERY_STRING']; > } > } else { > return $this; > } > } elseif (!is_string($requestUri)) { > return $this; > } else { > // Set GET items, if available > $_GET = array(); > if (false !== ($pos = strpos($requestUri, '?'))) { > // Get key => value pairs and set $_GET > $query = substr($requestUri, $pos + 1); > parse_str($query, $vars); > $_GET = $vars; > } > } > > $this->_requestUri = $requestUri; > return $this; > } > > I'm not sure if this is the solution for your problem. But if you are > stuck, > this maybe worth a try. > > Jim > > > alesl wrote: > > > Hi. > > When testing a Zend Framework application at Dreamhost hosting, I > discovered a problem with the routing system in my particular > configuration. > At home everything works perfectly (tested on windows and linux - > apache_mod), but routing does not work correctly in environmet with > Apache, suexec and mod_rewrite (Dreamhost). > > This is my .htaccess > RewriteEngine on > > RewriteBase / > > RewriteCond %{SCRIPT_FILENAME} !-f > RewriteCond %{SCRIPT_FILENAME} !-d > RewriteRule ^(.*)$ index.php/$1 [L] > > RewriteCond %{REQUEST_FILENAME} -f > RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] > > The second conditon rewrites js and css files to index.php where front > controller takes action with defined route: > routes.jscss.type = > "Zend_Controller_Router_Route_Regex" > routes.jscss.route = "(.+)\.(css|js)" > routes.jscss.defaults.module = "jscss" > routes.jscss.defaults.controller= "index" > routes.jscss.defaults.action= "index" > routes.jscss.map.1= "file" > routes.jscss.map.2= "type" > > Ass i said on local machines js, css files are minimized and send > back to > browser. On Dreamhost nothing hapens -> routing is ignored ?!?! > > Any sugestions?? > > Regards, AlesL > > > > > > > -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Two-Step View, subclassing controller, etc
This is almost too interesting. While waiting for an answer I went ahead and tried my own suggestion and somehow broke something -- still don't understand what. I determined that the $this of the embedded view scripts -- the ones whose output was getting put into $this->content by the dispatchLoopShutdown() hook -- was not a reference to the same Zend_View object as the $this->view of the plugin. It seems it should have worked but did not; and conversely, once I stopped using the view object from the registry in my controllers, it seems it should not have worked but it did. I could show you the code but let's just move on instead. I will play with the suggestion below, and keep waiting patiently for Zend_Layout as well. As an aside, I come at this from a different angle from most of you guys who sound like you really know what you're doing. I am a relative lightweight with a non-IT job description, but I've been doing web stuff ever since the days when people used a Perl library called cgi-lib.pl, and have come a long way. An MVC framework like ZF makes your life way easier in the long term, undoubtedly, but it isn't for wimps. It's interesting to see if an intermediate(?) developer can get his head around the complexity enough to use ZF productively. I think it is possible -- moreso than with something like CakePHP even. Many thanks. On 6/21/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- David Mintz <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 12:45 PM -0400): > So: if you want all your controllers to use a common Zend_View object (so that > the view vars they set will end up available to the sitewide, enclosing > template), what approach would you recommend? In the name of DRY it seems you > would might have your bootstrap put the new Zend_View() in the registry, and > > class MyAppController extends Zend_Controller_Action > > { > public function init() { > > $this->view = Zend_Registry::get('view'); > } > } [...] There's another way to do this now with the ViewRenderer: class My_TwoStep_Plugin extends Zend_Controller_Plugin_Abstract { public function dispatchLoopShutdown() { $viewRenderer = Zend_Controller_Action_HelperBroker::getExistingHelper('viewRenderer'); $view = $viewRenderer->view; // ... do the rest... } } No registry needed. :-) You can also seed the ViewRenderer with a customized view object in your bootstrap: $view = new Zend_View($options); $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- David Mintz http://davidmintz.org/ "Our universe is just one of those things that happens from time to time."
[fw-general] Zend_Pdf Rev 5376 Broke my PDF Generation
Hey guys... I really would love to be able to provide a patch for this and/or report a bug with a reproducible test case but I simply don't have time to track it down at the moment. But The resource management fix in commit 5376 broke my PDF Generation.. I can't provide the code because its not mine to give, but I can show you the error log which might be useful in tracking it down (see below).. The PDF still gets generated but the images using drawImage() don't show up and I get two errors (one is about missing element '%s', the other is about missing element 'X1'. I wish I could provide more info at the moment but as I said I can't share the code and I wasn't able to quickly come up with a new test case. Ping me if you have other questions and I'll gladly try patches, etc. against my code base to help debug. Cheers, John --- string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:262)" [15]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)" [16]=> string(117) "[WARN] ksort() expects parameter 1 to be array, null given (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:374)" [17]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:377)" [18]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:390)" [19]=> string(117) "[WARN] ksort() expects parameter 1 to be array, null given (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:374)" [20]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:377)" [21]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:390)" [22]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)" [23]=> string(105) "[WARN] Invalid argument supplied for foreach() (/var/www/OLT/includes/zf/Zend/Pdf/ElementFactory.php:214)"
Re: [fw-general] Routing does not work correctly
I'm not sure if this is the solution for your problem. But if you are stuck, this maybe worth a try. It worked!! Thanks! Jim Scherer wrote: Hi, I'm a Dreamhost hosting user and I am having routing problems too. I've hacked Zend_Controller_Request_Http public function setRequestUri to resolve my issue and have posted a question about it here http://www.nabble.com/Zend_Controller_Request_Http-setRequestUri-bug--tf3953464s16154.html My hack is to flip the 1st and 2nd elseif condition so that $_SERVER['REDIRECT_URI'] is checked before $_SERVER['REDIRECT_URL']. public function setRequestUri($requestUri = null) { if ($requestUri === null) { if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch $requestUri = $_SERVER['HTTP_X_REWRITE_URL']; ==> } elseif (isset($_SERVER['REQUEST_URI'])) { ==> $requestUri = $_SERVER['REQUEST_URI']; ==> } elseif (isset($_SERVER['REDIRECT_URL'])) { // Check if using mod_rewrite ==> $requestUri = $_SERVER['REDIRECT_URL']; } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP as CGI $requestUri = $_SERVER['ORIG_PATH_INFO']; if (!empty($_SERVER['QUERY_STRING'])) { $requestUri .= '?' . $_SERVER['QUERY_STRING']; } } else { return $this; } } elseif (!is_string($requestUri)) { return $this; } else { // Set GET items, if available $_GET = array(); if (false !== ($pos = strpos($requestUri, '?'))) { // Get key => value pairs and set $_GET $query = substr($requestUri, $pos + 1); parse_str($query, $vars); $_GET = $vars; } } $this->_requestUri = $requestUri; return $this; } I'm not sure if this is the solution for your problem. But if you are stuck, this maybe worth a try. Jim alesl wrote: Hi. When testing a Zend Framework application at Dreamhost hosting, I discovered a problem with the routing system in my particular configuration. At home everything works perfectly (tested on windows and linux - apache_mod), but routing does not work correctly in environmet with Apache, suexec and mod_rewrite (Dreamhost). This is my .htaccess RewriteEngine on RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] The second conditon rewrites js and css files to index.php where front controller takes action with defined route: routes.jscss.type = "Zend_Controller_Router_Route_Regex" routes.jscss.route = "(.+)\.(css|js)" routes.jscss.defaults.module = "jscss" routes.jscss.defaults.controller= "index" routes.jscss.defaults.action= "index" routes.jscss.map.1 = "file" routes.jscss.map.2 = "type" Ass i said on local machines js, css files are minimized and send back to browser. On Dreamhost nothing hapens -> routing is ignored ?!?! Any sugestions?? Regards, AlesL
Re: [fw-general] Problems with modular system
-- Christian Fischer <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 11:59 AM -0700): > Okay you're right , the baseurl wasnt correct. Glad that solved the issue. > The only thing i dont understand ist that you say that i should use > getRouter() instead of creating a new one ? > Does the Front Controller user the RewriteRouter by default ? Yes, it has since 0.8.0; the rewrite router is now the only router shipped with ZF, and the default routes served by the original router are in the 'module' route class. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Routing does not work correctly
-- Jim Scherer <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 11:41 AM -0700): > I'm a Dreamhost hosting user and I am having routing problems too. I've > hacked Zend_Controller_Request_Http public function setRequestUri to resolve > my issue and have posted a question about it here > http://www.nabble.com/Zend_Controller_Request_Http-setRequestUri-bug--tf3953464s16154.html > > My hack is to flip the 1st and 2nd elseif condition so that > $_SERVER['REDIRECT_URI'] is checked before $_SERVER['REDIRECT_URL']. > > public function setRequestUri($requestUri = null) > { > if ($requestUri === null) { > if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first > so IIS will catch > $requestUri = $_SERVER['HTTP_X_REWRITE_URL']; > ==> } elseif (isset($_SERVER['REQUEST_URI'])) { > ==> $requestUri = $_SERVER['REQUEST_URI']; > ==> } elseif (isset($_SERVER['REDIRECT_URL'])) { // Check if using > mod_rewrite > ==> $requestUri = $_SERVER['REDIRECT_URL']; This is interesting. The check for redirect_url was added recently for those who are using apache's 404 handling to route requests, or using the passthrough (PT) flag in one mod_rewrite rule to pass to another. The problem is that if we flip-flop the checks, then using 404 handling or multiple rewrite rules would pose issues. What is the value of REDIRECT_URL? is it empty? or another value? Could one of you experiencing the issue give me a list of the following: * Actual requested URI * value of $_SERVER['REDIRECT_URL'] * value of $_SERVER['REQUEST_URI'] That may help me diagnose the issue better. Thanks! > } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP > as CGI > $requestUri = $_SERVER['ORIG_PATH_INFO']; > if (!empty($_SERVER['QUERY_STRING'])) { > $requestUri .= '?' . $_SERVER['QUERY_STRING']; > } > } else { > return $this; > } > } elseif (!is_string($requestUri)) { > return $this; > } else { > // Set GET items, if available > $_GET = array(); > if (false !== ($pos = strpos($requestUri, '?'))) { > // Get key => value pairs and set $_GET > $query = substr($requestUri, $pos + 1); > parse_str($query, $vars); > $_GET = $vars; > } > } > > $this->_requestUri = $requestUri; > return $this; > } > > I'm not sure if this is the solution for your problem. But if you are stuck, > this maybe worth a try. > > Jim > > > alesl wrote: > > > > Hi. > > > > When testing a Zend Framework application at Dreamhost hosting, I > > discovered a problem with the routing system in my particular > > configuration. > > At home everything works perfectly (tested on windows and linux - > > apache_mod), but routing does not work correctly in environmet with > > Apache, suexec and mod_rewrite (Dreamhost). > > > > This is my .htaccess > > RewriteEngine on > > > > RewriteBase / > > > > RewriteCond %{SCRIPT_FILENAME} !-f > > RewriteCond %{SCRIPT_FILENAME} !-d > > RewriteRule ^(.*)$ index.php/$1 [L] > > > > RewriteCond %{REQUEST_FILENAME} -f > > RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] > > > > The second conditon rewrites js and css files to index.php where front > > controller takes action with defined route: > > routes.jscss.type = > > "Zend_Controller_Router_Route_Regex" > > routes.jscss.route = "(.+)\.(css|js)" > > routes.jscss.defaults.module = "jscss" > > routes.jscss.defaults.controller= "index" > > routes.jscss.defaults.action= "index" > > routes.jscss.map.1= "file" > > routes.jscss.map.2= "type" > > > > Ass i said on local machines js, css files are minimized and send back to > > browser. On Dreamhost nothing hapens -> routing is ignored ?!?! > > > > Any sugestions?? > > > > Regards, AlesL > > > > -- > View this message in context: > http://www.nabble.com/Routing-does-not-work-correctly-tf3960104s16154.html#a11239120 > Sent from the Zend Framework mailing list archive at Nabble.com. > -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Problems with modular system
Okay you're right , the baseurl wasnt correct. The only thing i dont understand ist that you say that i should use getRouter() instead of creating a new one ? Does the Front Controller user the RewriteRouter by default ? -- View this message in context: http://www.nabble.com/Problems-with-modular-system-tf3954235s16154.html#a11239435 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Routing does not work correctly
FastCGI Matthew Weier O'Phinney wrote: -- alesl <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 10:10 AM -0700): When testing a Zend Framework application at Dreamhost hosting, I discovered a problem with the routing system in my particular configuration. At home everything works perfectly (tested on windows and linux - apache_mod), but routing does not work correctly in environmet with Apache, suexec and mod_rewrite (Dreamhost). This is my .htaccess RewriteEngine on RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] The second conditon rewrites js and css files to index.php where front controller takes action with defined route: routes.jscss.type = "Zend_Controller_Router_Route_Regex" routes.jscss.route = "(.+)\.(css|js)" routes.jscss.defaults.module = "jscss" routes.jscss.defaults.controller= "index" routes.jscss.defaults.action= "index" routes.jscss.map.1 = "file" routes.jscss.map.2 = "type" Ass i said on local machines js, css files are minimized and send back to browser. On Dreamhost nothing hapens -> routing is ignored ?!?! Is your host using mod_php, CGI, or FastCGI?
Re: [fw-general] Routing does not work correctly
Hi, I'm a Dreamhost hosting user and I am having routing problems too. I've hacked Zend_Controller_Request_Http public function setRequestUri to resolve my issue and have posted a question about it here http://www.nabble.com/Zend_Controller_Request_Http-setRequestUri-bug--tf3953464s16154.html My hack is to flip the 1st and 2nd elseif condition so that $_SERVER['REDIRECT_URI'] is checked before $_SERVER['REDIRECT_URL']. public function setRequestUri($requestUri = null) { if ($requestUri === null) { if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch $requestUri = $_SERVER['HTTP_X_REWRITE_URL']; ==> } elseif (isset($_SERVER['REQUEST_URI'])) { ==> $requestUri = $_SERVER['REQUEST_URI']; ==> } elseif (isset($_SERVER['REDIRECT_URL'])) { // Check if using mod_rewrite ==> $requestUri = $_SERVER['REDIRECT_URL']; } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP as CGI $requestUri = $_SERVER['ORIG_PATH_INFO']; if (!empty($_SERVER['QUERY_STRING'])) { $requestUri .= '?' . $_SERVER['QUERY_STRING']; } } else { return $this; } } elseif (!is_string($requestUri)) { return $this; } else { // Set GET items, if available $_GET = array(); if (false !== ($pos = strpos($requestUri, '?'))) { // Get key => value pairs and set $_GET $query = substr($requestUri, $pos + 1); parse_str($query, $vars); $_GET = $vars; } } $this->_requestUri = $requestUri; return $this; } I'm not sure if this is the solution for your problem. But if you are stuck, this maybe worth a try. Jim alesl wrote: > > Hi. > > When testing a Zend Framework application at Dreamhost hosting, I > discovered a problem with the routing system in my particular > configuration. > At home everything works perfectly (tested on windows and linux - > apache_mod), but routing does not work correctly in environmet with > Apache, suexec and mod_rewrite (Dreamhost). > > This is my .htaccess > RewriteEngine on > > RewriteBase / > > RewriteCond %{SCRIPT_FILENAME} !-f > RewriteCond %{SCRIPT_FILENAME} !-d > RewriteRule ^(.*)$ index.php/$1 [L] > > RewriteCond %{REQUEST_FILENAME} -f > RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] > > The second conditon rewrites js and css files to index.php where front > controller takes action with defined route: > routes.jscss.type= > "Zend_Controller_Router_Route_Regex" > routes.jscss.route = "(.+)\.(css|js)" > routes.jscss.defaults.module = "jscss" > routes.jscss.defaults.controller = "index" > routes.jscss.defaults.action = "index" > routes.jscss.map.1 = "file" > routes.jscss.map.2 = "type" > > Ass i said on local machines js, css files are minimized and send back to > browser. On Dreamhost nothing hapens -> routing is ignored ?!?! > > Any sugestions?? > > Regards, AlesL > -- View this message in context: http://www.nabble.com/Routing-does-not-work-correctly-tf3960104s16154.html#a11239120 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Routing does not work correctly
-- alesl <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 10:10 AM -0700): > When testing a Zend Framework application at Dreamhost hosting, I discovered > a problem with the routing system in my particular configuration. > At home everything works perfectly (tested on windows and linux - > apache_mod), but routing does not work correctly in environmet with Apache, > suexec and mod_rewrite (Dreamhost). > > This is my .htaccess > RewriteEngine on > > RewriteBase / > > RewriteCond %{SCRIPT_FILENAME} !-f > RewriteCond %{SCRIPT_FILENAME} !-d > RewriteRule ^(.*)$ index.php/$1 [L] > > RewriteCond %{REQUEST_FILENAME} -f > RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] > > The second conditon rewrites js and css files to index.php where front > controller takes action with defined route: > routes.jscss.type= > "Zend_Controller_Router_Route_Regex" > routes.jscss.route = "(.+)\.(css|js)" > routes.jscss.defaults.module = "jscss" > routes.jscss.defaults.controller = "index" > routes.jscss.defaults.action = "index" > routes.jscss.map.1 = "file" > routes.jscss.map.2 = "type" > > Ass i said on local machines js, css files are minimized and send back to > browser. On Dreamhost nothing hapens -> routing is ignored ?!?! Is your host using mod_php, CGI, or FastCGI? -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
RE: [fw-general] Zend Framework 1.0 - An Overview - Recording?
Hi, they had a bit of trouble preparing the recording and had to start the process over. It's a multi-hour process to do that. So we're trying to get the recording up on the website today. We appreciate your patience. During the webinar I only got through about half the questions that were asked by participants. So today I'm going to work on creating a text summary of the questions and answers. That will be posted at "zend.com/webinar" as well, once I've finished it. Regards, Bill Karwin > -Original Message- > From: Jack Sleight [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 21, 2007 6:24 AM > To: Andries Seutens > Cc: fw-general@lists.zend.com > Subject: Re: [fw-general] Zend Framework 1.0 - An Overview - > Recording? > > Ok great, thanks. > -- > Jack >
[fw-general] Routing does not work correctly
Hi. When testing a Zend Framework application at Dreamhost hosting, I discovered a problem with the routing system in my particular configuration. At home everything works perfectly (tested on windows and linux - apache_mod), but routing does not work correctly in environmet with Apache, suexec and mod_rewrite (Dreamhost). This is my .htaccess RewriteEngine on RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ index.php [L,NC] The second conditon rewrites js and css files to index.php where front controller takes action with defined route: routes.jscss.type = "Zend_Controller_Router_Route_Regex" routes.jscss.route = "(.+)\.(css|js)" routes.jscss.defaults.module = "jscss" routes.jscss.defaults.controller= "index" routes.jscss.defaults.action= "index" routes.jscss.map.1= "file" routes.jscss.map.2= "type" Ass i said on local machines js, css files are minimized and send back to browser. On Dreamhost nothing hapens -> routing is ignored ?!?! Any sugestions?? Regards, AlesL -- View this message in context: http://www.nabble.com/Routing-does-not-work-correctly-tf3960104s16154.html#a11237503 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Two-Step View, subclassing controller, etc
-- David Mintz <[EMAIL PROTECTED]> wrote (on Thursday, 21 June 2007, 12:45 PM -0400): > This newbie is liking the Two Step View where your plugin basically intercepts > the response body and sticks it into a sitewide template at > dispatchLoopShutdown() time. > > So: if you want all your controllers to use a common Zend_View object (so that > the view vars they set will end up available to the sitewide, enclosing > template), what approach would you recommend? In the name of DRY it seems you > would might have your bootstrap put the new Zend_View() in the registry, and > > class MyAppController extends Zend_Controller_Action > > { > public function init() { > > $this->view = Zend_Registry::get('view'); > } > } > > and then have your controllers extend MyAppController instead of > Zend_Controller_Action. Thoughts? There's another way to do this now with the ViewRenderer: class My_TwoStep_Plugin extends Zend_Controller_Plugin_Abstract { public function dispatchLoopShutdown() { $viewRenderer = Zend_Controller_Action_HelperBroker::getExistingHelper('viewRenderer'); $view = $viewRenderer->view; // ... do the rest... } } No registry needed. :-) You can also seed the ViewRenderer with a customized view object in your bootstrap: $view = new Zend_View($options); $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Two-Step View, subclassing controller, etc
I have a component proposal (writing it as we speak) for Zend_Layout. A full working implementation can be found at http://svn.ralphschindler.com/repo/Xend/ (executed in the Xend_Layout namespace) minimal docs and usage is in the docs folder.. Several people on #zftalk have had a chance to implement this solution with great ease. I will post back when the proposal is updated on the wiki. More to come, -ralph Extract from pending proposal: Zend_Layout attempts to solve a problem that, since rearing its ugly head over and over, has gone by many names: Composite Views, Layouts, Templates, Partial Views, and/or Complex Views. They all basically attempt to describe a common problem - that of being able to maintain a consistent look and feel throughout a site or web application while maintaining the "Don't Repeat Yourself" principals. Zend_Layout addresses the problem with a common pattern, the two-step-view pattern (http://www.martinfowler.com/eaaCatalog/twoStepView.html). The Two Step View pattern breaks the process up into two distinct stages. The primary stage allows the user requested action as well as layout requested actions to dispatch and execute their respective views saving them to the controllers response object. The second stage of the process takes the already dispatched actions responses and directs them to the layout where final placement of content is made (in a Layout specific view) before being sent back to the user. Zend_Layout requires no changes to the existing codebase to accomplish its job. To maintain controller over the dispatch process, Zend_Layout attaches a controller plugin - this is the essense of the Two-Step-View and common way to implement the 2SV as we have seen already. Zend_Layout also registers its own action helper (named LayoutManager), so that the developer can directly interact with Zend_Layout from within their actions. David Mintz wrote: This newbie is liking the Two Step View where your plugin basically intercepts the response body and sticks it into a sitewide template at dispatchLoopShutdown() time. So: if you want all your controllers to use a common Zend_View object (so that the view vars they set will end up available to the sitewide, enclosing template), what approach would you recommend? In the name of DRY it seems you would might have your bootstrap put the new Zend_View() in the registry, and class MyAppController extends Zend_Controller_Action { public function init() { $this->view = Zend_Registry::get('view'); } } and then have your controllers extend MyAppController instead of Zend_Controller_Action. Thoughts? -- David Mintz http://davidmintz.org/ "Our universe is just one of those things that happens from time to time."
[fw-general] Two-Step View, subclassing controller, etc
This newbie is liking the Two Step View where your plugin basically intercepts the response body and sticks it into a sitewide template at dispatchLoopShutdown() time. So: if you want all your controllers to use a common Zend_View object (so that the view vars they set will end up available to the sitewide, enclosing template), what approach would you recommend? In the name of DRY it seems you would might have your bootstrap put the new Zend_View() in the registry, and class MyAppController extends Zend_Controller_Action { public function init() { $this->view = Zend_Registry::get('view'); } } and then have your controllers extend MyAppController instead of Zend_Controller_Action. Thoughts? -- David Mintz http://davidmintz.org/ "Our universe is just one of those things that happens from time to time."
Re: [fw-general] Problems with modular system
Matthew Weier O'Phinney schreef: No need for the above line, as this is registered by default. Also, if you're using it, there's really no need for throwExceptions() to be on. Yes, and I would like to suggest to put this into the manual somewhere. This one had me wondering what was going on for a few days, because when turned on: $response->isException() evaluates to true, but actually you get a valid response, which is from the ErrorController. This could be confusing... Best, Andries Seutens http://andries.systray.be
Re: [fw-general] Problems with modular system
-- Christian Fischer <[EMAIL PROTECTED]> wrote (on Wednesday, 20 June 2007, 11:18 AM -0700): > My Problem is that i`m not able to call another module then the default one. > > First of all here`s the code of my Bootstrap: > > $frontController = Zend_Controller_Front::getInstance(); > $frontController->setBaseUrl($config->site->baseurl) ; > $router = new Zend_Controller_Router_Rewrite(); The above line should be $router = $frontController->getRouter(); that way you don't need to later do the call to setRouter(). > $frontController->addModuleDirectory('../application/modules'); > $viewRenderer = new Spektra_ViewRenderer(); > Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); > $frontController->registerPlugin(new Spektra_Auth($auth, $acl)); > $frontController->throwExceptions(true); > $frontController->setRouter($router); > $frontController->registerPlugin(new > Zend_Controller_Plugin_ErrorHandler()); No need for the above line, as this is registered by default. Also, if you're using it, there's really no need for throwExceptions() to be on. > I use a debian system so my sources are in /var/www/spektrum/spektrum/.. > > I have 2 modules, news and default. My structure looks like: > /var/www/spektrum/spektrum/ > application > ->modules > ->default >->controllers >IndexController.php >->models >->views > ->news > ->controllers > IndexController.php > and so on. > > I already figured out that the method addModuleDirectory() adds everthing > correctly (i think). Thats what > the method sets: > > news = ../application/modules/news/controllers > default = ../application/modules/default/controllers > > So when i fire up firefox and go to : > http: localhost/spektrum/spektrum/public the Default Modules shows up with > the IndexAction of the IndexController > > When i try to access the news Module through > http: localhost/spektrum/spektrum/public/news/ it shows me the same stuff as > above. > > I have no idea where the problem is please help me :) What's the value of $config->site->baseurl? I'm thinking it's set incorrectly. It should be '/spektrum/spektrum/public'. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
RE: [fw-general] how to judge the growth and adoption of zf
Hi there, Our team is working on just that cc'ing Brad and Kent who are spearheading this effort. Part of getting ready for ZF 1.0 release is to make sure we considerably upgrade our materials which include showing how big and vibrant the community is. This will be an ongoing process over the coming months but we are definitely going to invest energy into it and will have an updated Web site for the 1.0 release. If there are some specific things you think we should be doing please let us know. Btw, a lot of these activities are dependent on the ongoing support from many of you who have been using ZF in your day to day jobs. I'm glad to say that we have already received great support from many of you so keep up the good work! Best, Andi > -Original Message- > From: frosty1 [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 21, 2007 8:56 AM > To: fw-general@lists.zend.com > Subject: [fw-general] how to judge the growth and adoption of zf > > > i am very excited about how easy zf is making app development > for me. i have several nice sized projects and very happy > clients that are using it. > > i am running into one issue. i have had a very difficult > time finding anyone to help me on my projects. i understand > that this is new technology and will take some time to become > widely adopted. with that said, are there any resources that > could show me the relative adoption of the framework. as > business grows this is turning into a serious concern. > -- > View this message in context: > http://www.nabble.com/how-to-judge-the-growth-and-adoption-of- > zf-tf3959653s16154.html#a11236103 > Sent from the Zend Framework mailing list archive at Nabble.com. > >
Re: [fw-general] how to judge the growth and adoption of zf
For the time being, join #zftalk on freenode, there are plenty of knowledgeable individuals in there, and me too :) The resources will grow over time and I think you will see a spike at and around 1.0GA -ralph frosty1 wrote: i am very excited about how easy zf is making app development for me. i have several nice sized projects and very happy clients that are using it. i am running into one issue. i have had a very difficult time finding anyone to help me on my projects. i understand that this is new technology and will take some time to become widely adopted. with that said, are there any resources that could show me the relative adoption of the framework. as business grows this is turning into a serious concern.
[fw-general] how to judge the growth and adoption of zf
i am very excited about how easy zf is making app development for me. i have several nice sized projects and very happy clients that are using it. i am running into one issue. i have had a very difficult time finding anyone to help me on my projects. i understand that this is new technology and will take some time to become widely adopted. with that said, are there any resources that could show me the relative adoption of the framework. as business grows this is turning into a serious concern. -- View this message in context: http://www.nabble.com/how-to-judge-the-growth-and-adoption-of-zf-tf3959653s16154.html#a11236103 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework Cli Tool
There is a PHP extension for YAML called Syck. Can't remember whether the author had managed to put it in PECL or not (I don't think so). If an extension were needed they have done a lot of work in the area already. P Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com - Original Message From: Andi Gutmans <[EMAIL PROTECTED]> To: Shahar Evron <[EMAIL PROTECTED]>; Pádraic Brady <[EMAIL PROTECTED]> Cc: Zend Framework General Sent: Thursday, June 21, 2007 3:44:06 PM Subject: RE: [fw-general] Zend Framework Cli Tool That's definitely something to keep in mind as it doesn't have a native implementation in PHP. Could be that might end up being the conclusion (i.e. implementing an ext/yaml). > -Original Message- > From: Shahar Evron > Sent: Thursday, June 21, 2007 4:58 AM > To: Pádraic Brady > Cc: Andi Gutmans; Zend Framework General > Subject: Re: [fw-general] Zend Framework Cli Tool > > I have some bad experience with the Spyc parser Symfony uses > for YAML, namely having to raise my memory_limit to more than > 128mb to get it working with some YAML files. > > I haven't dug into it's code, but thinking that Symfony > sometimes uses it on-line (and not only for CLI), got me kind > of scared. > > I think that while YAML is nice and easy to read/write (for > humans), there is only that much you can go for your lazy > users - and while I hate writing XML, I see it as a much > better option for configuration files (for now) because PHP > has native, super-fast parsing abilities for it. Writing a > parser for YAML or any other format in PHP will have major > performance drawbacks any way you put it. > > Unless YAML language and configuration files are translated > off-line into some kind of faster format (XML or even better, > PHP code) I won't use them in production. > > Then again, that doesn't mean it shouldn't be an option ;) > > Shahar. > > > > On Wed, 2007-06-20 at 15:40 -0700, Pádraic Brady wrote: > > I think a little code generation can go a long way. It > really does get > > kind of repetitive having to setup a base application scaffold for > > each new project unless you sit down and create a standard scaffold > > which you reuse everywhere. > > > > I put a YAML proposal in the wiki a while back. There's some code > > attached but its non-functional until I refactor some of the > > offsetting in the Parser class so the lexer can have its fun. > > > > I think Yaml is an interesting format but it depends on what it's > > needed for. Supporting a subset of the format is a lot faster than > > supporting the whole spec (requires far less parsing). The current > > proposal is for the entire spec (excluding Unicode support for the > > moment), with an option for an alternative subset for those files > > which don't need the whole sledgehammer. I believe people only ever > > need a subset anyway unless doing really complex stuff. It > takes just > > a single class for a subset, but a proper parser to be completely > > certain of the entire specification details. > > > > Regards, > > Paddy > > > > Pádraic Brady > > http://blog.astrumfutura.com > > http://www.patternsforphp.com > > > > > > - Original Message > > From: Andi Gutmans <[EMAIL PROTECTED]> > > To: unknownman <[EMAIL PROTECTED]>; > > fw-general@lists.zend.com > > Sent: Wednesday, June 20, 2007 10:34:33 PM > > Subject: RE: [fw-general] Zend Framework Cli Tool > > > > Btw, if you're already on the topic of XML. One of the > things we were > > thinking of doing post 1.0 is also adding YAML support to > ZF and then > > integrating the various components like Zend_Config & > Zend_Translate > > with it to provide the choice of the various formats to ZF users. > > Not sure what format would be most suitable for such a tool > but it's > > something for you to also consider longer term. Or maybe you just > > support Zend_Config and it'll work with whatever back-end there is. > > > > Andi > > > > > > > -Original Message- > > > From: unknownman [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 20, 2007 2:21 PM > > > To: fw-general@lists.zend.com > > > Subject: Re: [fw-general] Zend Framework Cli Tool > > > > > > > > > yeah , i believe that ZF isnt symphony but in this shell > code i want > > > to use an xml file that generate application schematic, note that > > > these scripts isnt for generating new project, i want to add some > > > feature like scaffold in rails to it. > > > > > > Andries Seutens wrote: > > > > > > > > > > > > unknownman schreef: > > > >> nice work but i think that like this community must be a > > community > > > >> for discussion about needed tools > > > >> > > > >> > > > >> Nico Edtinger-2 wrote: > > > >> > > > >>> Hi unknown man! > > > >>> > > > >>> [20.06.2007 12:35] unknownman wrote: > > > >>> > > > one of the great tool for rails is the its great script > > > directory > > > that you
RE: [fw-general] Zend Framework Cli Tool
That's definitely something to keep in mind as it doesn't have a native implementation in PHP. Could be that might end up being the conclusion (i.e. implementing an ext/yaml). > -Original Message- > From: Shahar Evron > Sent: Thursday, June 21, 2007 4:58 AM > To: Pádraic Brady > Cc: Andi Gutmans; Zend Framework General > Subject: Re: [fw-general] Zend Framework Cli Tool > > I have some bad experience with the Spyc parser Symfony uses > for YAML, namely having to raise my memory_limit to more than > 128mb to get it working with some YAML files. > > I haven't dug into it's code, but thinking that Symfony > sometimes uses it on-line (and not only for CLI), got me kind > of scared. > > I think that while YAML is nice and easy to read/write (for > humans), there is only that much you can go for your lazy > users - and while I hate writing XML, I see it as a much > better option for configuration files (for now) because PHP > has native, super-fast parsing abilities for it. Writing a > parser for YAML or any other format in PHP will have major > performance drawbacks any way you put it. > > Unless YAML language and configuration files are translated > off-line into some kind of faster format (XML or even better, > PHP code) I won't use them in production. > > Then again, that doesn't mean it shouldn't be an option ;) > > Shahar. > > > > On Wed, 2007-06-20 at 15:40 -0700, Pádraic Brady wrote: > > I think a little code generation can go a long way. It > really does get > > kind of repetitive having to setup a base application scaffold for > > each new project unless you sit down and create a standard scaffold > > which you reuse everywhere. > > > > I put a YAML proposal in the wiki a while back. There's some code > > attached but its non-functional until I refactor some of the > > offsetting in the Parser class so the lexer can have its fun. > > > > I think Yaml is an interesting format but it depends on what it's > > needed for. Supporting a subset of the format is a lot faster than > > supporting the whole spec (requires far less parsing). The current > > proposal is for the entire spec (excluding Unicode support for the > > moment), with an option for an alternative subset for those files > > which don't need the whole sledgehammer. I believe people only ever > > need a subset anyway unless doing really complex stuff. It > takes just > > a single class for a subset, but a proper parser to be completely > > certain of the entire specification details. > > > > Regards, > > Paddy > > > > Pádraic Brady > > http://blog.astrumfutura.com > > http://www.patternsforphp.com > > > > > > - Original Message > > From: Andi Gutmans <[EMAIL PROTECTED]> > > To: unknownman <[EMAIL PROTECTED]>; > > fw-general@lists.zend.com > > Sent: Wednesday, June 20, 2007 10:34:33 PM > > Subject: RE: [fw-general] Zend Framework Cli Tool > > > > Btw, if you're already on the topic of XML. One of the > things we were > > thinking of doing post 1.0 is also adding YAML support to > ZF and then > > integrating the various components like Zend_Config & > Zend_Translate > > with it to provide the choice of the various formats to ZF users. > > Not sure what format would be most suitable for such a tool > but it's > > something for you to also consider longer term. Or maybe you just > > support Zend_Config and it'll work with whatever back-end there is. > > > > Andi > > > > > > > -Original Message- > > > From: unknownman [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 20, 2007 2:21 PM > > > To: fw-general@lists.zend.com > > > Subject: Re: [fw-general] Zend Framework Cli Tool > > > > > > > > > yeah , i believe that ZF isnt symphony but in this shell > code i want > > > to use an xml file that generate application schematic, note that > > > these scripts isnt for generating new project, i want to add some > > > feature like scaffold in rails to it. > > > > > > Andries Seutens wrote: > > > > > > > > > > > > unknownman schreef: > > > >> nice work but i think that like this community must be a > > community > > > >> for discussion about needed tools > > > >> > > > >> > > > >> Nico Edtinger-2 wrote: > > > >> > > > >>> Hi unknown man! > > > >>> > > > >>> [20.06.2007 12:35] unknownman wrote: > > > >>> > > > one of the great tool for rails is the its great script > > > directory > > > that you can make big project in a minute > > > > > > >>> There's something like this in lab called Primitus (FKA > > ZFApp): > > > >>> > > > > http://framework.zend.com/fisheye/browse/Zend_Framework_Laboratory/ > > > >>> Primitus > > > >>> > > > >>> But it seems like it needs an update. > > > >>> > > > >>> nico > > > >>> > > > > > > > > I'm not a fan of these auto code generation tools, remeber the > > Zend > > > > Framework isn't Symfony ... > > > > > > > > I have recently published a small article to get you > > > started on the ZF.
[fw-general] Re: url rewrite on lighttpd removes the query string ($_GET = empty array)
Hi again, I solved this issue by modifying the rewrite rule to: url.rewrite-once = ( ".*\.(js|ico|gif|jpg|png|css)$" => "$0", ".*\?(.*)" => "/index.php?$1", "" => "/index.php" ) Cheers, Johannes On 6/20/07, Johannes Schill <[EMAIL PROTECTED]> wrote: Hi, Im using LightTPD/1.4.15 (Win32) [1]. When i use the rewrite that's mentioned in the wiki [2] i cant use query strings. var_dump($_GET) give the following output: "array(0) { }". When i remove the rewrite-rule it works. The rewrite i'm using: url.rewrite-once = ( ".*\.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php" ) Anyone who experience the same problem? Is there a solution available? [1] http://wlmp.dtech.hu/down_lighty.php?lang=en [2] http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter Cheers, Johannes
Re: [fw-general] Zend Framework 1.0 - An Overview - Recording?
Ok great, thanks. -- Jack
Re: [fw-general] Zend Framework Cli Tool
I have some bad experience with the Spyc parser Symfony uses for YAML, namely having to raise my memory_limit to more than 128mb to get it working with some YAML files. I haven't dug into it's code, but thinking that Symfony sometimes uses it on-line (and not only for CLI), got me kind of scared. I think that while YAML is nice and easy to read/write (for humans), there is only that much you can go for your lazy users - and while I hate writing XML, I see it as a much better option for configuration files (for now) because PHP has native, super-fast parsing abilities for it. Writing a parser for YAML or any other format in PHP will have major performance drawbacks any way you put it. Unless YAML language and configuration files are translated off-line into some kind of faster format (XML or even better, PHP code) I won't use them in production. Then again, that doesn't mean it shouldn't be an option ;) Shahar. On Wed, 2007-06-20 at 15:40 -0700, Pádraic Brady wrote: > I think a little code generation can go a long way. It really does get > kind of repetitive having to setup a base application scaffold for > each new project unless you sit down and create a standard scaffold > which you reuse everywhere. > > I put a YAML proposal in the wiki a while back. There's some code > attached but its non-functional until I refactor some of the > offsetting in the Parser class so the lexer can have its fun. > > I think Yaml is an interesting format but it depends on what it's > needed for. Supporting a subset of the format is a lot faster than > supporting the whole spec (requires far less parsing). The current > proposal is for the entire spec (excluding Unicode support for the > moment), with an option for an alternative subset for those files > which don't need the whole sledgehammer. I believe people only ever > need a subset anyway unless doing really complex stuff. It takes just > a single class for a subset, but a proper parser to be completely > certain of the entire specification details. > > Regards, > Paddy > > Pádraic Brady > http://blog.astrumfutura.com > http://www.patternsforphp.com > > > - Original Message > From: Andi Gutmans <[EMAIL PROTECTED]> > To: unknownman <[EMAIL PROTECTED]>; > fw-general@lists.zend.com > Sent: Wednesday, June 20, 2007 10:34:33 PM > Subject: RE: [fw-general] Zend Framework Cli Tool > > Btw, if you're already on the topic of XML. One of the things we were > thinking of doing post 1.0 is also adding YAML support to ZF and then > integrating the various components like Zend_Config & Zend_Translate > with it to provide the choice of the various formats to ZF users. > Not sure what format would be most suitable for such a tool but it's > something for you to also consider longer term. Or maybe you just > support Zend_Config and it'll work with whatever back-end there is. > > Andi > > > > -Original Message- > > From: unknownman [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 20, 2007 2:21 PM > > To: fw-general@lists.zend.com > > Subject: Re: [fw-general] Zend Framework Cli Tool > > > > > > yeah , i believe that ZF isnt symphony but in this shell code > > i want to use an xml file that generate application > > schematic, note that these scripts isnt for generating new > > project, i want to add some feature like scaffold in rails to it. > > > > Andries Seutens wrote: > > > > > > > > > unknownman schreef: > > >> nice work but i think that like this community must be a > community > > >> for discussion about needed tools > > >> > > >> > > >> Nico Edtinger-2 wrote: > > >> > > >>> Hi unknown man! > > >>> > > >>> [20.06.2007 12:35] unknownman wrote: > > >>> > > one of the great tool for rails is the its great script > > directory > > that you can make big project in a minute > > > > >>> There's something like this in lab called Primitus (FKA > ZFApp): > > >>> > > http://framework.zend.com/fisheye/browse/Zend_Framework_Laboratory/ > > >>> Primitus > > >>> > > >>> But it seems like it needs an update. > > >>> > > >>> nico > > >>> > > > > > > I'm not a fan of these auto code generation tools, remeber the > Zend > > > Framework isn't Symfony ... > > > > > > I have recently published a small article to get you > > started on the ZF. > > > There's a modular and conventional "app" available at: > > > > > > > > > http://andries.systray.be/blog/2007/06/18/zend-framework-just-get-me-s > > > tarted-okay/ > > > > > > Best, > > > > > > -- > > > Andries Seutens > > > http://andries.systray.be > > > > > > > > > Gecontroleerd op virussen door de JOJO Secure Gateway. > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/Zend-Framework-Cli-Tool-tf3951538s16154. > html#a11222462 > > Sent from the Zend Framework mailing list archive at Nabble.com. > > > > > > > > > > __ > Need a vacation? Get great de
Re: [fw-general] Zend Framework 1.0 - An Overview - Recording?
Jack Sleight schreef: Hi, Unfortunately I had to leave the webinar before the end yesterday, and I missed the Q&A session. Is there a recording available anywhere? I've looked on the Zend site, but cant find it anywhere. Thanks, Jack Hi, Not yet, but I believe it will be dropped here soon: http://www.zend.com/webinar Best, -- Andries Seutens http://andries.systray.be Gecontroleerd op virussen door de JOJO Secure Gateway.
[fw-general] Zend Framework 1.0 - An Overview - Recording?
Hi, Unfortunately I had to leave the webinar before the end yesterday, and I missed the Q&A session. Is there a recording available anywhere? I've looked on the Zend site, but cant find it anywhere. Thanks, Jack -- View this message in context: http://www.nabble.com/Zend-Framework-1.0---An-Overview---Recording--tf3957654s16154.html#a11229940 Sent from the Zend Framework mailing list archive at Nabble.com.