Re: [fw-general] Zend_Application modules resource in INI

2009-04-07 Thread keith Pope
See below: 2009/4/7 Marko Korhonen : > > Hi, > > How is the build-in resource "Modules" activated in INI file? > > I have already other resources working nicely: > > autoloadernamespaces.0 = "Zend_" > autoloadernamespaces.1 = "My_" > > phpsettings.display_errors = 0 > phpsettings.error_reporting =

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread keith Pope
sing javascript, but since this need keeps coming up I'm > interested in finding a way to add a non form field element that doesn't > involve me hacking around dummy fields. > > James > > On Mon, Apr 6, 2009 at 10:41 AM, keith Pope > wrote: >> >&g

Re: [fw-general] Zend Form - Non Form Field Element

2009-04-06 Thread keith Pope
You may want to look at Matthews Zend_Form series on his blog, heres the latest: http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html 2009/4/6 James Stuart : > Hi, > > Has anyone ever tried to insert a non form field element into Zend Form? > > I have a f

[fw-general] Zend_Loader_Autoloader_Resource

2009-04-03 Thread keith Pope
Should the namespace include the _ when defining resource namespaces? Like when defining autoloader namespaces? Thx Keith

[fw-general] Re: Zend_Application nested loop

2009-04-02 Thread keith Pope
Ok ignore this I should check the issue tracker more before I speak 2009/4/2 keith Pope : > Hi, > > I am still getting Maximum function nesting level of '100' reached, > aborting! when using Zend_Application (current svn) with modules. > > I have storefront an

[fw-general] Zend_Application nested loop

2009-04-02 Thread keith Pope
Hi, I am still getting Maximum function nesting level of '100' reached, aborting! when using Zend_Application (current svn) with modules. I have storefront and cms modules, storefront is default Storefront is bootstrapped in the Main bootstrap file and cms has: "; } public function run

Re: [fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread keith Pope
<< Modulex_Model_Example << get's loaded by autoloader > > > I tried following in _initModule() method in my module's bootstrap > > $this->getResourceLoader() >                        ->addResourceType( >                        'row', >

Re: [fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread keith Pope
You need to register the frontcontroller bootstrap class resource, see below: There is a post here about it: http://akrabat.com/ I am using this .ini file: [bootstrap] autoloadernamespaces.0 = "Zend_" autoloadernamespaces.1 = "SF_" phpsettings.display_errors = 0 phpsettings.error_reporting = 81

[fw-general] Zend Framework SVN visualized

2009-03-30 Thread keith Pope
Hi, I was bored and decided to visualize the trunk of the project: http://www.vimeo.com/3924986 Enjoy :)

Re: [fw-general] Zend_Application feedback + autoloader question

2009-03-30 Thread keith Pope
I have raised the ticket thanks for the namespace help :) http://framework.zend.com/issues/browse/ZF-6160 2009/3/30 Matthew Weier O'Phinney : > -- keith Pope wrote > (on Monday, 30 March 2009, 09:14 AM +0100): >> Just writing a bit about Zend_Application and I noticed that the

Re: [fw-general] Zend_Form_Dojo Editor security concern (escaping output)

2009-03-30 Thread keith Pope
Personally I use htmlpurifier.org to clean my html, its designed to do exactly what you describe and is maintained to provide max security. You could then create your own filter to do this. 2009/3/30 lightflowmark <1...@lightflowinterrupted.com>: > > Hi, > I'm using the Dojo editor element in my f

[fw-general] Zend_Application feedback + autoloader question

2009-03-30 Thread keith Pope
Hi, Just writing a bit about Zend_Application and I noticed that there was no easy way to change the suppressNotFoundWarnings in the autoloader. It may be useful to have this as one of Zend_Applications options or have a way of passing options to the autoloader via Zend_Application. I know this ca

Re: [fw-general] zend_form setting class in

2009-03-26 Thread keith Pope
Someone correct me if this is wrong :) Looking at the Fieldset view helper there does not seem to be a way to set the class: // get legend $legend = ''; if (isset($attribs['legend'])) { $legendString = trim($attribs['legend']); if (!empty($legendString)) {

Re: [fw-general] Models and input validation best practices

2009-03-26 Thread keith Pope
2009/3/26 Giorgio Sironi : > 2009/3/26 keith Pope >> >> Remember that Zend_Form has three aspects, display, validation and >> filtering, therefore it is reasonable to only use the validation and >> filtering parts in your Model, they then act like a domain level >&

Re: [fw-general] Reporting in Zend Framework MVC applications

2009-03-26 Thread keith Pope
Blergh! Maybe I'm over-thinking this. Perhaps my first implementation is > pretty much good enough for 90% of reporting needs, and I should just get it > written and move on to the next job. > > On Wed, Mar 25, 2009 at 6:46 PM, keith Pope > wrote: >> >> Maybe a decorat

Re: [fw-general] Models and input validation best practices

2009-03-25 Thread keith Pope
2009/3/26 fab2008 : > > > Simon Corless wrote: >> >> >> >> fab2008 wrote: >>> >>> Hi all, >>> >>> I want to ask a simple question about validating user input especially >>> the input from the url taken with $this->_getParam(). An example: >>> >>> Currently I write my models assuming that the parame

Re: [fw-general] Reporting in Zend Framework MVC applications

2009-03-25 Thread keith Pope
Maybe a decorator? You could then start with a base report and build it up. $report = new ReportMetricOne(new ReportMetricTwo(new Report())); $report could then be processed by a generic reporting class/model: $reportModel->generate($report); downside = complexity, decorators can be confusing t

Re: [fw-general] Zend_Application using modules

2009-03-24 Thread keith Pope
t; ::: > : Web    : http://www.dasprids.de : > : E-mail : m...@dasprids.de       : > : Jabber : jab...@dasprids.de     : > : ICQ    : 105677955              : > ::: > > > keith Pope schrieb: >> Hi Matthew, >&

Re: [fw-general] Zend_Application using modules

2009-03-24 Thread keith Pope
functionality, would it work if I extend from that instead of Zend_Application_Bootstrap_Base? Thx again, hope the feedback is of some use. Keith 2009/3/23 keith Pope : > Thx for the tips Matthew :) > > I think my examples were a little confusing, I have been hacking about > all day tryin

Re: [fw-general] Zend_Application using modules

2009-03-23 Thread keith Pope
process so I can add it to the book chapters I am currently working on. Thanks again for the help 2009/3/23 Matthew Weier O'Phinney : > -- keith Pope wrote > (on Monday, 23 March 2009, 03:26 PM +): >> I have been trying out Zend_App again as it seems to be moving on a >> bi

[fw-general] Zend_Application using modules

2009-03-23 Thread keith Pope
Hi, I have been trying out Zend_App again as it seems to be moving on a bit now, I am having some problems using modules, I keep getting: Maximum function nesting level of '100' reached, aborting! in /home/keith/www/ZApp/library/Zend/Loader/PluginLoader.php on line 125 I have been trying to trac

Re: [fw-general] URL rewriting

2009-03-23 Thread keith Pope
You need to use the Router docs are here: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic This will allow you to rewrite your urls easily within the ZF-MVC, what I normally do is in the database along with an id field have an ident field which is url-s

Re: [fw-general] Controller, Model and Paginator, and I want my Girls.. ehh, Controllers thin

2009-03-22 Thread keith Pope
I use the paginator within my Model, my model will then either return a rowset or a paginator object. I see the paginator as a domain service and therefore reasonable for my Model to return, its not prefect but saves having to write your own model aware paginator adapter. 2009/3/22 Marko Korhonen

Re: [fw-general] routeShutdown firing before action stack ...?

2009-03-14 Thread keith Pope
You may want to read this blog http://www.rmauger.co.uk/2009/03/why-the-zend-framework-actionstack-is-evil/ and the performance guide in the manual, generally it is suggested to use the placeholder view helper which gives you control over placement or your own view helper. Hope that helps :) 20

Re: [fw-general] Some modelling help with Zend_Form

2009-03-13 Thread keith Pope
Cool, thx for taking a look :) 2009/3/13 Matthew Weier O'Phinney : > -- keith Pope wrote > (on Friday, 13 March 2009, 08:36 AM +): >> I am currently trying to create a Model using Zend_Form for input >> filtering and was hoping to get some feedback on the design. >

[fw-general] Some modelling help with Zend_Form

2009-03-13 Thread keith Pope
Hi, I am currently trying to create a Model using Zend_Form for input filtering and was hoping to get some feedback on the design. I am creating a User model, I have three different context in which it will be used: a) user registration b) registered users editing their details c) admin user add

Re: [fw-general] Using cookies

2009-03-08 Thread keith Pope
You may also be interested in http://framework.zend.com/issues/browse/ZF-4520, maybe http_cookie should not be used to create cookies then, you are right the docs are confusing :) 2009/3/8 keith Pope : > Cookiejar is only used in Zend_Http, not the MVC components, so you > get cookies v

Re: [fw-general] Using cookies

2009-03-08 Thread keith Pope
Cookiejar is only used in Zend_Http, not the MVC components, so you get cookies via the Http_Request object and set them using Http_Cookie. The source says: /** * A Zend_Http_CookieJar object is designed to contain and maintain HTTP cookies, and should * be used along with Zend_Http_Client in o

Re: [fw-general] how to write such route

2009-03-06 Thread keith Pope
You could use a negative lookaround regex in the validator 2009/3/6 Jacky Chen : > hi guys, > i want to add a router that match any characters but not match the word > "manage",for example,it would match /home , /news , /blog , but /manage > should not be matched. how to write such a route? thanks

[fw-general] Patch for ZF-4167

2009-03-05 Thread keith Pope
Hi, I have just uploaded a patch for ZF-4167 any feddback, testing would be cool :) http://framework.zend.com/issues/browse/ZF-4167 Thx Keith

[fw-general] Another patch question

2009-03-05 Thread keith Pope
In the docblock headers if I create a new file what do I do with the * @version$Id: TableBugsCustom.php 12290 2008-11-04 22:46:48Z matthew $ Thx :)

Re: [fw-general] Short Tags in PHPUnit tests

2009-03-04 Thread keith Pope
This may just be a problem with the tests not the actual framework, you need to enable the stream handler, therefore maybe the tests don't enable it, they may have been created before the stream handler. Quick and easy solution would be to enable short tags in the TestConfiguration or TestHelper :

Re: [fw-general] Best coding practice? Form takes too long to load now.

2009-03-04 Thread keith Pope
Are you using the meta-data cache? 2009/3/4 bytte : > > Hey that was interesting. I have the indexes defined and I see though Firebug > that there's currently 381 queries being performed at 0.14949 seconds. I > guess that means they're not the culprit? > > Are there any other tools to help me find

[fw-general] Writing a patch help

2009-03-04 Thread keith Pope
Hi, I am just going through creating a patch for Zend_Db_Table* for issue http://framework.zend.com/issues/browse/ZF-4167 I am wondering if unit tests are required for this, as the standard tests already cover the area of change? Also for a specific issue where should tests be created if needed?

Re: [fw-general] Zend_Application bugs

2009-02-28 Thread keith Pope
; } public function _initRequest() { // runs _initFrontController() if not already run: $this->bootstrapFrontController(); $this->request = new Zend_Controller_Request_Http; $this->front->setRequest($this->request); } p

[fw-general] Zend_Application bugs

2009-02-28 Thread keith Pope
Hi, Just doing some bits with Zend_App, In have two minor issues currently. When creating a bootstrap file, it keeps bugging me about abstract method unregisterPluginResource saying that it needs to be implemented. Also to get the bootstrap to call my init methods they have to be public not prot

Re: [fw-general] Controller / Model routines

2009-02-28 Thread keith Pope
I dont see a problem with having your Model send the email, what I would do though is put the mail code into a service, this way you keep mail logic out of your Model. This way for testing you can replace your mail service easily :) Model->signup() { ModelDbTable->startTransaction() try {

Re: [fw-general] Issue: Resource autoloading with Zend_Loader_Autoloader_Resource (incubator)

2009-02-26 Thread keith Pope
I have had a very similar problem reported to me, by someone who was using my storefront example application: http://code.google.com/p/zendframeworkstorefront/ I am using a copy of Matthew's prototype from the pastebin app, but the error seems to be the same, the classes are loading but warnings

Re: [fw-general] OO getParam in __construct

2009-02-14 Thread keith Pope
Looks like you are defaulting a value right? use $this->_getParam('value', 0); the second param is default if not set 2009/2/14 PHPScriptor : > > Ok, maybe I'm totally wrong but can I do something like this and how: > > class MyController extends Zend_Controller_Action > { > public $value > >

Re: [fw-general] Re: How to contact the Zend Framework team about OOP bad practices/suggestions?

2009-02-12 Thread keith Pope
Talking of patches, I submitted one for http://framework.zend.com/issues/browse/ZF-4167 which is a patch for getting rid of Zend_Loader in the Db table classes. I would be interested in your view on this patch as you have been working on the autoloader stuff. Currently its just a quick proof of con

Re: [fw-general] Zend_Paginator Question

2009-02-10 Thread keith Pope
Heres what I do, this is within a model resource Model has Resource -> Zend_Db_Table. public function getProductsByCategory($categoryId, $paged=null, $order=null) { $select = $this->select(); $select->from('product') ->where("categoryId IN(?)", $categoryId);

Re: [fw-general] Continue Processing after an action is completed

2009-02-08 Thread keith Pope
The thing that springs to mind is using the postDispatch on either the Front Controller or the Action Controller 2009/2/8 Ashley McConnell : > > Hi Folks, > > I would like to be able to call an action / respond to the client and then > continue on with some further processing. > > I have tried a c

Re: [fw-general] "subviews"

2009-02-08 Thread keith Pope
There are various ways to achieve this. Using the action stack helper Using forwarding Using the action view helper You should also look at the performance related issues here: http://framework.zend.com/manual/en/performance.view.html#performance.view.action 2009/2/8 Aspra Flavius Adrian : > Hi

Re: [fw-general] Best practice for sorting a rowset

2009-01-26 Thread keith Pope
The third parameter takes a Zend_Db_Select object, it does not seem to be reflected in the docs though but is in the source. 2009/1/26 Vince42 : > Hi, > > I need to sort a rowset that is fetched by findDependentRowset() ... i > read that this feature will never be implemented according to ZF-1182

Re: [fw-general] Design Question

2009-01-25 Thread keith Pope
Going for a single app instance per customer requires a lot more maintenance, you would need to have a very smart deployment system that could update all instances when you update your code, however you could do this using something like apache ant or phing and some bash scripting maybe rsync or sv

Re: [fw-general] Converting DB fetch to JSON for ComboBox population

2009-01-25 Thread keith Pope
FetchAll will return a Zend_Db_Table_Rowset, you can convert this to an array with: $myrowset->toArray(); And encode it with Zend_Json. 2009/1/25 sktib : > > Folks, > > I am new to Zend and Dojo so stumbling around a little. > > I am trying to populate a ComboBox from data in a table that has tw

[fw-general] Zend_Tool

2009-01-15 Thread keith Pope
Hi, I am just playing with Zend_Tool and I can't get it to do anything but create the basic project. Adding controllers etc will not work... zf create controller --name foo An error has occured: Option "name" is not recognized. This is using the zfcampus pear install and following the devzone a

Re: [fw-general] Zend_Db IN()

2009-01-14 Thread keith Pope
t in the query you want. >> >> Best regards, >> Tobias >> >> 2009/1/14 keith Pope : >>> Hi, >>> >>> How do you add an IN() to a where using select? I am getting >>> IN('1,2,3') rather than IN(1,2,3), which give

[fw-general] Zend_Db IN()

2009-01-14 Thread keith Pope
Hi, How do you add an IN() to a where using select? I am getting IN('1,2,3') rather than IN(1,2,3), which gives incorrect result. $select->from('product') ->where('categoryId IN(?)', $categoryId) Thx

[fw-general] Lost password for wiki

2009-01-13 Thread keith Pope
Hi, I have forgot my login for the wiki and cant find anywhere to retrieve it from can any of the admins help? Thx Keith

Re: [fw-general] Modules, "user module" and Zend_Auth

2009-01-12 Thread keith Pope
dispatchLoopStartup happens after routing so the route you add is never really there. use routeStartup 2009/1/12 Michel Morelli : > Hi all. I'm creating a web site, and I have split the site in more modules. > One for the frontend, one for the admin, one for the user, etc etc. > > Now I have a pr

Re: [fw-general] quickstart tutorial create layout help

2009-01-07 Thread keith Pope
Looks like you dont have short tags enabled for your php install. In your .htaccess use php_value "short_open_tag" "on" 2009/1/7 Deepak Shrestha : > Hi, > > I am completely new to ZF and following the quickstart guide. It was > doing OK until I reached the part "Create Layout" section > (http://f

Re: [fw-general] Best practice about a usage

2009-01-06 Thread keith Pope
I usually put these sort of things into my service layer, so I have a services folder like I have a models folder and load them in the same way as my models. So you could have something like directoryService that encapsulates all your directory access behavior. If you read Domain Driven Design, it

[fw-general] Re: Labs SVN access denied?

2008-12-12 Thread keith Pope
Sorry ignore me the wiki link is wrong, I have it working now via http://framework.zend.com/svn/framework/laborator 2008/12/12 keith Pope : > Hi, > > I am trying to checkout the laboratory using: > > http://framework.zend.com/svn/laboratory > > from http://framework.zend.c

[fw-general] Labs SVN access denied?

2008-12-12 Thread keith Pope
Hi, I am trying to checkout the laboratory using: http://framework.zend.com/svn/laboratory from http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards It keeps asking for authentication?? Have I got the wrong address from the wiki? Thx Keith

Re: [fw-general] Sharing a session between 2 hostnames

2008-12-10 Thread keith Pope
I did a bit of research on this a while ago checkout: http://en.wikipedia.org/wiki/Federated_identity Basically you need to create a Federated identity to be able to do this, its not very easy :) 2008/12/10 Ralph Schindler <[EMAIL PROTECTED]>: > Perhaps read through this thread on nabble: > > ht

Re: [fw-general] Best Approach for complex site code structure

2008-12-04 Thread keith Pope
If you need to use cron from cmd line, I would suggest looking at the request object, you can easily make your own that will translate cmd options to request vars that the MVC components can use. 2008/12/4 Rob Riggen <[EMAIL PROTECTED]>: > I'm doing these things on some sites (except maybe the co

Re: [fw-general] [Dumb Question] How do I use the URL view helper in my controllers?

2008-12-02 Thread keith Pope
very simple), but that internal interface might > change in later revisions of the framework, so i thought i'd see about doing > it the "right" way :P > > On Tue, Dec 2, 2008 at 5:21 PM, keith Pope <[EMAIL PROTECTED]> wrote: >> >> I would have a look inside

Re: [fw-general] [Dumb Question] How do I use the URL view helper in my controllers?

2008-12-02 Thread keith Pope
I would have a look inside the view url helper and maybe create an action helper that does the same? 2008/12/2 Cameron <[EMAIL PROTECTED]>: > Hi guys, > > The subject line sums it all up. I do some URL generation in the controller > / model (form submission URLs and so on), and I'd love to be able

Re: [fw-general] ZF & Memory usage

2008-11-25 Thread keith Pope
Have you tired any of the performance tips in the manual http://framework.zend.com/manual/en/performance.html Also have you tried debugging locally using Xdebug profiling, I use this regularly to catch bottlenecks. Another one to check is if you are using Zend_Db_Table etc that you are not gettin

Re: [fw-general] Pagination with routes not working.

2008-11-24 Thread keith Pope
Hi, Have you tried: $route = new Zend_Controller_Router_Route( 'wedding/bouquets/:bouquet', array( 'controller' => 'wedding', 'action' => 'bouquet', 'page' => 1 ) ); So this makes page default to 1 if not set. You may also want to be careful with t

Re: [fw-general] Loading Models best practice

2008-11-11 Thread keith Pope
ROTECTED]>: > -- keith Pope <[EMAIL PROTECTED]> wrote > (on Tuesday, 11 November 2008, 01:39 PM +): >> I am just wondering what the recommended way to load models is. >> >> 1) Add model directories to the path and use Zend_Loader >> 2) Use the Plugin Loader >> &

[fw-general] Loading Models best practice

2008-11-11 Thread keith Pope
Hi, I am just wondering what the recommended way to load models is. 1) Add model directories to the path and use Zend_Loader 2) Use the Plugin Loader I ask as there has been discussion on speed and the differences between ZL and PL, I was wondering what the most efficient out of the two. Thx K

Re: [fw-general] forward() question

2008-11-08 Thread keith Pope
Try the actionStack Plugin 2008/11/8 debussy007 <[EMAIL PROTECTED]>: > > Hi, > > How can I execute several actions from one action: > > the follwing test will print: > index A > index B > index C > test 2 ! > > I was expecting it to be > index A > test 1 ! > index B > test 2 ! > index C > > functi

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-08 Thread keith Pope
Lucene is a standard for indexing, Apache Lucene is the Java implementation of Lucene, Zend_Search_Lucene is the PHP implementation of Lucene. You can implement Lucene is any language if you follow the standard. Solr acts as a server like interface to Lucene, there are many ways of actually access

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-08 Thread keith Pope
If I had time I would, busy writing a book on ZF atm :) 2008/11/8 Tobias Gies <[EMAIL PROTECTED]>: > Hey Keith, > > go ahead and create a proposal > > :) > > 2008/11/8 keith Pope <[EMAIL PROTECTED]> >> >> Talking of solr maybe Zend_Service_Solr

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-08 Thread keith Pope
Talking of solr maybe Zend_Service_Solr would be a good addition to the Zend Core? 2008/11/8 Ralf Eggert <[EMAIL PROTECTED]>: > Hi again, > > thanks to Keith, Matthew and Hakan so far for their feedback about > Zend_Search_Lucene. So it seems that ZSL is not yet enterprise ready so far. > > Is the

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-07 Thread keith Pope
Hi, I did a prototype using ZSL using a database of news articles 40,000. I had a bit of a mixed experience Indexing was fine took a while but nothing unexpected. Searching using simple queries was ok I think its was something like 0.8 - 2 seconds per search Searching using ranges failed some

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread keith Pope
Would adding an exception to the Response work though? 2008/11/4 Matthew Weier O'Phinney <[EMAIL PROTECTED]>: > -- Waigani <[EMAIL PROTECTED]> wrote > (on Monday, 03 November 2008, 09:59 PM -0800): >> Is it possible? I want to throw an exception in the preDispatch of a plugin >> if you are not all

Re: [fw-general] Hooks between Modules

2008-10-29 Thread keith Pope
I have been looking at reducing dependencies across my modules, I still don't have an absolute solution yet however I am leaning towards adding a service layer to my domain. This way my "modules" can provide services for other modules, the idea being make sure that each module does not need knowle

[fw-general] Re: Zend_Form Captcha Invalid xhtml maybe bug??

2008-10-10 Thread keith Pope
t; 'Figlet', 'wordLen' => 6, 'timeout' => 300, ) )); 2008/10/10 keith Pope <[EMAIL PROTECTED]>: > Hi, > > I am having trouble finding an error with the captcha form element. > > $capt

Re: [fw-general] Framework speed shotout -- question

2008-10-10 Thread keith Pope
Anyway if you are really that bothered by performance just use procedural PHP :) IMO a framework is there to help you maintain a codebase in an effective manner and not to have to do some of the basics yourself. All the talk of benchmarking tires me, I am sure ZF could and will be better performin

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread keith Pope
Sounds like maybe ACL could do that for you?? 2008/10/10 maxarbos <[EMAIL PROTECTED]>: > > Hello, > > we have a site that is heavily using ajax calls. The layout is to remain > constant but just the info that is being called should be the only content > refreshing or changing on the page. > > In e

[fw-general] Zend_Form Captcha Invalid xhtml maybe bug??

2008-10-10 Thread keith Pope
Hi, I am having trouble finding an error with the captcha form element. $capt = new Zend_Form_Element_Captcha('foo', array( 'label' => "Please verify you're a human", 'captcha' => array( 'captcha' => 'Figlet', 'wordLen' => 6,

[fw-general] Router and routes

2008-10-06 Thread keith Pope
Hi, I am trying to describe the behavior of the router and its routes. Am I correct in saying that: The route chain is called in reverse order to the order in which you add them. Chaining routes enables you to add another route chain to a route. I was thinking of providing a diagram something l

Re: [fw-general] Session ID Protection

2008-09-30 Thread keith Pope
This is addressed by Zend_Session already. You should make sure that you re-generate the session id for every request, I usually include Zend_Session::regenerateId() in my bootstrap. I would suggest reading the reference: http://framework.zend.com/manual/en/zend.session.global_session_management.

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread keith Pope
ZF is by default setup for a Http environment this means that you get: Http Request Object Http Response Object So to do what you want you need to use the Cli response object, and you may need create your own Request object. Look at the request object abstract. The request object holds data to de

RE: [fw-general] Dispatcher works only with browsers?

2008-09-10 Thread Keith Pope
It should still work from curl and flash as long as you are using http as the dispatcher is for the http protocol and not the browser. Have you turned on exception throwing in the front controller, the FC is looking for the error controller by the looks of it. You will get more info with except

RE: [fw-general] FYI: new php framework benchmarks

2008-09-02 Thread Keith Pope
Out of interest what sort of performance boost would having all classes in one file bring? Does include require etc really make that much difference? - Original Message - From: Viper X <[EMAIL PROTECTED]> Sent: Tue, 9/2/2008 10:27am To: fw-general@lists.zend.com Subject: Re: [fw-general]

RE: [fw-general] Multiple versions of VIEWS

2008-08-28 Thread Keith Pope
You want to look at the contextswitch action helper. http://framework.zend.com/manual/en/zend.controller.actionhelpers.html 8.8.4.3. ContextSwitch and AjaxContext - Original Message - From: [EMAIL PROTECTED] Sent: Thu, 8/28/2008 6:28am To: fw-general@lists.zend.com Subject: [fw-gener

RE: [fw-general] Status of Zend_Build / scaffolding

2008-08-14 Thread Keith Pope
currently a push to get feedback on the proposals. Keith Pope Web Developer -Original Message- From: Ralf Eggert [mailto:[EMAIL PROTECTED] Sent: 14 August 2008 08:51 To: fw-general@lists.zend.com Subject: [fw-general] Status of Zend_Build / scaffolding Hi, just a quick question. What is the

RE: [fw-general] writnig files

2008-08-13 Thread Keith Pope
What about testing, sometimes its good to wrap the PHP functions so you can mock them. Would be cool if there was a way to automatically wrap some functions like fopen. - Original Message - From: Matthew Weier O'Phinney <[EMAIL PROTECTED]> Sent: Wed, 8/13/2008 3:09pm To: fw-general@list

RE: [fw-general] Multiple Controller Directories

2008-08-08 Thread Keith Pope
Sorry I didnt read your email fully, its early :) You could try using the router to eliminate the modules problem you have, checkout the docs http://framework.zend.com/manual/en/zend.controller.router.html section 7.5.6.1.3. Hostname routing Keith Pope Web Developer -Original Message

RE: [fw-general] Multiple Controller Directories

2008-08-08 Thread Keith Pope
initialization plugins. Matthew has put an example in the docs http://framework.zend.com/manual/en/zend.test.phpunit.html#zend.test.phpunit.bootstrapping I find using this technique give you more control over the bootstrap process. Keith Pope Web Developer -Original Message- From

RE: [fw-general] OT: Good Docbook Editor

2008-07-31 Thread Keith Pope
I was never very good with vi hehe :) Maybe its time to learn it... - Original Message - From: Matthew Weier O'Phinney <[EMAIL PROTECTED]> Sent: Thu, 7/31/2008 2:59pm To: fw-general@lists.zend.com Subject: Re: [fw-general] OT: Good Docbook Editor -- Keith Pope <[EMAIL PRO

[fw-general] OT: Good Docbook Editor

2008-07-31 Thread Keith Pope
Hey guys, Do you use a docbook editor for writing the zf docs? If so whats a good editor to use? Thx Keith Pope -- allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, Hereford, HR1 3SE. Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88. Telephone

RE: [fw-general] MVC testing scaffold is feature complete

2008-07-01 Thread Keith Pope
Nice work! This is just the stuff that makes ZF great :) - Original Message - From: Matthew Weier O'Phinney <[EMAIL PROTECTED]> Sent: Mon, 6/30/2008 7:40pm To: fw-general@lists.zend.com Cc: [EMAIL PROTECTED] Subject: [fw-general] MVC testing scaffold is feature complete Greetings, all.

RE: [fw-general] Zend_Session Unit Testing

2008-06-19 Thread Keith Pope
Thx for the advise guys, needless to say I refactored to get rid of the new call and all is well using a mock. Btw is there any news on Zend_Di it would be so useful to have an IOC container in the framework! Keith Pope Web Developer -Original Message- From: Steven Brown [mailto

[fw-general] Zend_Session Unit Testing

2008-06-18 Thread Keith Pope
Hi, How do you setup zend_session to run in PHPUnit Suite, I keep getting output before session start exceptions? Sorry if I have missed something obvious the docs are a bit unclear. Thx Keith Pope Web Developer -- allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone

RE: [fw-general] Zend Loader performance - benchmark

2008-05-16 Thread Keith Pope
:) I was thinking about this after the earlier discussions and was wondering what people thought about phar? Would this improve performance if you really needed it? Keith Pope Web Developer -Original Message- From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] Sent: 15 May 2008 23:56 To: fw

RE: [fw-general] Newbie question for significantly large project - a 'mix' of Zend and my own coding?

2008-05-13 Thread Keith Pope
opinion :) Keith Pope Web Developer -Original Message- From: Rishi Daryanani [mailto:[EMAIL PROTECTED] Sent: 13 May 2008 07:48 To: fw-general@lists.zend.com Subject: [fw-general] Newbie question for significantly large project - a 'mix' of Zend and my own coding? Hi, I have a pr

RE: [fw-general] Nightly build system

2008-05-02 Thread Keith Pope
We are just setting up xinc -> phing here http://code.google.com/p/xinc/ http://phing.info/trac/ Keith Pope Web Developer _ From: Josh Team [mailto:[EMAIL PROTECTED] Sent: 02 May 2008 13:58 To: Ben Scholzen 'DASPRiD' Cc: Robert Castley; fw-general@lists.zend.co

[fw-general] OT: Strange PHP behaviour

2008-04-16 Thread Keith Pope
() must be compatible with that of ITest::notify() in C:\www\24dash\tests\tmp.php on line 24 Which is exactly what I would expect, but wheres my error for SplSubject??? My PHP version is 5.2.5. What do you think? Thx Keith Pope Web Developer -- allpay.net Limited, Fortis et Fides, Whitestone

RE: [fw-general] Speeding up Lucene

2008-03-20 Thread Keith Pope
Hi, Make sure you optimise your index, I had queries taking 15sec+ and using a lot of memory. After optimisation I am getting 3 - 6 sec results and better memory usage. The index is 40,000 news articles. I have also been looking at creating an indexing & search server based on ZSL, which wou

[fw-general] Zend_Search - searching numbers????

2008-03-03 Thread Keith Pope
101 TO 20080101] This gave me nothing so I tried: +2012 Which also gives nothing??? Any idea what I am doing wrong? thx... Keith Pope Web Developer -- allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, Hereford, HR1 3SE. Registered in England No. 02933191. UK VA

RE: [fw-general] Amazon SQS Class

2008-03-03 Thread Keith Pope
I would, I could do with a queue for a prototype I am working on :) Keith Pope Web Developer -Original Message- From: Justin Plock [mailto:[EMAIL PROTECTED] Sent: 03 March 2008 04:11 To: fw-general@lists.zend.com Subject: [fw-general] Amazon SQS Class Hi Everyone, Besides my S3

RE: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page

2008-02-29 Thread Keith Pope
I would suggest using xdebug + cacheGrind instead... Keith Pope Web Developer -Original Message- From: apaella [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 14:53 To: fw-general@lists.zend.com Subject: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page Hi

RE: AW: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
ue as the article database grows, but it would probably be better then to separate the index to a separate server and index over a web service. Maybe theres a proposal in that Zend_Service_Lucene or Zend_Search_Lucene_Server :) Thanks for the help guys Keith Pope Web Developer -Ori

RE: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
Thx Simon thats great, I didnt know about the LimitIterator :) Keith Pope Web Developer -Original Message- From: Simon Mundy [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 10:07 To: Keith Pope Cc: fw-general Subject: Re: [fw-general] Zend_Search_Lucene - Pagination Hi Keith

[fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
Hi, I am prototyping a site search using Zend_Search, and was wondering if anyone had a good way of paginating the results? Keith Pope Web Developer -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 05:55 To: Jordan Moore; Kevin McArthur Cc

<    1   2   3   >