Hi!
I have a ViewCountable-behaviour. It adds a nb_views column to the
model. It works fine, but when I edit a record and submit the changes
with the normal form, the nb_views are set to 0. Why?
Thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at sym
do you have a proper database.yml configurationfile?
On Oct 2, 1:36 pm, mspallanzani wrote:
> Hello,
>
> I'm using symfony to develop a website but I have a problem when
> running the command:
>
> "php symfony doctrine:build --all --and-load --no-confirmation"
>
> I get the following message at
pdate_at field inside your update sentence to
> updated_at = $invoker->getUpdateAt()
>
> On 30 jul, 04:18, comb wrote:
>
> > Hi!
>
> > I use the Timestampable behavior on a model.
> > The model counts how often it was shown at a column "views".
>
only include a
css/js once.
Thanks!
On Jul 29, 3:11 pm, Massimiliano Arione wrote:
> On 17 Lug, 20:15, comb wrote:
>
> > I found much on the web regarding the topic, but no solution! :(
> > Normally one would include the css and js in the head. But if I call
>
> > &
Hi!
I use the Timestampable behavior on a model.
The model counts how often it was shown at a column "views".
Well as you might imagin, I want to update the views-column without
changing the updated_at-value.
How can I do this?
example:
public function incrementNbViews()
{
yes
On Jul 21, 4:41 am, Gustavo Adrian
wrote:
> Are you using "include_javascripts();" and "include_stylesheets()" functions
> on the head tag of the layout?
>
> On Tue, Jul 20, 2010 at 7:15 AM, comb wrote:
> > Symfony 1.4 + Doctrine 1.2
>
> > Any
cookies enabled?
On Jul 29, 9:08 am, travis wrote:
> Hi all,
>
> I just found some functions have problems in my Chrome browser. It
> took me some time to find out the problem is caused by the setFlash
> method in sfUser. It seems it can't work properly in Chrome.
>
> Here is how I test the funct
Symfony 1.4 + Doctrine 1.2
Any ideas? :-)
On 20 Jul., 11:58, Tom Ptacnik wrote:
> Which version of Symfony do you use?
>
> On 17 čnc, 20:15, comb wrote:
>
> > Hi! :)
>
> > I found much on the web regarding the topic, but no solution! :(
> > Normally one would i
Hi! :)
I found much on the web regarding the topic, but no solution! :(
Normally one would include the css and js in the head. But if I call
from an partial, they are not included, because the helpers in the
head of the layout are executed already.
Putting the helpers to the bottom of the layou
Hi! =)
What's the proper way to check if a user has cookies enabled with
symfony 1.4?
Best greets
comb
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
G
bViews())
->where($q->getRootAlias().'.id = ?', $invoker->getId())
->execute();
On 29 Jun., 00:20, comb wrote:
> Hi! =)
>
> I use the doctrine Searchable-behavior.
> I implemented a ViewCountable behavior, which always does this when
> viewing a record:
>
> $invoke
more!) DB-Queries when _viewing_ a record... that's bad^^
How can I bypass the Searchable-behavior on this save()?
Thanks!
comb
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the
Hi =)
I have an $object that has the type sfOutputEscaperIteratorDecorator.
It's always a Doctrine-Model. I want to get the Model-Name.
Is there a better way than doing it this way:
get_class($object->getRawValue())
?
Thanks
--
If you want to report a vulnerability issue on symfony, please s
Ok, so the best practice is Keep It Stupid Simple (KISS) with some
simple session-checks (and yes, the users need to be logged in for
searching)
Thanks for the great responses pghoratiu/gabriel!
On 5 Jun., 13:37, pghoratiu wrote:
> > how do you secure, that one cannot bypass the post-form, by ur
> My suggestion in this case is to use the difference between GET/POST.
That sounds great to me!
> I would keep in session (or the URL) the filter used and not the
> actual results.
how do you secure, that one cannot bypass the post-form, by url-
manipulation?
--
If you want to report a vulne
case you need to track the users by IP address.
> I would solve this problem on the Apache server side with dos_evasive
> and not in symfony, see here:http://bobcares.com/blog/?p=79
>
> AFAIK the users can't mess with session data, it's stored safely on
> the server side a
Hi everybody! :-)
I have two actions: search/executeIndex and search/executeSearch.
And I have a Search-Query $q generated by the executeSearch that gives
all search results.
Normally you would simply give it to the Pager and be happy! :-)
BUT I want to add a search-flood-protection.
I try to f
n to do the redirect for the user.
>
> gabriel
>
> On Jun 3, 12:44 pm, comb wrote:
>
> > Thanks, I solved it with the users session:
>
> > // redirect to referrer if not in this action here
> > if ($this->getUser()->getAttribute('in_search', fals
}
else
{
$ref = $request->getReferer();
if (empty($ref))
{
$this->redirect('@homepage');
}
else
{
$this->getUser()->setAttribute('in_search', true);
$this->redirect($re
he came from the
same action as he's redirected to. In this case I want to redirect the
user to @homepage, too. But I don't know, how to find out, if the
referrer matches the current route.
Any help will be appreciated! :-)
comb
On 3 Jun., 03:13, Eno wrote:
> On Wed, 2 Jun 201
o.uk/wordpress/archives/80-playing-with-symfony-routin...
> You can probably load the routes separately from the YAML as well.
>
> gabriel
>
> On Jun 3, 12:24 am, comb wrote:
>
> > yeah but how can I check if the current page is the same as the user
> > comes fro
yeah but how can I check if the current page is the same as the user
comes from?
On 2 Jun., 21:20, Eno wrote:
> On Wed, 2 Jun 2010, comb wrote:
> > In a executeIndex(...) I want to redirect to the referrer, but only if
> > the referrer is not the current action.
> &
First: If you do a ajax-request you won't get a layout added to the
response - that's why the jquery-framework is not loaded by default.
Second: What exactly are you doing to send some javascript as
response? you could try dataType = script (jQuery:
http://api.jquery.com/jQuery.ajax/
) or use the
Hi! :-)
In a executeIndex(...) I want to redirect to the referrer, but only if
the referrer is not the current action.
How can I do that?
//...
$ref = $request->getReferer();
if ($ref != ...what do I need HERE?...)
{
$this->r
;
> I also made 2 symfony tasks, the first rebuilt the index and the
> second optimized it.
>
> As mentioned before, it can be a little slow but found that using
> optimize helped it a little.
>
> -f1g
>
> On Jun 2, 6:27 am, comb wrote:
>
> > Thanks!
>
> >
using-sphinx-with-symfony/
http://www.symfony-project.org/plugins/sfSphinxPlugin/0_0_8
Thanks to all!
comb
On 2 Jun., 08:02, pghoratiu wrote:
> > @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote
> > in the first post :-(
>
> > Is there an alternative PHP-Se
Why not use the admin-generator for the frontend, too?
You then can individualize templates and actions for your needs.
On 2 Jun., 09:32, Cosimo Zecchi wrote:
> Hi all,
> I'd like to use my frontend in a similar way as the backend. In the
> index of objects of a model I'd like to select any w
gt; you use for structured search (e.g. date, tags).
>
> gabriel
>
> On Jun 1, 8:13 pm, comb wrote:
>
> > Hi!
>
> > I have 5 different Models that I want to be searchable.
> > I don't know, how to implement the search right now. First thing I
> > t
Hi!
I have 5 different Models that I want to be searchable.
I don't know, how to implement the search right now. First thing I
think of is Zend Lucene, but I read several times, that the
performance is bad (cannot use the java implementation).
No my question is: where is the limit of Zend Lucene?
sometimes you read a readme once, twice and even at the third reading
you don't see, what you're looking for...
Found my answer on the 4th reading: The vjCommentPlugin supports re-
captchas.
On 30 Mai, 11:54, comb wrote:
> Hi!
>
> I'm using the vjCommentPlugin for a pag
Hi!
I'm using the vjCommentPlugin for a page that was deployed some weeks
ago.
The spam is massive in this plugin .. what may one do to prevent spam?
comb
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this me
Hi everybody!
I have a behavior FloodCheckable and I want to get all Models (indeed
their tables) that have the behavior set in the schema.yml like:
Video:
actAs:
FloodCheckable: ~
How can I find/access those models?
comb
--
If you want to report a vulnerability issue on symfony, please
e a look around - best
> to find a hosting provider that gives you a virtual server so you are
> isolated from the other users, or at least takes measures to protect
> you from the kind of issues above (by giving each user their own
> Apache user/process for example).
>
> Russ.
&
Oh I forgot to say "on a shared host without ssh!"
On 29 Mai, 09:46, comb wrote:
> Hi!
>
> Obiously it takes some tweaks to run symfony 1.4 on a shared host, but
> what's wrong with it?
> One can add a .htaccess files to prevent unauthorized access for the
> hol
Hi!
Obiously it takes some tweaks to run symfony 1.4 on a shared host, but
what's wrong with it?
One can add a .htaccess files to prevent unauthorized access for the
hole symfony project folder, another one for the web/-directory to
enable normal access there and then point http://domain.com to th
getFiles($form->getName()));
>
> if ($form->isValid())
> {
> if (FloodProtector::testFlood())
> {
> $this->getUser()->setFlash('error', 'The item has not been saved
> due to flood protection.');
> }
> else
>
// TODO how to submit the invoker-values to the
form??
die(); // cancel current route-execution
}
}
}
}
This is very dirty and I don't know how to write this behavior in a
better / cleaner way.
Any help would be appr
he,
>
> try to "return false" in your preInsert Method, it think it should
> work
>
> On May 27, 12:39 am, comb wrote:
>
> > Hi,
>
> > i'm writing a CheckFloodable-Behavior.
> > Before a new record is saved, I would like to prevent the inse
Are the tables created and the fixtures loaded if u drop the db by
hand in phpmyadmin and then execute symfony doctrine:build --all --and-
load --no-confirmation?
You may provide the complete error-message...
On 27 Mai, 03:59, Tony Peng wrote:
> thanks for the responses guys, but neither of thos
you maybe have some tabulators in your database.yml... but you must
not use tabulators in .yml-files (only whitespaces).
On 27 Mai, 03:32, Tony Peng wrote:
> Hi all,
>
> I'm new to Symfony and I'm going through the Jobeet tutorial v1.4 for
> Doctrine. I am currently stuck on Day 3. I've followed
Hi,
i'm writing a CheckFloodable-Behavior.
Before a new record is saved, I would like to prevent the insertion of
the new record if the user did not wait long enough.
It's very dirty since I use the sfContext::getInstance() quite much,
but my question is, how would one prevent the insertion? is it
Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Wed, May 26, 2010 at 12:29 PM, comb wrote:
> > Yeah I thought about Listeners, but I can't find the right hook-
> > point..
> > In Tom's link that
No, think about listeners on Doctrine_Record and the postInsert hook.
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
>
> On Tue, May 25, 2010 at 2:34 AM, comb wrote:
&g
Hi!
I have a Commentable behavior.
Now I want to add a new column nb_comments to a Record with this
behavior for performance reasons.
public function setTableDefinition() {
$this->hasColumn('nb_comments', 'integer', null,
array('default' =>
0));
...
But where is the best
eek
now :-/
On 7 Mai, 09:11, Tom Ptacnik wrote:
> Isn't the problem that this relation is between user and a production
> and you want to connect a user and video?
>
> On 4 kvě, 17:15, comb wrote:
>
>
>
> > thanks for answering.
> > How do I create some fi
on`, CONSTRAINT
`user_production_user_id_production_id` FOREIGN KEY (`
user_id`) REFERENCES `production` (`id`))"
On 3 Mai, 08:50, Tom Ptacnik wrote:
> if you have your m:n relation defined correctly then simply by $video-
>
> >getUsers();
>
> On 2 kvě, 10:36, comb wrote:
Hey :-)
How can I use some html in a __toString methode?
I want to link a user-profile in the Users-toString-Methode, but the
html is escaped :-/
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you a
anyone? :-(
On 29 Apr., 08:01, comb wrote:
> Hi!
>
> is there a tutorial on inheritance of many-to-many relations work?
> Assume the following schema. How can I get all Users that participate
> on a Video?
>
> Production:
> columns:
> title: string(255)
>
Hi!
Is there an example on how to use the doctrine versionable behaviour
in the backenda app of symfony 1.4? like comparing and reverting
versions?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you
tutorial? Do I need to do a SELECT manually or is their some
function like: $tutorial->hasAuthor($author)?
On 30 Apr., 23:40, comb wrote:
> Hi!
>
> I have a tutorial and author model in a many-to-many relation
> (AuthorTutorial).
> Now I want to add a author to a concrete tut
t
violation: 1048 Column 'author_id' cannot be null"-Error. :-(
If I use $authors[] = $current_author->getId(); instead i get a "Fatal
error: Call to a member function save() on a non-object"
Any help will be appreciated
comb
--
If you want to report a vulnerability iss
Hi!
is there a tutorial on inheritance of many-to-many relations work?
Assume the following schema. How can I get all Users that participate
on a Video?
Production:
columns:
title: string(255)
relations:
Participants:
class:User
local:user_id
foreign:
Yeah I had the same problem for weeks... and I found a great Blog-Post
on Metadata:
http://melikedev.com/2010/04/06/symfony-saving-metadata-during-form-save-sort-ids/
In the example the sorting of a book-author relation is saved in the
relation-table.
Good luck!
On 28 Apr., 11:05, saki wrote:
Hi,
Are there any examples on how to make a standard symfony 1.4 - form,
that already works the normal way, using jquery/ajax for sending data
instead of re-loading the page?
I cannot get $.post to work and jquery.form.js, too and so on.. I'm
missing an example for symfony 1.4.
In advance
ple how to do this is in Practical Symfony jobeet 1.4
> (doctrine), but I don't remember the chapter..
>
> On 21 dub, 15:11, comb wrote:
>
>
>
> > Hi
>
> > Tables: Gig, Song and GigSong (many-to-many).
>
> > I use a pager and in executeIndex I set up
Hi!
I have two routes:
routing.yml
video_list_category_bestrated:
url: /video/category/:category_slug/bestrated
class: sfDoctrineRoute
options: { model: VideoCategory, type: object }
param: { module: video, action: category }
requirements:
sf_method: [get]
video_list_category:
guration.class.php - the plugin
> wasn't enabled..?
>
> On 20 dub, 22:59, comb wrote:
>
>
>
> > I got it to work:
>
> > I downloaded (instead of svn checkoutthe) the plugins tgz with the
> > "Download package"-Link from the
> > plugins-pag
/symfony-saving-metadata-during-form-save-sort-ids/
THANKS!
Robert
On 15 Apr., 10:10, comb wrote:
> That would be GREAT!
>
> On 14 Apr., 23:33, Richtermeister wrote:
>
> > Yeah, this is a pretty common requirement, and I've used a double list
> > before that had up/down
e_Query::create()
->from('Song s')
->leftJoin('s.GigSong gs ON s.id = gs.song_id')
->andWhere('gs.gig_id = ?', $this->id)
->orderBy('gs.order_id ASC');
return $q->execute();
}
Thi
;Unknown method
Video::addTag" but
actAs:
Taggable: ~
works!
THANKS!
On 20 Apr., 22:35, comb wrote:
> Thanks for answering.. unfortunately this fails during the
> doctrine:build -all task:
>
> r...@r-pc D:\xampp\htdocs\pen4\pen4
> # symfony doctrine:build --all --and-loa
27; not found in D:\xampp\htdocs
\pen4\pen4\lib\model\doctrine\base\BaseVide
o.class.php on line 89
What may I do?
On 20 Apr., 10:55, Poltasi Risom wrote:
> Try in schema.yml
> Video:
> actAs:
> Timestampable: ~
> Taggable: ~
> columns:
> then rebuild all
>
>
Hi!
I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
1.4.4.
First the plugin-install task doesn't exist, but it was renamed to
"plugin:install", so I used this. The installation fails with:
r...@r-pc D:\xampp\htdocs\pen4\pen4
# symfony plugin:install
http://svn.symfony-proje
t; Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10)
>
> iEYEARECAAYFAkvLPREACgkQIdlZQSANiuZ8VwCgoer2yDiGV2OyZ48kW7T7q9yp
> imwAni6rV2ix4PyrIVo/ge/az9b5rQZn
> =LNgJ
> -END PGP SIGNATURE-
>
>
>
> On Sun, Apr 18, 2010 at 7:08 PM, comb wrote:
>
schema.yml:
Category
actAs: [NestedSet]
...
fixtures.yml:
Category:
NestedSet: true
c0:
name: cat0
c1:
name: cat1
children:
c2:
name: cat2
c3:
name: cat3
children:
c4:
name: cat4
A query "SELECT * FROM .. ORDER BY lft asc" results in an in
ways.
>
> Daniel
>
> On Apr 14, 8:28 am, comb wrote:
>
> > Thanks for answering.
> > User-View:
> > The Band-Members can edit a gig (backend) and on the edit page there
> > is a list of all songs and they can add them to the setlist of the
> > gig
On Mon, Apr 12, 2010 at 12:16 PM, Robert Heim wrote:
> > any hints or tipps? :-/
>
> > Am 09.04.2010 14:45, schrieb comb:
>
> >> Hi
>
> >> I have a many-To-many (Gig-Song) relation and want to use
> >> sfWidgetFormSelectDoubleList.
> &
Hi
I have a many-To-many (Gig-Song) relation and want to use
sfWidgetFormSelectDoubleList.
It work's fine, but I want to save the order of assignments, too (and
not only associated /unassociated ).
schema.yml:
# many-To-many-relation
...
GigSong:
columns:
order_id: { type: integer, notnull
Hi
when I try to access backend_dev.php I get this error:
Fatal error: Cannot instantiate abstract class
BaseNewsGeneratorConfiguration in /home/www/webxx/html/xx/lib/vendor/
symfony/lib/generator/sfModelGenerator.class.php on line 429
what's wrong? on my localhost it works fine..
--
If you
gt; ../backend_dev.php/members/24/edit *WORKS, BUT I WANT A "NEED-AUTH"-
MESSAGE*
How can I do that?
Thanks!
comb
... who is tired from symfony-google-maraton :-(
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You re
he relation
> name
>
> RobeetSection:
> sec1:
> name: Section1
> sec2:
> name: Section2
> RobeetSection: sec1
>
> On 26 mar, 14:54, comb wrote:
>
> > Hi, I was recommended from the forum.symfony-project.org to ask my
> > question
Hi, I was recommended from the forum.symfony-project.org to ask my
question here.
If I make a schema.yml that needs references to own objects and than
load a fixture-file, where the first object should be referenced in
the second, the data-load of the fixture fails.
Example:
#config/doctrine/sch
71 matches
Mail list logo