Re: [fw-general] Test-driven development does not work properly with Zend_Test

2009-06-10 Thread Ralf Eggert
Hi Benjamin, otherwise, zend_test is doing integration testing and using that soley for test-driven-development is probably a bad idea, since you test too many components in conjunction rather than unit-testing a single component in isolation. Yep, I came up with that as well. For TDD the

[fw-general] reusing view scripts across controllers.

2009-06-10 Thread Cameron
Hi guys, I have a number of view scripts that are cut and paste across almost all of my view directories, basically templates that hold code to load a structural html / tabs / etc. These files are almost all identical, so there is a very obvious case for removing these duplications, along with

[fw-general] Re: re[fw-general] using view scripts across controllers.

2009-06-10 Thread staar2
Themselves wrote: Hi guys, I have a number of view scripts that are cut and paste across almost all of my view directories, basically templates that hold code to load a structural html / tabs / etc. These files are almost all identical, so there is a very obvious case for removing

Re: [fw-general] Module bootstrapping to provide paths to helpers/partials

2009-06-10 Thread Jurian Sluiman
Op Saturday 06 June 2009 17:18:06 schreef Jurian Sluiman: Hi all, For all my modules I use a bootstrap class and most times they are empty (there are no methods inside). If a module has a helper, I create a method _initHelpers() and do a addHelperPath() call for the helper and addScriptPath()

Re: [fw-general] Zend_CodeGenerator_Php_Property Array

2009-06-10 Thread CocoRambo
It's done! I create the issue Thanks 2009/6/10 iceangel89 comet2...@gmail.com yay great! Ralph Schindler-2 wrote: I should be able to tackle this soon. -- View this message in context: http://www.nabble.com/Zend_CodeGenerator_Php_Property---Array-tp23922419p23954802.html Sent

Re: [fw-general] Re: re[fw-general] using view scripts across controllers.

2009-06-10 Thread Cameron
On Wed, Jun 10, 2009 at 3:23 PM, staar2 est.ri...@gmail.com wrote: Themselves wrote: Hi guys, I have a number of view scripts that are cut and paste across almost all of my view directories, basically templates that hold code to load a structural html / tabs / etc. These files

Re: [fw-general] Facebook Vanity URLs

2009-06-10 Thread Tim Fountain
2009/6/9 mapes911 mapes...@gmail.com I've been wondering this for a while now about how Twitter/Myspace and now Facebook creates what they are calling Vanity URLs So, their users use their username as their url. ex. www.mydomain.com/myusername would route to their user profile. So my

Re: [fw-general] Zend_Navigation in application.ini in ralphschindler's webninar

2009-06-10 Thread Jon Lebensold
for sure! The more documentation the better :) On Wed, Jun 10, 2009 at 1:57 AM, wenbert wenb...@gmail.com wrote: Thank you Jonathan! XML file is good. Thank you for your screencast. I have created a post related to this and your screencast. Hope it's okay! Jonathan Lebensold wrote: Hey

Re: [fw-general] jQuery DatePicker with Zend_Form

2009-06-10 Thread Bart McLeod
The proposed solution is the non-integrated way to use JQuery with any form (not Zend_Form in particular). You should look at the ZendX library and the integrated JQuery solution. This will give you a ZendX_JQuery_Form and a ZendX_JQuery_Form_Element_DatePicker $elem = new

[fw-general] Check to see if a request parameter was set

2009-06-10 Thread 411161
This statement: isset ($this-_getParam('adjType')); produces the following error: Fatal error: Can't use method return value in write context in /usr/local/apache2-development/htdocs/ARMS/application/modules/default/controllers/IndexController.php on line 136 What are my alternatives? --

Re: [fw-general] Check to see if a request parameter was set

2009-06-10 Thread Jurian Sluiman
Op Wednesday 10 June 2009 16:02:36 schreef 411161: This statement: isset ($this-_getParam('adjType')); produces the following error: Fatal error: Can't use method return value in write context in /usr/local/apache2-development/htdocs/ARMS/application/modules/default/cont

[fw-general] Connecting to a different MySQL server

2009-06-10 Thread David Mintz
On Wed, Jun 10, 2009 at 12:15 AM, Aniketto aniket_ked...@rediffmail.comwrote: Hi all, I am using PHP with Zend for quite a period. I want to have my MySQL server on a different server than my web server. (This web server has Apache and my PHP zend application on it). I want to use database

[fw-general] zf pdo oci questions

2009-06-10 Thread Tim Rupp
Hi list, I'm using the Zend_Db classes to connect to an Oracle server and had a couple questions. First, I have a tnsnames.ora file, which I put in /etc, but I can't get ZF to make use of it. I'd like to skip specifying the hostname of the server and just using the SID. Can this be done? I've

Re: [fw-general] World, Country, town city database

2009-06-10 Thread sinkingfish
Thanks guys. I'll hit up those links now. Colin Guthrie-6 wrote: 'Twas brillig, and Mark Wright at 09/06/09 08:37 did gyre and gimble: These are flat files that you can edit into an importable format: http://geonames.usgs.gov/domestic/download_data.htm Personally I've had good

[fw-general] Confusion with Request object methods in ErrorController

2009-06-10 Thread dmitrybelyakov
Hello, I just wonder - what's wrong with doing like this in my (default module's) ErrorController: $currentModule = $this-getRequest()-getParam('module'); $currentModule = $this-getRequest()-getModuleName(); Because I don't get the same results with these two functions. First

Re: [fw-general] Confusion with Request object methods in ErrorController

2009-06-10 Thread Shaun Farrell
Dmity, If getParam('module') is looking for URL/module/moduleValue/ while getModuleName() returns the actual name of the module you are operating on. http://www.example.com/view/list/module/test controller = view action = list module is a param key (getParam('module')) test is param value. On

Re: [fw-general] User Registration and Login Management Module - Best Practice Blueprint or Example for 1.8

2009-06-10 Thread dmitrybelyakov
swilhelm wrote: I would like see best practice blueprint or example for implementing modules in 1.8. A user registration and login management module would be ideal. Any suggestions? Thanks in advance. - Steve W. Hi, I am at the moment reading an article/tutorial on how to

Re: [fw-general] Facebook Vanity URLs

2009-06-10 Thread Nick M
I used the router route hostname and chained it with a standard router: routes.user.type = Zend_Controller_Router_Route_Hostname routes.user.route = www.domain.com routes.user.chains.following.type = Zend_Controller_Router_Route routes.user.chains.following.route = :username/following/*

Re: [fw-general] Facebook Vanity URLs

2009-06-10 Thread Nick M
Sorry sent too soon. You can then add other standard routes, without then being matched by a greedy regex match: routes.home.route = home/* routes.home.defaults.controller = home routes.home.defaults.action = index routes.login.route = login routes.login.defaults.controller = login

[fw-general] module autoloading namespace conflict

2009-06-10 Thread tneist
Was wondering if anyone else has run into this problem. If I have a module with the same name as a model (that I've put into the global namespace) and there is a problem finding the file. The autoloader aborts and therefore the class is not loaded. I was able to make a small hack to

Re: [fw-general] Check to see if a request parameter was set

2009-06-10 Thread Jonathon Wallen
On 11/06/2009, at 12:02 AM, 411161 wrote: This statement: isset ($this-_getParam('adjType')); produces the following error: Fatal error: Can't use method return value in write context in /usr/local/apache2-development/htdocs/ARMS/application/modules/ default/controllers/IndexController.php

Re: [fw-general] User Registration and Login Management Module - Best Practice Blueprint or Example for 1.8

2009-06-10 Thread swilhelm
Thanks for the Auth / Acl suggestions. My choice of subject header may have been misleading. I am more interested in how people separate their code into a modules, particularly modules whose data and UI must be tightly integrated into the final project. User id's and locale information for

[fw-general] where is bootstrap object from within a controller plugin

2009-06-10 Thread Michael Depetrillo
What is the best way to access bootstrap object from a controller plugin? Michael DePetrillo the...@michaeldepetrillo.com Mobile: (858) 761-1605 www.michaeldepetrillo.com

[fw-general] Re: where is bootstrap object from within a controller plugin

2009-06-10 Thread Michael Depetrillo
I figured it out. $front = Zend_Controller_Front::getInstance(); $db= $front-getParam('bootstrap')-getResource('db'); Michael DePetrillo the...@michaeldepetrillo.com Mobile: (858) 761-1605 www.michaeldepetrillo.com On Wed, Jun 10, 2009 at 5:13 PM, Michael Depetrillo

Re: [fw-general] zf pdo oci questions

2009-06-10 Thread till
On Wed, Jun 10, 2009 at 4:29 PM, Tim Ruppcaphrim...@gmail.com wrote: Hi list, I'm using the Zend_Db classes to connect to an Oracle server and had a couple questions. First, I have a tnsnames.ora file, which I put in /etc, but I can't get ZF to make use of it. I'd like to skip specifying

Re: [fw-general] zf pdo oci questions

2009-06-10 Thread Tim Rupp
There's a PDO adapter in Zend_Db, so I figured it would use PDO and not ext/oci. There's also an adapter just called Oracle; maybe that uses ext/oci. I'm finding different info depending on where I look in the documentation at php.net. I'll give the ORACLE_HOME/network/admin a try though and see

[fw-general] Viewscript for MultiCheckbox

2009-06-10 Thread aSecondWill
Hi, Im having trouble displaying a checkbox element with a custom viewscript, what would the default viewscript for these elements look like. atm, i have this in the form: $el = new Zend_Form_Element_MultiCheckbox('userSpecialization'); $el-setLabel('Specialisation:');

[fw-general] Memory problems with cyclic/circular references

2009-06-10 Thread Mary Nicole Hicks
Please can someone help me with this. I am using ZF for a long running command line script, but my memory is blowing out (well over 100 MB). My problem is that ZF seems to be full of cyclic/circular references. As these stop objects from being garbage collected, most the object that I use are