Re: [fw-general] New (kinda) ZF book. . .

2008-02-25 Thread Kevin McArthur
Ya, congrats to Quentin, not just for this book but for the work hes done on PHPRiot too. Yet another good Apress PHP book =P K Wil Sinclair wrote: Hi all, here's a book you might be interested in: http://books.slashdot.org/books/08/02/25/1451216.shtml It's not just about ZF, but apparently it

[fw-general] New (kinda) ZF book. . .

2008-02-25 Thread Wil Sinclair
Hi all, here's a book you might be interested in: http://books.slashdot.org/books/08/02/25/1451216.shtml It's not just about ZF, but apparently it uses ZF a lot for the examples: "In fact, the book makes so much use of the Zend Framework that, after reading it from cover to cover, the reader will h

Re: [fw-general] Using ZFW outside of the MVC context

2008-02-25 Thread Jack Sleight
Without actually testing this, I /think /you should be able to simply instantiate a new Zend_Controller_Request_Http object and then use that: $request = new Zend_Controller_Request_Http(); $request->getParam(''); Philip G wrote: I'm building a small little app, itty bitty like 2 pages with a

[fw-general] Using ZFW outside of the MVC context

2008-02-25 Thread Philip G
I'm building a small little app, itty bitty like 2 pages with a whee bit of ajax, and I want to use the Zend Framework outside of the MVC context. Most of this is easy enough except in getting request paramters. In MVC, I would say $this->getRequest()->getParam(''); Since $this is no longer an Zen

Re: [fw-general] How to render multiple action views ?

2008-02-25 Thread Juan Felipe Alavarez Saldarriaga
Hey! Is there a way to get the html string from a view using the actionStack ? I mean, I have this in an action: $this->_helper->actionStack( "brownBox", null, null, array( "arrCategoryInfo" => $this->view->arrCategoryInfo ) ); How to get the html string from that action ("brownBox") ? Thx.

Re: [fw-general] Sanity check releases OK?

2008-02-25 Thread Jack Sleight
Hi Wil, I just tested the 1.0.4 preview against my default application skeleton and found no obvious problems, components covered: Zend_Controller Zend_Db Zend_View Zend_Cache Zend_Config Zend_Session Zend_Acl Zend_Validate Zend_Filter Zend_Date Wil Sinclair wrote: Hi all, doesn't look like t

Re: [fw-general] Sanity check releases OK?

2008-02-25 Thread Eric Coleman
Same here, I keep building off of trunk, and it's been fine. Regards, Eric On Feb 25, 2008, at 3:30 PM, Jurriën Stutterheim wrote: Hi Wil, I update the trunk from the svn almost daily for my testing/devving environment. So far I haven't run into any problems using Form, Controller, View

Re: [fw-general] Sanity check releases OK?

2008-02-25 Thread Jurriën Stutterheim
Hi Wil, I update the trunk from the svn almost daily for my testing/devving environment. So far I haven't run into any problems using Form, Controller, View and Db. (including all helpers etc.) As far as I can see, 1.5 is ready for RC1. On Feb 25, 2008, at 7:51 PM, Wil Sinclair wrote: Hi

[fw-general] Zend_Controller_Router issue

2008-02-25 Thread Juan Felipe Alavarez Saldarriaga
Hey! :) Question, I try to define this route: $objRouter->addRoute( "articlesCategoryIndex", new Zend_Controller_Router_Route( "articulos/categoria/:id", array( "module" => "article", "controller" => "index", "action" => "category" ) ) ); But seems like "articulos/categoria/:id" try to load t

[fw-general] Sanity check releases OK?

2008-02-25 Thread Wil Sinclair
Hi all, doesn't look like there has been much discussion on this list about the sanity check releases. So, I'm assuming either they're OK or nobody is actually testing them. ;) I was wondering in particular if anyone had tried the 1.0.4 release, since it is a production release and the last of the

Re: [fw-general] ZendFramework and Smarty

2008-02-25 Thread Roberto Bouza
Julian, I have this piece of code from my library. This is the actual library which is the one who is going to generate the View. Then on your bootstrap you'll have to create a Helper_ViewRenderer and assign the newly created View_Smarty object to it. I did this code on 1.0.3, just yeste

Re: [fw-general] ZendFramework and Smarty

2008-02-25 Thread Jurriën Stutterheim
If you're not sure what template engine to use, might I suggest Zend_View instead? But if you're insisting on using Smarty... see these articles: http://naneau.nl/2007/05/10/smarty-and-the-zend-framework/ http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/ On Feb 25, 2008, at 2:02 P

Re: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Xaviar Rigo
Ah yes I am, 1.03, in that case I shall do things the slightly longer way intil 1.5 is classed as stable :) If any documentation people are watching when im reading the online examples docs its not clear what is 1.5 and what isnt, I know I can download the 1.03specific stuff but I find learning by

Re: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Simon Mundy
Sounds like you're using a pre-1.5 release of Zend Framework. Modifying dependent rowset queries wasn't added until then. Try d/ loading 1.5RC1 or the latest trunk from SVN Cheers $select = $r->select()->order( 'id ASC' ); Gives me an error of Fatal error: Call to undefined method Recipe::

Re: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Xaviar Rigo
$select = $r->select()->order( 'id ASC' );* *Gives me an error of* Fatal error*: Call to undefined method Recipe::select() However... $select = $r->getAdapter()->select()->order( 'id ASC' ); does not but still doesnt dort them by the ID of the Ingredients table On 25/02/2008, Xaviar Rigo <[E

Re: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Xaviar Rigo
Thanks for the replies but thats not working either, cant even see the error at the moment but trying to find out why. On 25/02/2008, Simon Mundy <[EMAIL PROTECTED]> wrote: > > Try > $select = $r->select()->order( 'id ASC' ); > $ingredientsForRecipe = $recipe->findDependentRowset('Ingredients', nu

Re: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Simon Mundy
Try $select = $r->select()->order( 'id ASC' ); $ingredientsForRecipe = $recipe->findDependentRowset('Ingredients', null, $select); The second argument for findDependentRowset specifies a rule name, the third is for the select object. Kind regards $select = $r->select()->order( 'id ASC'

RE: [fw-general] fetchDepenentRowset with order

2008-02-25 Thread Leonel Quinteros
Hi Xaviar, you should pass a null value to the 2º parameter like this: $ingredientsForRecipe = $recipe->findDependentRowset('Ingredients', null, $select); Leonel Quinteros > Date: Mon, 25 Feb 2008 13:14:57 + > From: [EMAIL PROTECTED] > To: fw-general@lists.zend.com > Subject: [fw-general] f

[fw-general] fetchDepenentRowset with order

2008-02-25 Thread Xaviar Rigo
Im having trouble understanding this example and applying it to my situation was wondering if anyone can help I want to fetch a dependent rowset in a table and order the results by a specific field in that table. The example in the docs says this : $accountsTable = new Accounts(); $accounts

Re: [fw-general] ZendFramework and Smarty

2008-02-25 Thread Julian Davchev
Have you tried the example in the manual regarding Smarty? Stefan Sturm wrote: Hello, I want to use Smarty( or perhaps another Template Engine ) with ZendFramework. So I tried google and found a lot Tutorials on how to do it. But they are very old and they all take a different approach. So

[fw-general] ZendFramework and Smarty

2008-02-25 Thread Stefan Sturm
Hello, I want to use Smarty( or perhaps another Template Engine ) with ZendFramework. So I tried google and found a lot Tutorials on how to do it. But they are very old and they all take a different approach. So I thought, I ask here for somesone who is using this combination and can help me out

Re: [fw-general] Unit testing for controllers and actions

2008-02-25 Thread Xaviar Rigo
This wont really help but might conrtibute towards it, Im having similar issues, it seams to be my dispatch that causes the problems Heres the test Im running : http://pastie.textmate.org/156901 Now if I run this test (yes I know it doesnt test anything) I get an error as follows 1) testNewActio

Re: [fw-general] Zend_1.5.0PR/Db/Select correlation error?

2008-02-25 Thread Aljosa Mohorovic
On Sat, Feb 23, 2008 at 8:25 PM, Pieter Kokx <[EMAIL PROTECTED]> wrote: > It is not possible to use names like 'Zend_1.5.0PR' as the library > folder where Zend is in. > > That's because ZF is using hard-coded require statements to 'Zend' folders. i changed folder name to Zend, that didn't help