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
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
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
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
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
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
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
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
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
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
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
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
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,
// 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
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
>
-- 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
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
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
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
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.
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
21 matches
Mail list logo