Re: [fw-general] Re: Re: re[fw-general] gistry question

2009-07-06 Thread Ralph Schindler
Nothing is keeping you from creating a DomainModel that either uses a service layer OR directly ties to DbTable (via composition) to persist your data. A skeleton I like to use for this type of integration is something similar to this: class Person { protected $_row = null; static publ

Re: [fw-general] Re: [fw-auth] Zend_Auth_Adapter_DbTable with MySQL View

2009-07-06 Thread Ralph Schindler
Ok, a few notes: * your _initAuth() boostrapper should probably be more concerened with createing a Zend_Auth instance instead of a Zend_Auth_Adapter_DbTable. The reason being is that the Adapter_DbTable is only needed during the AuthController::identifyAction(), its never really needed outsi

Re: [fw-general] Zend_Locale - Zend_Cache temp directory problem]

2009-07-06 Thread Denis Fohl
Thank you Thomas, it works. You saved my day. Denis. Thomas Weidner a écrit : Denis, add "Zend_Locale::disableCache(true);" within your bootstrap before calling any other Zend_Locale method. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Origi

[fw-general] Re: [fw-auth] Zend_Auth_Adapter_DbTable with MySQL View

2009-07-06 Thread Joseph Crawford
Sorry I failed to show my code, here is the bootstrap method along with my AuthController http://pastebin.com/f5d37bef4 Thanks, Joseph Crawford On Jul 6, 2009, at 4:59 PM, Joseph Crawford wrote: Hello Everyone, I had my authentication adapter working just fine using the actual database t

Re: [fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Ralph Schindler
That will do it. :) The major difference between getParentRow and getDependentRowset() is that getParentRow() will return a single row whereas getDependentRowset() will return a rowset of (in your use case), a single row. But both will work. -ralph Joseph Crawford wrote: Please dis-reguar

Re: Re: [fw-general] Zend_Locale - Zend_Cache temp directory problem]

2009-07-06 Thread Thomas Weidner
Denis, add "Zend_Locale::disableCache(true);" within your bootstrap before calling any other Zend_Locale method. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Denis Fohl" To: "Zend Framework" Sent: Monday, July

[Fwd: Re: [fw-general] Zend_Locale - Zend_Cache temp directory problem]

2009-07-06 Thread Denis Fohl
Hi Martin, thank you for answering, yes /tmp exists and is writeable for apache process ls -l /tmp says : total 0 -rw--- 1 apache apache 0 jui 6 13:17 307X7k -rw--- 1 apache apache 0 jui 6 12:35 3POxYc -rw--- 1 apache apache 0 jui 6 13:19 4tnBoL -rw--- 1 apache apache

Re: [fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Joseph Crawford
Please dis-reguard this question, i am just an idiot and had the table name incorrect in my AUX model class. Thanks, Joseph Crawford On Jul 6, 2009, at 1:38 PM, Joseph Crawford wrote: I did some debugging by also adding the echo $select->__toString() in the /Zend/Db/Table/Row/Abstract.php o

Re: [fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Joseph Crawford
I did some debugging by also adding the echo $select->__toString() in the /Zend/Db/Table/Row/Abstract.php on line 914 which is in the findDependentRowset method. It seems to be outputting the same exact sql query SELECT `isp_partners`.* FROM `isp_partners` So for some odd reason it is not g

Re: [fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Joseph Crawford
Ralph, Doing it that way would require me to instantiate the Model_DbTable_ISPPartnersAux() class and that is not how I have it setup. Theoretically I should be able to instantiate the Partner model and say now find all rowsets that are in the dependent table based on the common id. I

Re: [fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Ralph Schindler
In situations where I have auxiliary and/or errata tables (basically a 1-1 relationship), I would look into peering to those rows via the findParentRow($parentTable) method rather than finding as a DependentRowset. http://framework.zend.com/manual/en/zend.db.table.relationships.html#zend.db.t

[fw-general] Zend_Db_Table Relationships

2009-07-06 Thread Joseph Crawford
Hello Everyone, I have a few database tables that I need to relate to each other. I have it setup like this isp_partners (primary key isp_id) isp_partners_aux (primary key isp_id, related by isp_id) keywords (primary key kw_id, related by ws_id) websites (primary key ws_id, related by isp_id

Re: [fw-general] Zend_Application is not running the session resource.

2009-07-06 Thread Jamie Krasnoo
Yea, that's what I did. I failed to mention that I had an _initSession in the bootstrap too. That prevented the resource from being run. So I changed it to _initSessionStart() and placed $this->bootstrap('session') in front like you said and that fixed the problem. On Mon, Jul 6, 2009 at 7:31 AM,

Re: [fw-general] Zend_Application is not running the session resource.

2009-07-06 Thread ozzycan
// In your Bootstrap: To make sure that the session resource configuration is actually executed before you call start $this->bootstrap('session'); // Start the Session Zend_Session::start(); That's what I would do. Specks wrote: > > That's what I did do. However the session isn't being co

Re: [fw-general] Zend_Application is not running the session resource.

2009-07-06 Thread Jamie Krasnoo
That's what I did do. However the session isn't being configured at all by the resource. When I do create a new session namespace or use Zend_Session::start() the session goes to the default configuration. On Mon, Jul 6, 2009 at 2:28 AM, ozzycan wrote: > > Use > > Zend_Session::start(); > > or >

Re: [fw-general] Help in creating Dojo Combo Box and Date Picker

2009-07-06 Thread Matthew Weier O'Phinney
-- jigen7 wrote (on Monday, 06 July 2009, 12:34 AM -0700): > Matthew Weier O'Phinney-3 wrote: > > -- jigen7 wrote > > (on Sunday, 05 July 2009, 08:56 PM -0700): > > > Hi I'm new in using Zend Dojo Form and most of the tutorials is for > > > version 1.7 as the latest ver is 1.8 > > > > The chang

Re: [fw-general] Zend_Locale - Zend_Cache temp directory problem

2009-07-06 Thread Martin Martinov
2009/7/6 Denis Fohl : > Hi all, > > my app is running fine on my dev box (linux ubuntu) but when i upload it to > my client's production server (fedora / plesk) i have got the following > message : > > 'Zend_Cache_Exception' with message 'Could not determine temp directory, > please specify a cache

[fw-general] Zend_Locale - Zend_Cache temp directory problem

2009-07-06 Thread Denis Fohl
Hi all, my app is running fine on my dev box (linux ubuntu) but when i upload it to my client's production server (fedora / plesk) i have got the following message : 'Zend_Cache_Exception' with message 'Could not determine temp directory, please specify a cache_dir manually' it seems that

Re: [fw-general] Bootstrap and modules again

2009-07-06 Thread Václav Vaník
keith Pope-4 wrote: > > > I think you may need to put an empty module bootstrap in your admin > module: > -- modules -- admin -- controllers -- views > Bootstrap.php -- other-module > Thx, my problem was that i had class Admin_Boostr

Re: [fw-general] Zend_Application is not running the session resource.

2009-07-06 Thread ozzycan
Use Zend_Session::start(); or define a new session namespace in your Bootstrap (or elsewhere), when you're ready to start the session. "Zend_Application_Resource_Session allows you to configure Zend_Session as well as optionally initialize a session SaveHandler." It doesn't start it, AFAIK.

Re: [fw-general] Help in creating Dojo Combo Box and Date Picker

2009-07-06 Thread jigen7
Matthew Weier O'Phinney-3 wrote: > > -- jigen7 wrote > (on Sunday, 05 July 2009, 08:56 PM -0700): >> Hi I'm new in using Zend Dojo Form and most of the tutorials is for >> version >> 1.7 as the latest ver is 1.8 > > The changes to 1.8 will not affect Dojo integration in the least; the > tuto