I have actually come across a rather interesting way to use the memory cache
as specified in the book (
http://www.symfony-project.org/book/1_1/18-Performance#chapter_18_sub_caching_data_in_the_server
)
The way it is described to store data in the cache needs three things; a
unique name that can b
On Mar 10, 2:10 am, Lawrence Krubner wrote:
> I've implemented this widget on a form:
>
> http://www.symfony-project.org/book/forms/1_2/en/A-Widgets#chapter_a_...
>
> I am surprised that this doesn't have any background. It is
> transparent, and it looks wrong. Check out this screenshot:
>
> ht
I've implemented this widget on a form:
http://www.symfony-project.org/book/forms/1_2/en/A-Widgets#chapter_a_sub_sfwidgetformjquerydate
I am surprised that this doesn't have any background. It is
transparent, and it looks wrong. Check out this screenshot:
http://lawrence.sds5.com/date_widget_lo
Password should be ok when user write minimum 1 number - so regular
expression should be: '[0-9]{1,}'
I checked it on this website: http://www.regextester.com/ (you must
choose 'preg') and password: pass200 is correct but in symfony it
isn't correct, I see non stiop: 'Minimum 1 number !!' when I w
Thanks for that. I have actually been looking at the function cache amongst
others and there is a lot we can do there as our DB records, once inserted,
are not likely to change. In fact if they do it means we are having a
problem as we store email data for a number of companies in them. Therefore
f
On Mar 9, 11:11 pm, Sid Bachtiar wrote:
> > I probably caused myself 30 minutes of
> > extra work, because I had to set security for each of the 27 modules
> > individually, instead of being able to lock them down at the level of
> > the app.
>
> Why couldn't you set it from security.yml of the
> public function __toString()
> {
>$locationList = NewLocationPeer::doSelect(new Criteria());
>$arrayOfLocations = array();
>
>foreach ($locationList as $location):
>$id = $location->getId();
>$name = $location->getName();
>
>$arra
> I probably caused myself 30 minutes of
> extra work, because I had to set security for each of the 27 modules
> individually, instead of being able to lock them down at the level of
> the app.
Why couldn't you set it from security.yml of the app level?
In the apps/yourapp/config/security.yml y
On Mar 9, 9:05 pm, "Patrick Fong" wrote:
> Hi Guys,
>
> I'm looking for a bit of guidance in the design on my application, mainly
> how much to place in a particular module. The case that I am currently
> looking at is my user module. As well as the standard, profile, credentials
> etc, my user
On Mar 9, 9:13 pm, Sid Bachtiar wrote:
> What's your action code like? For editing...
Good question. I haven't changed the code, it is the default generated
by the Propel crud generator:
public function executeEdit($request)
{
$this->form = new NewGameForm(NewGamePeer::retrieveByPk($
On Mon, Mar 9, 2009 at 9:25 AM, HAUSa <
jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:
>
> Is it possible to use credentials in a form class? I want to hide
> several form fields for users which do not have the right credentials.
>
hasCredential('permission_edit')) :?>
>
> >
>
--
Herma
On Thu, Mar 5, 2009 at 1:34 PM, Herman Vega wrote:
>
>
> On Thu, Feb 19, 2009 at 10:47 PM, Henrique Boaventura <
> hboavent...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> Anyone knows how to that off the filters panel that appears in the
>> user list of the sfGuard plugin?
>>
>
> Hi,
>
> You must edit th
Hi,
This mailing list is english only.
Hola tendrías que buscar una lista de usuarios en español.
Busca en el sitio symfony.es
También en el sitio oficial de symfony podés encontrar todos los
libros en español.
Saludos,
Álvaro
On Mar 10, 2009, at 4:45 AM, gfirem wrote:
>
> Descarge el symf
What's your action code like? For editing...
On Tue, Mar 10, 2009 at 1:52 PM, Lawrence Krubner
wrote:
>
> This is worrisome. I'm setting up a site to manage the teams in high
> school basketball tournament in Florida. I've got two database tables:
>
> new_game:
> _attributes: { idMethod: nat
Hi Guys,
I'm looking for a bit of guidance in the design on my application, mainly
how much to place in a particular module. The case that I am currently
looking at is my user module. As well as the standard, profile, credentials
etc, my user has preferences and other properties but I am unsur
This is worrisome. I'm setting up a site to manage the teams in high
school basketball tournament in Florida. I've got two database tables:
new_game:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true,
primaryKey: true }
location: { type: INTE
> Is there any documentation that
> tells you how these classes work. The API documentation doesn't
> appear to be very clear.
I don't know but I don't think it is in the documentation. I think I
found it out through snippets and looking at the source code.
On Tue, Mar 10, 2009 at 11:04 AM, Ben
I have a class outside of Symfony(but kept in lib/), and is referenced
from a Symfony action. The call to Propel::getConnection() doesn't
work as it appears that self::$configuration is not set. I get the
error message: "No connection information in your runtime
configuration file for datasource".
Ok thank you Sid. You were right. Looking at a snippet at
http://snippets.symfony-project.org/snippets/tagged/login/order_by/date
I was able to format it correcty. Is there any documentation that
tells you how these classes work. The API documentation doesn't
appear to be very clear.
Here's a
Try to put "'required' => true" and required message on sfValidatorAnd
and not on the validators inside it.
On Tue, Mar 10, 2009 at 10:27 AM, Benjamin wrote:
>
> In the following code I have tried to set the required message in 3
> different places. Regardless of where I put it I still receive
In the following code I have tried to set the required message in 3
different places. Regardless of where I put it I still receive the
standard message "Required.". I was able to solve this in another
module by using a customized callback function rather than the
sfValidatorAnd class, however I
Descarge el symfony1.2.4.zip y no hacer nada con el. Por todos lados
me dice que tengo que instalarlo con pear y no tengo esa opcion
disponible. Diganme una via ayuda.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi everybody,
In one of my class models, I added an action on the delete() function:
public function delete(PropelPDO $oCon = null){
$aPages = PagePeer::doSelectFollowing($this->getRank(), $this-
>getPageId());
foreach($aPages as $oPage){
hi all, i'm newbie using symfony and i think it's a great framework,
however i'm getting stuck at this. I got installed the sandbox, and
whenever i try to generate a new project there is a sign that says
that "A project named "blog" already exists in this directory."
Evidently, this project actual
I've been searching for an answer to this all day with no luck.
Can anyone help shed some light onto whether or not there is soon
going to be Symfony 1.2 compatible versions of sfMediaLibraryPlugin or
sfAssetsLibraryPlugin (or others)?
Thanks,
Al
On Mar 7, 4:12 am, Sid Bachtiar wrote:
> Anyone
Hello, i was surprised when reading that setDefault does not exist in
symfony 1.1.
I downloaded it and you are right, there is no setDefault on
sfWidgetSchema class, but i found one in sfForm :
/**
* Sets a default value for a form field.
*
* @param string $nameThe field name
*
Setting a default vallue works only when I change the name of the
widget.
When the name is exactly the same with the field name in a database
table, it does not work.
$years = range(date('Y'), date('Y') + 3);
$this->setWidget('starting_at', new sfWidgetFormDateTime(array(
'date' => array(
'
Setting a default value works only when I change the name of the
widget.
When the name is exactly the same with the field name in a database
table, it does not work.
$years = range(date('Y'), date('Y') + 3);
$this->setWidget('starting_at', new sfWidgetFormDateTime(array(
'date' => array(
'f
I have the same problem.
I am trying to set a default value for the datetime widget.
$years = range(date('Y'), date('Y') + 3);
$this->setWidget('starting_at', new sfWidgetFormDateTime(array(
'date' => array(
'format' => '%year%
Is it possible to use credentials in a form class? I want to hide
several form fields for users which do not have the right credentials.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post
In my Propel generated form I added a field where people can type the
values of a many-to-many relationship, separated by a ";".
Now I'm changing the onSave() function of the form class, because
there I have to add the multiple values entered and add the generated
database id's to the default fie
Hi Gareth,
after reading all this I feel your time is most likely best spent in
smart caching, since it sounds like the DB is not your bottleneck.
What's easy to overlook when working with symfony, is that compared to
straight procedural "get data -> display data" scripts, rendering
templates wit
In my Propel generated form I added a field where people can type the
values of a many-to-many relationship, separated by a ";".
Now I'm changing the onSave() function of the form class, because
there I have to add the multiple values entered and add the generated
database id's to the default fie
So I've been pulling my hair out for the past few days because I
couldn't figure out why the basic functionality of the sfGuardUser
module wouldn't work in my project. The form would return on save with
a validation error simply stating
"The item has not been saved due to some errors."
At first
Every AG generated module has *GeneratorConfiguration.class.php and
*GeneratorHelper.class.php classes.
I would look there first.
Cheers, Alan "LBO" Bem
On Mon, Mar 9, 2009 at 7:09 PM, Tomasz Ignatiuk wrote:
>
> I don't think it is possible to do automatically.
> You have to define someway which
I don't think it is possible to do automatically.
You have to define someway which records can be deleted, for example
by a field in db
1. Copy _list.php from cache directory from your app module.
2. On foreach where the rows are echoed make an if which will say if
list_td_actions partial should
The first of all, please, check frontend and backend factories and make
sure session_name is same in both.
p.s.
apps/frontend/config/factories.yml
apps/backend/config/factories.yml
Look for
session_name: symfony
saturn1...@hotmail.com wrote:
> Hello, i have a problem with my session.
> I use s
In the admin generator, is it possible to disable actions for specific
records?
So, by default, it is possible to remove a record. But for some
records (FK number 5 for example), removal is not possible.
--~--~-~--~~~---~--~~
You received this message because you a
Greetings all,
I'd appreciate some help on the following. I have a problem using
sfWidgetFormSelectDoubleList from the sfFormExtraPlugin plugin on a
form that uses jq_submit_to_remote. sfWidgetFormSelectDoubleList uses
a javascript, that hooks on the submit event, that select the items in
the "as
Hi I need simple symfony project ..?
apart from that provided by symfony site ..
can any body help on me on this ?
On Mon, Mar 9, 2009 at 1:43 PM, Lee Bolding wrote:
>
> and - ofcourse - cleared your cache? ;)
>
> On 9 Mar 2009, at 01:59, prodigital...@vectrbas-d.com wrote:
>
> >
> >
> >> Hmm
Is it possible to gather some data in filter and display result in
template without calling any actions ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to sym
My 2 cents...slow query log in mysql should help a lot...
Please let us know your insights at the end of your exercise... :)
On Mar 9, 3:41 pm, Gareth McCumskey wrote:
> I just tried using Propel 1.3 on our application and while I would love to
> continue using it (as it seemed to produce a lit
Hello.
When i install sfSimpleForumPlugin
was working. I worked on sfSimpleForum a lot.
And now, when i try
nothing happens. What did i wrong ? How can i correct ?
Thank you.
___
Yahoo! Türkiye açıldı! http://
Hello, i have a problem with my session.
I use sfGuardPlugin.
I have 2 apps: backend,frontend.
When i log myself in the frontend, i can't go to the backend without
relog myself.
It's the same when i log mysel in the backend i need to relog me in
the frontend to be loggued.
Could you help myself?
Of lately I've been all about putting everything in the model, it just
makes all the code cleaner. Anyways, if you're going to want users to
be set as inactive by default more than active you might want to think
about making that field default to false. Then you would only have to
handle it in t
WOW - now it works - thx you so much !! :P
On 9 Mar, 11:45, Gregoire Laporte wrote:
> yes !!
> Look herehttp://trac.symfony-project.org/ticket/5891
>
> Good luck :p
>
>
>
> > Date: Mon, 9 Mar 2009 03:38:50 -0700
> > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0
>
It works and it is great. Thank you :)
2009/3/6 Shinkan
>
> You have to use the helper trough the sfContext object.
>
> From everywhere :
>
> sfContext::getInstance()->getI18N()->__('The flash message');
>
> So from an action :
>
> $this->getUser()->setFlash('flash', sfContext::getInstance()->ge
yes !!
Look here
http://trac.symfony-project.org/ticket/5891
Good luck :p
> Date: Mon, 9 Mar 2009 03:38:50 -0700
> Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ?
> From: aaabbbcccda...@gmail.com
> To: symfony-users@googlegroups.com
>
>
> I have changed file acti
I just tried using Propel 1.3 on our application and while I would love to
continue using it (as it seemed to produce a little more efficieny) we can't
use it for now because the servers that the app will run on are Centos 4
with PHP 5.1.x as its maximum version for now. The sysadmins here say that
Hi
I have an index with a pager. I would like to use generated form
filters to filter my pager (like in admin generator bu in frontend)
I don't know where to start, and i don't find documentation about
this. I'm sure this is pretty simple.
I have now my pager object and my form "objectFormFilte
I have changed file action.class.php:
$user = new sfGuardUser();
$uuser->setUsername($this->form->getValue('username'));
$user->setPassword($this->form->getValue('password'));
$user->setIsActive(0);
$user->save();
so I have:
class registrationActions extends sfActions
{
public function execute
try this
$this['is_active'] = 0;
but i'm not sure.
If you need a good register you can use the plugin sfApply (register with
email, forgot password, edit profile... and so and so)
> Date: Mon, 9 Mar 2009 03:16:31 -0700
> Subject: [symfony-users] Re: sfGuard - how can I make default is_active =
I don't know which version - I am new in Symfony :D I installed
sfDoctrineGuardPlugin 4. days ago using: php symfony plugin:install
sfDoctrineGuardPlugin.
I am making it in RegistrationForm.class.php and I have an error:
Fatal error: Call to undefined method RegistrationForm::setIsActive()
in C:\P
and with
$this->setIsActive(0);Which Release of this plugin have you? (1.2?) and which
file do you edit cause i haven't this code.
> Date: Mon, 9 Mar 2009 03:00:32 -0700
> Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ?
> From: aaabbbcccda...@gmail.com
> To: symfo
Is it something like that: ?? But it doesn't work. :/
class RegistrationForm extends sfGuardUserForm
{
public function save($con = null)
{
$this->setIsActive(false);
return parent::save($con);
}
public function configure()
{
unset(
$this['id'],
$this['is_a
i think you need to change the save method in
/plugin/sfGuardPlugin/lib/model/pluginSfGuardUser.class.php!
> Date: Mon, 9 Mar 2009 02:35:31 -0700
> Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ?
> From: aaabbbcccda...@gmail.com
> To: symfony-users@googlegroups.com
Just to clarify - it won't appear in layout.php - it will appear in
the head section of your Success.php template once it's
rendered.
You don't need to use any helper for this either. You just have to be
sure that layout is on, the rest should take care of itself. As I said
before, it's n
Hugo Hamon I don't understand you - what do you mean ? :)
Gregorie Laporte - you have right . strange.. I hope
somebody will correct this in the future ?
On 9 Mar, 10:26, Gregoire Laporte wrote:
> But you can notice that even is_active == 0 ,the user can connect !!
> It's a bug i t
But you can notice that even is_active == 0 ,the user can connect !!
It's a bug i think !
> Date: Mon, 9 Mar 2009 02:12:32 -0700
> Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ?
> From: webmas...@apprendre-php.com
> To: symfony-users@googlegroups.com
>
>
> You hav
You have to override the save() method of your form to force the
setIsActive(false) inside. The code you have put in your action does
not belong to the controller but to the model, so let's move it in the
save method of your form.
--~--~-~--~~~---~--~~
You received
and - ofcourse - cleared your cache? ;)
On 9 Mar 2009, at 01:59, prodigital...@vectrbas-d.com wrote:
>
>
>> Hmm. Okay. I copy and pasted what you have here to /apps/frontend/
>> config/view.yml. I still get nothing in layout.php. And I mean, I
>> get
>> a blank line, no HTML.
>>
>> Again, I'm
I am making registration users. I have tried change column is_active
in table sf_guard_user to default value=0 but still after registration
new user has is_active=1. What should I do ? It is my code:
First file:
class RegistrationForm extends sfGuardUserForm
{
public function configure()
{
Thx YOU xD !!
On 8 Mar, 21:57, Marijn wrote:
> Well, you chose to have maximum file size of 1000 bytes... Try the
> following
>
> new sfValidatorFile(array('required' => true, 'mime_types' => array
> ('image/jpeg', 'image/jpg', 'image/png', 'image/gif'), 'max_size' =>
> 2097152), array('max_siz
63 matches
Mail list logo