I don't think the symfony plugin installer looks at these dependencies
currently.
- Jon
On Thu, Feb 21, 2008 at 1:10 AM, Carl Vondrick <[EMAIL PROTECTED]> wrote:
>
> Has anyone ever used pear's dependencies when deploying a symfony plugin? If
> so, how well did it work? Ideally, installing p
On Feb 21, 2:41 pm, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote:
> You should read this paper
> :http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-a...
>
If you were having problems with this, you could try
ini_set("session.gc_maxlifetime", ); however, you're getting too
lit
Hey everyone,
This year, Ibuildings will be organizing the second installment of the
Dutch PHP Conference in Amsterdam. Last year, I did an introductory
session on symfony. This year, things will be extended a bit.
On June 13th, Fabien and I will be doing a full-day workshop on
symfony. The actu
And one of many possible solutions.
$weeks = myDateTimeTools::getWeeksOfMonth($month, $year);
class myDateTimeTools
{
public static function getWeeksOfMonth($month = null, $year = null)
{
if (!$month) $month = date('m');
if (!$year) $year = date('Y');
$dt = sfDate::getInstance($year.
For context, here's the code from the original reply.
class myDateTimeTools
{
public static function getWeeksOfMonth()
{
$dt = sfDate::getInstance()->subtractMonth()->finalDayOfMonth()-
>addWeek()->firstDayOfWeek();
$base = sfDate::getInstance()->finalDayOfMonth();
$ar = array();
wh
I assume you are using Propel and I'm not aware of a solution using
it, but Doctrine can hydrate objects from a query like that have a
look.
http://www.phpdoctrine.org/documentation/manual/0_10?one-page#dql-doctrine-query-language:select-queries
Thanks,
Michael
On Feb 21, 3:16 am, CO2 <[EMAIL P
I am trying to extend the sfDate () plugin for a project.
After a great email tip from the original author, I have:
class myDate
{
public static function getWeeksOfMonth($ts = null)
{
if ($ts === null) $ts = sfDateTimeToolkit::now();
$dt = sfDate::getInstance()->subtractMonth()->
You should read this paper :
http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-adventure/
and add 'session_cookie_lifetime' on config/factories.yml
all:
storage:
class: sfMySQLSessionStorage
param:
db_table: sf_sessions # Name of the table storing the sessi
Hi Rob,
yes, I restarted the apache after modifying the php.ini.
Up to now, I've got more than 27 000 sessions in
my session table, and only one has not yet reached
its lifetime expire time.
I'll try our hint to increase the session.gc_probability to 100.
If this won't help, I'm going to write m
Jo,
You've still only set the probability to 1% - you could temporarily
change session.gc_probability to 100 to guarantee the garbage
collector is called.
Did you restart apache to get the php.ini reloaded?
Has the session.gc_maxlifetime been reached yet (are they eligible yet
for deletion)?
H
Hi,
I'm using the mysql based session storage (sfMySQLSessionStorage) and
the session storage itself works fine so far: the sessions are
inserted in the database
correctly.
The one thing that does not work is the garbage collector: sessions
are not deleted
after their lifetime's expired. As far
Hi.
Thank you for the link, but I do have a problem with this because it always
get fields in default language, also when editing. I need fallback only when
viewing. Also, if I understood things correctly, this will always save a
copy in default language. This means we are saving content in wrong
Hi all!
Suppose I have a table with more unique constraints, and I have a form
for entering a row to this table.
Suppose the database has heavy traffic, so the best thing is to simply
try to insert, and drop an error, if it fails.
The question is: how can I figure out which unique constraint is
v
I have trouble finding a good solution to the following tasks:
Schema 1:
item:
id:
customer:
item_id:
I need to output a list of customers with assigned items:
customer1
itemA
itemB
customer2
itemC
Of course I can retrieve customers and items in two arrays and do some
dirty stuff in
14 matches
Mail list logo