You should use preDelete and postDelete methods.
class YouModel extends BaseModel {
public function postDelete()
{
// no your code
// ex: unlink($this-file)
}
}
On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés absal...@gmail.com wrote:
hi. you can use a event handler adn the catch
On Feb 2, 7:59 pm, Brandon Turner btur...@bltweb.net wrote:
In the meantime, you could set up a new environment and disable the
profiler in that environment. This can be done in your databases.yml by
adding param: profiler: false.
Great tip Brandon. I've modified it slightly - I set
I have this route:
category_listing_pag:
url: /:slug/:num_products_page/:page.html
class: sfDoctrineRoute
param: { module: listing, action: category }
options: { model: Category, type: object }
And I'm trying to display this link:
?php echo link_to('Previous',
hello,
how can I change the displayed group title from an admin generated
edit view:
form:
fields:
display:
NONE: [a,b,c]
Group1: [x,y,z ]
Group2: [u,v,w ]
from eg Group1: special i18n title with öüß
--
You received this message because you
Hello,
The documentation says that I should be able to do the following:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11
The browser also simulates file uploads if you pass the absolute path
to the file to upload
However I can't seem to get it to work, the code actually works I have
Hello buddies, need help!
On my Edit/Show actions i use the route to get the object to Edit/
Show.
Edit:
$this-form = new LeadsForm($this-getRoute()-getObject());
Show:
$this-leads = $this-getRoute()-getObject();
All normal here and works fine, but i need something more secure.
For example:
Is the sfMemcacheCache link you provide in the blog the same as
http://www.symfony-project.org/plugins/sfMemcachePlugin
The link you provide says 1.1 and the link above says 1.0 (also has
other WARNINGS). I'm using 1.2, a little reluctant to use what appears
to be a fringe plugin no one is
Oh God. Ignore me I am being stupid. My tests were working as expected
I hadn't completed a part of the code.
On 8 Feb, 16:08, johnwards johnwa...@gmail.com wrote:
Hello,
The documentation says that I should be able to do the following:
I have a question regarding the getSfGuardUserByFacebookSession
function of the sfFacebook class.
I am overriding the BasesfFacebookConnectAuthActions executeSignin()
function to see if an sfGuardUser has been created and if not redirect
to a different page to confirm some details and add the
Thank you Thomas that worked perfectly and ironically deleting a file
was what I was after.
Thanks,
Darren
On Feb 8, 12:55 am, Thomas Rabaix thomas.rab...@gmail.com wrote:
You should use preDelete and postDelete methods.
class YouModel extends BaseModel {
public function postDelete()
{
You do it like that:
database:mysql://MYUSER:my...@unix+%2ftmp%2fmysql5.sock/MY_DB
Note the unix+ and the encoded socket url which you can generate by
using rawurlencode('/tmp/mysql5.sock');. Man, that was a lot of work
figuring that out!
Eddie
--
You received this message because
What am I doing wrong? I keep getting errors rebuilding and also importing
fixtures..
Schema
# config/doctrine/schema.yml
Organization:
actAs: { Timestampable: ~ }
columns:
sf_guard_user_id: { type: integer(5) }
name: { type: string(255), notnull: true, unique: true }
first_name:
Does symfony come with any level of support for memcache out of the
box? One of our sites was brought down from an influx of traffic from
email blasts.
Monitoring the slow query log, I made some changes to a few propel
queries. That relieved a lot of the stress, the site went from crashed
to
In my template I am trying to do ?php include_partial('global/
navigator', array('User' = $sf_user)); ?
But when I run $User-getAttributes() in my partial it is cleaning the
code which makes it so it does not work. How can I get around this??
Thanks,
Darren
--
You received this message because
It seems I was able to pass the second argument ESC_RAW, but this
butchers my ability to read credentials either way. Is there any I can
just a simple damn array? I mean its Symfony's own variable. What is
going on here?
On Feb 8, 11:41 am, Darren884 darren...@gmail.com wrote:
In my template I
Just use $value-getRawValue()
---
nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs
On Mon, Feb 8, 2010 at 8:49 PM, Darren884 darren...@gmail.com wrote:
It seems I was able to pass the second argument ESC_RAW, but this
butchers my ability to read credentials either way. Is
Hi there, I have a sfWidgetFormInputHidden that its value depends of
the others widgets, I would like to set its value in the actions
(ex:executeCreate or processForm), how can I do that?
Thanks...
--
You received this message because you are subscribed to the Google Groups
symfony users
Am 08.02.10 20:41, schrieb Darren884:
In my template I am trying to do?php include_partial('global/
navigator', array('User' = $sf_user)); ?
But when I run $User-getAttributes() in my partial it is cleaning the
code which makes it so it does not work. How can I get around this??
Thanks,
I'm new to symfony, so this may be trivial, but I'm getting frustrated
trying to find a solution. I'm having a problem creating a form to
edit a set of objects associated with another specified object. Here's
an abridged version of the relevant part of the schema (assume id
fields are
Hi,
I'm new to symfony and am trying to learn it.
I am trying to develop a new module (something like a forum). in a
very simple form, this module works with 2 database tables:
forum_threads and forum_posts.
First, I think that I should not develop 2 different modules, because
forum sounds like
same problem here
On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote:
What am I doing wrong? I keep getting errors rebuilding and also importing
fixtures..
Schema
# config/doctrine/schema.yml
Organization:
actAs: { Timestampable: ~ }
columns:
sf_guard_user_id: {
just rtfm ;-)
http://www.doctrine-project.org/documentation/manual/1_2/en/caching
http://www.symfony-project.org/book/1_2/18-Performance
Am 08.02.10 17:29, schrieb Joshua:
Blogs blogs blogs. How am I supposed to know where to find these
things short of a google search?
On Feb 8, 1:52 am,
On Mon, 8 Feb 2010, Joshua wrote:
Does symfony come with any level of support for memcache out of the
box?
It has some support but it has to be explicitly enabled.
Then we installed memcache on the servers. A few minutes later, before
making any actual code updates to use memcache, the slow
You should see the sfsimpleforum.
Also .. you could use embed form or merge form...
sent via htc magic
On Feb 8, 2010 10:17 PM, Martin Henits martin.hen...@googlemail.com
wrote:
Hi,
I'm new to symfony and am trying to learn it.
I am trying to develop a new module (something like a forum). in a
On Mon, 8 Feb 2010, Relez wrote:
Hi there, I have a sfWidgetFormInputHidden that its value depends of
the others widgets, I would like to set its value in the actions
(ex:executeCreate or processForm), how can I do that?
When initializing the form, you can add a configure() method to
I found this
http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/
but still get the issue, can't fix it...
My complete schema and eror are here http://pastebin.com/m4a2812bd in case
anyone wants to help.. thanks..
On Mon, Feb 8, 2010 at 3:07 PM,
I removed the primary: true and it worked.. i hope this helps.
On Mon, Feb 8, 2010 at 4:46 PM, Samuel Morhaim samuel.morh...@gmail.comwrote:
I found this
http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/
but still get the issue, can't fix
Just to your specific point, $sf_user is accessible from every
template or partial anyways.. no need to pass it along.
Daniel
On Feb 8, 1:09 pm, Darren884 darren...@gmail.com wrote:
I solved it guys but the above would not work so I had to do a
different way. I found out about hasCredential
I am trying to access the object of the extended profile for sfguard..
http://pastebin.com/md823309
How is the correct way of doing that?
# config/doctrine/schema.yml
Organization:
actAs: { Timestampable: ~ }
columns:
sf_guard_user_id: { type: integer(4) }
name: { type: string(255),
Hi.
I create a partial file that will be added in all page request by
users. I put this partial file, i.e. partial.php in the global layout
template? layout.php. Ok. My doubt is where to put the model code of
the partial file.
some idea?
Augusto Morais
--
You received this message
Hi every:
I'm creating my schema.yml file but have one doubt concerning
sequences. I've see that serial datatype doesn't exists in Doctrine
so I can't do this:
id_group: { type: serial, primary: true }
But I need this field autoincrement. I was thinking in use this syntax:
id_group: { type:
HI.
I use the sfComponents class to do it.
Worked fine.
bye.
Augusto Morais
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send
I am trying to create the following schema with the following requirements.
* One to one Organization to sfGuardUser
* Each organization, may have multiple campaigns.
* Each campaign may have multiple addressbooks.
* MessageQueue holds general information for all
I used the definitive guide to symfony to do it myself. I was only
trying to help by offering a link to an article I wrote with practical
information on it. So sorry for trying :S
On Mon, Feb 8, 2010 at 6:29 PM, Joshua houseaddi...@gmail.com wrote:
Blogs blogs blogs. How am I supposed to know
Hey guys,
Wondering how to specify a default value for select tags in symfony
say for e.g i have a select_tag with options 1,2,3,4,5,6,7,and I want 4
to be the default selected value, how can I get this done?
--
You received this message because you are subscribed to the Google Groups
As I said: sorting is saved into the session, so if you change
something wits that, you have to destroy your session...
e.g.: clear browser cookies and cache, restart browser. clear cache
in symfony. voila!
On 7 ún, 19:09, michael hodges mhodg...@gmail.com wrote:
Issue: updating the list sort
Hello,
I want to know what do you think about my new Somfony project
structures which I've created.
I needed to change it, because of my clients hosting. He host on the
server, where he can't change anything in apache configuration.
He has configured hosting that way, that every folder in his
I set the view cache option's dir in %sf_view_cache_dir% and i can see
those cache files in the view cache folder when the cache's
with_layout option is false
but if I set the with_layout option to true the cache would never
appear in the view cache folder, so where are the with_layout cache
Hi,
It seems link_to_remote and form_remote_tag has been deprectaed in Symfony
1.4. How do we achieve this functionality in Symfony 1.4.
The Jobeet tutorial for 1.4 discusses briefly about AJAX.
Thanks in advance.
Regards
Deepak Bhatia
--
You received this message because you are subscribed
Learn to use jQuery! Seriously, it's very easy to replace those
functions with plain jQuery.
On Tue, Feb 9, 2010 at 8:20 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
Hi,
It seems link_to_remote and form_remote_tag has been deprectaed in Symfony
1.4. How do we achieve this functionality in
http://www.symfony-project.org/plugins/sfProtoculousPlugin
;)
9 2010 ., 10:20:27:
Hi,
It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4.
The Jobeet tutorial for 1.4 discusses briefly about AJAX.
Is this the same old obtrusive Javascript version or has it been refactored
as an unobtrusive version?
2010/2/9 Земсков Юрий y...@zemskov.name
http://www.symfony-project.org/plugins/sfProtoculousPlugin
;)
Вы писали 9 февраля 2010 г., 10:20:27:
Hi,
It seems link_to_remote and
42 matches
Mail list logo