Re: [fw-general] Good examples of large, complex web apps written in ZF
2009/4/17 JAGJosh : > > Hey there, > > I have worked my way through several tutorials and the Zend Framework in > Action book. What I have not yet seen, however, is a complex application > example. I'm not really looking for a tutorial, so much as simply some > example code of a complex app. Preferably one involving a normalized DB with > various kinds of table relationships, authentication, ACL roles, email > integration, etc. > > Can anyone point to some good examples? There are a couple here: http://github.com/weierophinney/ and I have my storefront example app here, its not what I would call complex but it covers most of the things you have listed. http://code.google.com/p/zendframeworkstorefront/ > > Thanks, it is much appreciated! > Josh > -- > View this message in context: > http://www.nabble.com/Good-examples-of-large%2C-complex-web-apps-written-in-ZF-tp23106840p23106840.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- -- [MuTe] --
Re: [fw-general] Good examples of large, complex web apps written in ZF
Hi, I wrote this using Zend http://zfurl.us/ You can download the code on google code. http://code.google.com/p/zfurl/ -Tom JAGJosh wrote: Hey there, I have worked my way through several tutorials and the Zend Framework in Action book. What I have not yet seen, however, is a complex application example. I'm not really looking for a tutorial, so much as simply some example code of a complex app. Preferably one involving a normalized DB with various kinds of table relationships, authentication, ACL roles, email integration, etc. Can anyone point to some good examples? Thanks, it is much appreciated! Josh
[fw-general] Good examples of large, complex web apps written in ZF
Hey there, I have worked my way through several tutorials and the Zend Framework in Action book. What I have not yet seen, however, is a complex application example. I'm not really looking for a tutorial, so much as simply some example code of a complex app. Preferably one involving a normalized DB with various kinds of table relationships, authentication, ACL roles, email integration, etc. Can anyone point to some good examples? Thanks, it is much appreciated! Josh -- View this message in context: http://www.nabble.com/Good-examples-of-large%2C-complex-web-apps-written-in-ZF-tp23106840p23106840.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Cache_Core
On Fri, Apr 17, 2009 at 4:44 PM, Nicolai Scheer wrote: > I'm currently facing difficulties in the usage of Zend_Cache (zf 1.7.8). > I use Zend_Cache, Core as frontend, APC as backend. > The problem is as follows: > The Core frontend offers a 'cache_id_prefix' option. The load() and > save() respect that option by calling the _id() method for setting the > prefix if appropriate. > Now the new touch() function introduced by the new > Zend_Cache_Backend_ExtendedInterface does not use the _id() function. > Therefor, if used, the prefix option renders the touch() function > useless. Furthermore, the new getMetadatas() method is not implemented > at all in the Core frontend. To my mind, it should be there (including > the usage of the _id() method). > Is this behaviour intentional? please try the SVN trunk I fixed some bugs on these particular points if the problem is still there for you, open a JIRA issue Regards -- Fabien MARTY fabien.ma...@gmail.com
[fw-general] Zend Translate, Routes, and view->url()
I've been figuring out Zend_Translate today and have more or less got it working...I think... Can you guys help me with a few questions that have come up? First, to get Translate up and running, I put the following in my controller base class. One, Is the code ok? Two, should this be in the bootstrap? class App_Custom_CustomController extends Zend_Controller_Action { protected $_language; public function init() { $registry = Zend_Registry::getInstance(); $request = $this->getRequest(); // TRANSLATE $english = APPLICATION_PATH .'/../languages/en/en.php'; $french = APPLICATION_PATH .'/../languages/fr/fr.php'; $translate = new Zend_Translate('array', $french, 'fr'); $translate->addTranslation($english, 'en'); $languageSelected = $request->getParam('language', 'en'); if (!$translate->isAvailable($languageSelected)) { $languageSelected = 'en'; } $this->_language = $languageSelected; $translate->setLocale($this->_language); $registry->set('Zend_Translate', $translate); Second, I set up a route in my bootstrap to identify the requested language. This code works, but is this the best/correct way to do it. I'm always thinking about "best practices" It's here: // ROUTER $router = $frontController->getRouter(); $routeLanguage = new Zend_Controller_Router_Route( ':language/:controller/:action/*', array( 'language' => 'en', 'module' => 'default', 'controller' => 'index', 'action' => 'index' ) ); $router->addRoute('language', $routeLanguage); And finally, regarding $this-url(). I've coded: url(array('controller'=>'index'), 'language'); ?> Do I need to worry about anything else other than the route to make sure when a /fr/ route has been requested, this route is reflected in the url returned by $this->url()? As always, I really appreciate the help. Hope you all have a great weekend. Jason
[fw-general] Zend_Navigation
Jeesh I hate when you figure it out directly after posting. If you not familiar with short open tags make sure your not testing Your Zend_Navigation output in your layout like navigation()->menu()->renderMenu(null,array('maxDepth' => 0, 'ulClass' => 'tabmenu')); $this->navigation()->menu()->renderSubMenu($this->navigation,array('maxDepth ' => 2, 'ulClass' => 'submenu')); ?> But instead encapsulated. navigation()->menu()->renderMenu(null,array('maxDepth' => 0, 'ulClass' => 'tabmenu')); ?> navigation()->menu()->setUlClass('submenu'); ?> Plus you can change the ul class at call time which obviously helps when creating your style. navigation()->menu()->renderSubMenu($this->navigation,array('maxDepth ' => 2, 'ulClass' => 'submenu')); ?> With the introduction of Zend_Nav into the ZF you really can develop an application in within a few minutes. Id like to see Zend_Tool implement it in the future along with Zend_Application. Hope this helps someone out. Tom Shaw php.co...@tx.rr.com
Re: [fw-general] Zend_Application, howto Bootstrap Modules
-- j.padron wrote (on Friday, 17 April 2009, 10:55 AM -0700): > I've found this: > > http://framework.zend.com/issues/browse/ZF-6286 > > But I don't understand this setting: > > resources.modules.foo = "Bar" ; to ensure modules resource is loaded > > Must I create this for each module?, What does "Bar" mean? Resource plugins must be added as resource/options pairs. Typically, you'll have some configuration specific to a given resource, but if not and you want the still have to hint that the resource is available. The above example becomes the following array: 'modules' => array( 'foo' => 'Bar', ) which ensures that the "modules" resource plugin gets loaded. Since I had no options to pass to the resource, I gave some throwaway options. (You can actually pass module-specific options in that array, btw -- I'm just not doing so.) -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/
RE: [fw-general] Zend controller redirect
Okay cool. I figured it did due to the security implications of not exiting after a redirect via header. Thanks Mike Tramontano From: Vadim Gabriel [mailto:vadim...@gmail.com] Sent: Friday, April 17, 2009 2:12 PM To: Michael Tramontano Cc: fw-general@lists.zend.com Subject: Re: [fw-general] Zend controller redirect Hey, It does by default. But you can override it by using $this->setExit(false); * using 1.8 On Fri, Apr 17, 2009 at 8:56 PM, Michael Tramontano wrote: Before I go digging around the zend source, I was wondering if someone knows if the controller _redirect(...) function does an exit() after sending the location header (I'm assuming its using header()). Thanks! Mike Tramontano -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
Re: [fw-general] PEAR Channel Server
I'm not sure this is entirely true, and I have channels running on both Chiara and SimpleChannelServer. There's plenty of channels running the Chiara_PEAR_Server, and while it could use improvements I have no plans of dropping it any time soon. I mis-worded myself. I have been using the Chiara server for a while myself and it is working great. What I meant to say is from what I remember it does not lend itself very easily to swapping out the storage backend or putting a Dojo front-end on it for example. The channel server can be used for a lot more than just distributing PEAR packages. Maybe we can abstract it and provide a framework to build a package distribution systems. This is going to fit well with a project I am working on and I could lead this effort. There are a few different components that I think people bundle together, but in reality are separate animals. Understanding these components can help focus which pieces people are interested in helping with. 1. The installer - a tool that understands dependencies, installation and upgrading procedures, how to download packages, etc. 2. A channel server - a service which provides installable packages in a format the installer understands. 3. A public web site for the channel - listing the available packages and releases. 4. An administrative website for administering the channel, allowing maintainers to upload releases to the channel, possible bug tracker integration, user management. Chiara_PEAR_Server and friends aims to handle parts 2, 3, and 4. SimpleChannelServer is focused only on part 2. I think part 1 is best left up to PEAR/Pyrus and the PEAR Group. It seems pretty specialized. I would consider writing a wrapper for it for ZF though so we can use PEAR/Pyrus inline from ZF apps. Part 3 and 4 don't really fit into ZF I don't think as they are more complete end-user apps. They can be built *with* ZF however. Part 2 (the actual channel server) is a great candidate for ZF I think. When implementing this I would abstract it right away into a generic server that allows distribution of bundles or packages with attached meta data via "channels". We can take advantage of different ZF features to upload packages to the server, query the package meta data and server, provide different storage backends like File, DB, AmazonS3 and incorporate caching. The server could be used to: - Make packages available to the PEAR Installer / Pyrus - Host software downloads of any kind - Manage a bunch of videos Basically anything that is packaged into a bundle to be transmitted/hosted/managed with attached meta data that is used to query and organize the bundles. With all the heavy-lifting hidden behind a clean API it would be trivial to build front-ends for it. There's a lot of interesting things going on with Pyrus (the next version of the PEAR installer) and Helgi and I will be coordinating a Pyrus hacking session at |Tek. We'd be happy to answer any questions in person, and welcome anyone interested in participating. Unfortunately I will not be able to make it to the conference. Maybe we can address a few questions now: - What is the planned transition timeline from the existing PEAR installer to Pyrus? - I am assuming Pyrus is PHP 5.3 + only? - Is there a feature list for Pyrus somewhere? - Would anyone be interested in a ZF wrapper for PEAR/Pyrus? - Would anyone be interested in a ZF distribution server as described above? Thanks! Christoph
Re: [fw-general] Zend controller redirect
Hey, It does by default. But you can override it by using $this->setExit(false); * using 1.8 On Fri, Apr 17, 2009 at 8:56 PM, Michael Tramontano < mtramont...@efashionsolutions.com> wrote: > Before I go digging around the zend source, I was wondering if someone > knows if the controller _redirect(...) function does an exit() after > sending the location header (I'm assuming its using header()). > > Thanks! > > Mike Tramontano > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
[fw-general] Zend controller redirect
Before I go digging around the zend source, I was wondering if someone knows if the controller _redirect(...) function does an exit() after sending the location header (I'm assuming its using header()). Thanks! Mike Tramontano
[fw-general] Zend_Openid and storage
Hello, I am wondering if support for creating robust openid server support has been halted. The reason I ask, is in the Zend_OpenId_Provider_Storage area, only type File is supported. I looked at how I could extend this to LDAP, but hit a wall. Has anyone used LDAP as storage for Zend's implementation of OpenId_Provider? Also, the documentation is very slim on this, even though it mentions that other forms of storage will be supported. Thanks in advance, Dan O'Leary -- View this message in context: http://www.nabble.com/Zend_Openid-and-storage-tp23102770p23102770.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Application, howto Bootstrap Modules
Hi, I've found this: http://framework.zend.com/issues/browse/ZF-6286 But I don't understand this setting: resources.modules.foo = "Bar" ; to ensure modules resource is loaded Must I create this for each module?, What does "Bar" mean? Thanks -- View this message in context: http://www.nabble.com/Zend_Application%2C-howto-Bootstrap-Modules-tp23089584p23102686.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue
Anyone having related issues should read here for details: http://www.thomasweidner.com/flatpress/2009/04/17/recieving-files-with-zend_form_element_file/ Using two file transfer instances is really a no-go and introduces other problems when not being handled properly. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Ehask71" To: Sent: Friday, April 17, 2009 6:34 PM Subject: Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue Just in case someone else has multifile issues :) $upload = new Zend_File_Transfer_Adapter_Http(); $upload->setDestination(_IMGSOURCE_); $i=0; $mhash = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']); foreach ($upload->getFileInfo() AS $k => $info) { if($info['name'] != ''){ $ext = pathinfo($info['name']); $filename = 'image_'.$mhash.'_'.$i.'_'.date('Ymdhs').'.'.$ext['extension']; $upload->addFilter('Rename', array('target' => _IMGSOURCE_.$filename, 'overwrite' => true)); if(!$upload->receive($info['name'])){ $this->view->messages = $upload->getMessages(); } $i++; $files[] = $filename; } } $values = $form->getValues(); Then after I insert the Application into the db $mid = $table->getAdapter()->lastInsertId(); if(is_array($files) && count($files) > 0){ // Add Photo to Db $photo = new ModelPhotos(); foreach ($files AS $file){ if(file_exists(_IMGSOURCE_.$file)){ $data = array( 'modelid' => $mid, 'name' => $file, 'desc' => '', 'url' => '', 'hash' => $mhash, 'dateAdded' => new Zend_Db_Expr('NOW()') ); $photo->insert($data); try { $resized = new App_Thumbnail(_IMGSOURCE_.$file); $resized->resize( 600, 800); $resized->save(_IMGSOURCE_.$file,80); $resized->watermark(_IMGSOURCE_.$file); $photo->_createThumbnail(_IMGSOURCE_.$file, _THUMBSOURCE_.$file, 100, 150, $q = 80); } catch (Exception $e) { $logger = Zend_Registry::get('logger'); $logger->warn("Image Insert Error - ". $e->getMessage()); $this->flash('There was a problem. Please Try Again!','/modelapplication/error'); } } } } -- View this message in context: http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23101190.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue
Just in case someone else has multifile issues :) $upload = new Zend_File_Transfer_Adapter_Http(); $upload->setDestination(_IMGSOURCE_); $i=0; $mhash = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']); foreach ($upload->getFileInfo() AS $k => $info) { if($info['name'] != ''){ $ext = pathinfo($info['name']); $filename = 'image_'.$mhash.'_'.$i.'_'.date('Ymdhs').'.'.$ext['extension']; $upload->addFilter('Rename', array('target' => _IMGSOURCE_.$filename, 'overwrite' => true)); if(!$upload->receive($info['name'])){ $this->view->messages = $upload->getMessages(); } $i++; $files[] = $filename; } } $values = $form->getValues(); Then after I insert the Application into the db $mid = $table->getAdapter()->lastInsertId(); if(is_array($files) && count($files) > 0){ // Add Photo to Db $photo = new ModelPhotos(); foreach ($files AS $file){ if(file_exists(_IMGSOURCE_.$file)){ $data = array( 'modelid' => $mid, 'name' => $file, 'desc' => '', 'url' => '', 'hash' => $mhash, 'dateAdded' => new Zend_Db_Expr('NOW()') ); $photo->insert($data); try { $resized = new App_Thumbnail(_IMGSOURCE_.$file); $resized->resize( 600, 800); $resized->save(_IMGSOURCE_.$file,80); $resized->watermark(_IMGSOURCE_.$file); $photo->_createThumbnail(_IMGSOURCE_.$file, _THUMBSOURCE_.$file, 100, 150, $q = 80); } catch (Exception $e) { $logger = Zend_Registry::get('logger'); $logger->warn("Image Insert Error - ". $e->getMessage()); $this->flash('There was a problem. Please Try Again!','/modelapplication/error'); } } } } -- View this message in context: http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23101190.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue
Nevermind . thats what I get for posting before waking up! I altered my logic and I upload,rename and store the renamed filename in an array. I add the filenames to the db AFTER I do the application insert Too many projects not enough time in the day Thx Thomas Eric -- View this message in context: http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23101091.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Navigation
Using the array found here http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers .initial.navigation // Create container from array $container = new Zend_Navigation($this->initPages()); // Store the container in the proxy helper: $view->getHelper('navigation')->setContainer($container); The problems Im having are below. $this->navigation()->menu()->setMaxDepth(0); This outputs all level zeros successfully. No problems. Subsequent calls are where the problems arise. $this->navigation()->menu()->render(null, array('maxDepth' => 0)); Is supposed to avoid setting max depth in the helper instance but it pumping out all nodes. $this->navigation()->menu()->setMaxDepth(null); Has no effect after after previously calling setMaxDepth(0) $this->navigation()->menu()->renderSubMenu(); Will not render the sub menu after the initial $this->navigation()->menu()->setMaxDepth(0); has been made. Thanks Tom Shaw php.co...@tx.rr.com
Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue
*) Attach the rename filter BEFORE calling getValues(). or *) Don't call getValues() to get the file or *) Disable value within the file element Generally you might be interested in this blog note: http://www.thomasweidner.com/flatpress/2009/04/17/recieving-files-with-zend_form_element_file/ Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Ehask71" To: Sent: Friday, April 17, 2009 4:49 PM Subject: Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue thomasW wrote: As noted in the FAQ you are calling getValues() on the file element. As the file itself is the value of the file element within ZF, this means that you receive the file by calling getValues(). All the code below getValues() will never get executed as there is no file anymore to receive. And as you have not added a rename filter before that call, the original file will be received unrenamed. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com Hm I hate to have to do a 2 step process As I name the images with the application ID which is the lastInsertid() from the query before the Image inserts. Is there another way to get the filtered values without breaking my file naming?? Thx again Thomas for your help Eric -- View this message in context: http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23099175.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework team reorganization
Hi,all. I started to pay attention from the project of zf 0.1 and use it, in this, thank Zend and all those who contributed to the ZF. Wish ZF getting better. Mills from china.
Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue
thomasW wrote: > > As noted in the FAQ you are calling getValues() on the file element. > As the file itself is the value of the file element within ZF, this means > that you receive the file by calling getValues(). > > All the code below getValues() will never get executed as there is no file > anymore to receive. > And as you have not added a rename filter before that call, the original > file will be received unrenamed. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > Hm I hate to have to do a 2 step process As I name the images with the application ID which is the lastInsertid() from the query before the Image inserts. Is there another way to get the filtered values without breaking my file naming?? Thx again Thomas for your help Eric -- View this message in context: http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23099175.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Cache_Core
Hi! I'm currently facing difficulties in the usage of Zend_Cache (zf 1.7.8). I use Zend_Cache, Core as frontend, APC as backend. The problem is as follows: The Core frontend offers a 'cache_id_prefix' option. The load() and save() respect that option by calling the _id() method for setting the prefix if appropriate. Now the new touch() function introduced by the new Zend_Cache_Backend_ExtendedInterface does not use the _id() function. Therefor, if used, the prefix option renders the touch() function useless. Furthermore, the new getMetadatas() method is not implemented at all in the Core frontend. To my mind, it should be there (including the usage of the _id() method). Is this behaviour intentional? Greetings, Nico
[fw-general] Zend_Soap and Oauth?
Anyone out there implemented a Zend_Soap server with OAuth support enabled? I have our REST API with Zend_Rest_Server working perfectly in OAuth world, but am having major issues getting SOAP to cooperate. Any help would be greatly appreciated. Thanks -- Jason Austin Senior Solutions Implementation Engineer NC State University - Office of Information Technology http://webapps.ncsu.edu 919.513-4372
Re: [fw-general] Zend_Search_Lucene_Search_Query_Wildcard working with zf 1.7.0 but not with 1.7.7+
I had the same problem when upgrading from 1.6.8 to 1.7.8.Each term needs to have at least 3 characters alongside the wild card in order to work. So the search "ha*" will fail, but "har*" works fine. The easiest work around is to just make sure each term with a wildcard in it has at least 3 characters. There are a few bug reports in the issue tracker already related to this: http://framework.zend.com/issues/browse/ZF-6290 http://framework.zend.com/issues/browse/ZF-4653 >>> Sergio Rinaudo 4/15/2009 3:10:16 PM >>> Hello, hope anybody could help with the Search Lucene component. This code: $request = $this->getRequest(); $params = $request->getParams(); $c = isset($params['c']) ? $params['c'] : ''; $term = new Zend_Search_Lucene_Index_Term('*'.$c.'*','categories_url'); $query = new Zend_Search_Lucene_Search_Query_Wildcard($term); $results = $index->find($query,'dateCreated',SORT_REGULAR,SORT_DESC); works with zf 1.7.0 but NOT with zf 1.7.7 and 1.7.8, andI get this exception: exception 'Zend_Search_Lucene_Exception' with message 'At least 3 non-wildcard terms are required.' I've read the documentation http://framework.zend.com/manual/en/zend.search.lucene.query-api.html but I were unable to find where is specified about the 3 non-wildcard terms required. I appreciate any suggestion. Thanks. Sergio Rinaudo Il remix esclusivo di Messenger. Scaricalo gratis! Dillo con le Emoticon! Scarica il nuovo Messenger 2009 Il remix esclusivo di Messenger. Scaricalo gratis!
Re: [fw-general] ZendX_JQuery not loaded using Zend_Application
In your layout (if you're using layouts), do you have something like jQuery() ?> in the head? Regards, Jay M. Keith On Thu, Apr 16, 2009 at 8:36 PM, Bagus Nugroho wrote: > Hi All, > I'm trying using ZendX_JQuery within Zend_Application, which generated by > Zend_Tool and edited Bootstrap.php, refer 'storefront' to add ZendX_JQuery > as the following : > Bootstrap.php=== > // > protected function _initView() > { > $viewRenderer = > Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); > $viewRenderer->init(); > > $this->_view = $viewRenderer->view; > $this->_view->setEncoding('UTF-8'); > $this->_view->doctype('XHTML1_STRICT'); > $this->_view->headTitle('Development'); > > //Load themes > > $this->_view->headLink()->appendStylesheet('/themes/base/ui.all.css'); > > // Add jQuery > > $this->_view->addHelperPath('ZendX/JQuery/View/Helper','ZendX_JQuery_View_Helper'); > > $this->_view->jQuery()->setLocalPath('../scripts/jquery-1.3.2.min.js'); > > $this->_view->jQuery()->setUiLocalPath('../scripts/jquery.ui/jquery-ui.min.js'); > > Zend_Layout::startMvc(array('layout' => 'main', > 'layoutPath' => APPLICATION_PATH . '/layouts/scripts' > )); > } > // > > > why jquery library not loaded when I'm load the page. > > But jquery library loaded, when I add the following code on > scripts(index.phtml) > index.phtml== > ajaxLink("Show me something", > "/index/demo", > array('update' => '#content')); ?> > > > > Is I'm missing something? > > Thanks in advance, bn > > > > > >
Re: [fw-general] PEAR Channel Server
Hello everyone, On Thu, Apr 16, 2009 at 12:50 PM, till wrote: > On Thu, Apr 16, 2009 at 7:37 PM, Christoph Dorn > wrote: >> >>> There is actually a PHP53 only implementation which i think the PEAR group >>> is moving towards, and its pretty much in line with what you are describing. Correct. This is what I'm focusing on right now. >>> Its called SimpleChannelServer and is being worked on by brett bieber of >>> pear (aka Saltybeagle) >>> http://saltybeagle.com/?section=article&id=124 I've been using it for a few months now and it's been working fine for me. >>> I think its prob best that PHP core & infrastruture components be handled >>> by them, but we need to see what their roadmap looks like. >> >> I agree, but in the past there has never been a solid channel server and I >> think I read somewhere that SimpleChannelServer will be the only one >> provided going forward. I'm not sure this is entirely true, and I have channels running on both Chiara and SimpleChannelServer. There's plenty of channels running the Chiara_PEAR_Server, and while it could use improvements I have no plans of dropping it any time soon. >> The channel server can be used for a lot more than just distributing PEAR >> packages. Maybe we can abstract it and provide a framework to build a >> package distribution systems. This is going to fit well with a project I am >> working on and I could lead this effort. There are a few different components that I think people bundle together, but in reality are separate animals. Understanding these components can help focus which pieces people are interested in helping with. 1. The installer - a tool that understands dependencies, installation and upgrading procedures, how to download packages, etc. 2. A channel server - a service which provides installable packages in a format the installer understands. 3. A public web site for the channel - listing the available packages and releases. 4. An administrative website for administering the channel, allowing maintainers to upload releases to the channel, possible bug tracker integration, user management. Chiara_PEAR_Server and friends aims to handle parts 2, 3, and 4. SimpleChannelServer is focused only on part 2. So the scope of each of these is very different and will require different areas of expertise... so there's plenty of room for people to help. >> Do you know Brett? Do you think we can have a discussion with him about this >> so we can decide on a go-forward. I don't want to duplicate any effort. > > I've CC'ed Brett an this email. I'm sure he's all open to feedback and so on. I certainly am, thanks for the note Till. I'd be happy to answer any questions, and welcome any feedback. There's a lot of interesting things going on with Pyrus (the next version of the PEAR installer) and Helgi and I will be coordinating a Pyrus hacking session at |Tek. We'd be happy to answer any questions in person, and welcome anyone interested in participating. -- Brett Bieber
Re: [fw-general] Zend Framework team reorganization
Sorry for joining this thread so late - but better late than never, Greetings everyone, I've been lurking on this mailing list since 2005, but I've never actually been active around the ZF project - so getting involved is very exciting for me. I'm looking forward to working with Matthew, his team and everyone here to build on the huge momentum ZF already achieved and make it even more successful. Speaking of success, I'm definitely joining Matthew, Andi and many others here in thanking Wil for his humungous contributions (and the ones to come)! Zeev At 15:15 14/04/2009, Matthew Weier O'Phinney wrote: Greetings! The Zend Framework team has undergone some internal reorganization recently which will have some bearing on the project. First, the team now reports to Zeev Suraski, Zend's CTO. Please welcome him to the lists! Additionally, Wil Sinclair is ending his tenure as the Zend Framework team leader. During his time as project lead, Zend Framework has made tremendous progress in becoming the de-facto standard for PHP development, with several significant achievements: * The 1.5, 1.6, and 1.7 releases, as well as the recent 1.8 preview release * Helped support and build partnerships with the Dojo Foundation, Adobe, and others * Introduction of agile methodologies to the ZF team * Usage of social networking media as an additional support vector I'd like to thank Wil for his contributions to the Zend Framework project! Finally, I am pleased to announce my own promotion to the position of Project Lead. I have worked with Andi and Zeev in recent weeks to define how I will approach this role, and have emphasized during that time the need to address and respond to community concerns. Following the 1.8 release, the team will be focussing on items such as whiddling down the bug backlog, improving documentation, and writing tutorials. Additionally, we will be outlining and scoping upcoming releases in order to publish a public roadmap for the project. Part of this effort will include some work to make the proposal process easier and more transparent. The hope is that having published milestones will help focus user contributions, both in terms of new features and stabilizing the framework. I look forward to working with each and every one of you, and welcome your feedback! -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Decorate MultiCheckbox
Fire Eye'd Boy schreef: Hi people, I'm trying to create the following output from a MultiCheckbox: etc... So, basically an unordered list. With each list item having a checkbox, with either a Flash object or an image as 'label' for the checkbox. But the 'real label' element is not necessery. In fact, I'ld rather ditch 'em in this case. I'm pretty sure this can't be done with standard decorators, but before I start writing my own viewhelper I wanted to consult you people to see if it is possible anyway. Especially since I'm in kind of a hurry and writing my own viewhelper would make me have to dig into the 'howto' of creating these first. So my question is: is the above example achievable with standard decorators? I don't think it is. -Bart Thank you in advance.
[fw-general] Decorate MultiCheckbox
Hi people, I'm trying to create the following output from a MultiCheckbox: etc... So, basically an unordered list. With each list item having a checkbox, with either a Flash object or an image as 'label' for the checkbox. But the 'real label' element is not necessery. In fact, I'ld rather ditch 'em in this case. I'm pretty sure this can't be done with standard decorators, but before I start writing my own viewhelper I wanted to consult you people to see if it is possible anyway. Especially since I'm in kind of a hurry and writing my own viewhelper would make me have to dig into the 'howto' of creating these first. So my question is: is the above example achievable with standard decorators? Thank you in advance.
Re: [fw-general] Zend_Navigation
What I see mostly to solve this is: if (null !== ($t=$this->getUseTranslator())) { // it comes down to the same, but it is slightly more specific } Personally, I just ignore the complaints of ZS about assignments in conditions. -Bart Lucas Thompson schreef: On Wed, Apr 15, 2009 at 6:05 PM, Michael Scholl wrote: I read many different things about that… (Zend Studio throws errors on asssignments in if/while statements) Would be really interesting how other developers think about that!!! FWIW, Zend Studio doesn't complain if you nest the assignment in another set of parenthesis: if(($t=$this->getUseTranslator())) { // no warning from Zend Studio about } Personally, I don't mind that syntax as long as a sane default for $t is set beforehand.
Re: [fw-general] Saving a new comment by an article
tfk wrote: > > On Thu, Apr 16, 2009 at 9:53 PM, Derk wrote: >> >> nobody? >> >> Derk wrote: >>> >>> There are two tables involved >>> >>> articles >>> - id >>> - title >>> - text >>> >>> comments >>> - name >>> - comment >>> - article_id >>> >>> Now I have a form by an article, so users can post comments >>> >>> The code is quite simple... >>> >>> public function showAction() { >>> $articlesTable = new Articles; >>> $article = $articlesTable->fetchRow("REPLACE(title, ' ', >>> '-') = '" . >>> $this->_getParam('article') . "'"); >>> >>> // comments >>> $this->view->comments = $article->findComments(); >>> >>> // comment form >>> // create form. >>> >>> $this->view->form = $form; >>> >>> if($this->getRequest()->isPost()) { >>> >>> if($form->isValid($_POST)) { >>> $commentsTable = new Comments(); >>> $comment = >>> $commentsTable->createRow($form->getValues()); >>> $comment->article_id = $article->id; >>> $comment->save(); >>> } >>> } >>> >>> } >>> >>> when I post a comment I get: "Cannot refresh row as parent is missing" >>> stack trace: >>> #0 ...\library\Zend\Db\Table\Row\Abstract.php(475): >>> Zend_Db_Table_Row_Abstract->_refresh() >>> >>> >>> But the comment is saved in the right way.. >>> >>> How can I solve this? >>> >>> Thanks for your help >>> >> > > I'm guessing the Comments model is missing the primary key. > > Till > > Oh sorry, the Comments table has also an field id as primary key. So this isn't the fault -- View this message in context: http://www.nabble.com/Saving-a-new-comment-by-an-article-tp21873432p23093274.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Form_Element_File and previewing
I haven't done this, but I would upload the files using ajax an I think you should be looking at Zend_Http_Request for that and store the filenames in hidden formElements for persistence. -Bart Justin Hendrickson schreef: I'm trying to create a Zend_Form that contains a couple of Zend_Form_Element_File elements, amongst other things. I want to support previewing the content before submitting, but I'm not sure how to make the file elements stick from the preview to the submit. Has anyone found a good way of handling this?
Re: [fw-general] Zend_Navigation
On Wed, Apr 15, 2009 at 6:05 PM, Michael Scholl wrote: > > I read many different things about that… > (Zend Studio throws errors on asssignments in if/while statements) > > Would be really interesting how other developers think about that!!! > FWIW, Zend Studio doesn't complain if you nest the assignment in another set of parenthesis: if(($t=$this->getUseTranslator())) { // no warning from Zend Studio about } Personally, I don't mind that syntax as long as a sane default for $t is set beforehand.