On Thursday, February 17, 2011 10:04:29 AM UTC+2, Sebastian wrote:
Thank you for your reply Gabriel, is there any documentation on this?
There was in a presentation by Dustin Whittle if I remember correctly. No
official documentation, howto, as far as I can tell.
Personally I think
i have a form widget in _form.php
echo $form['catcher_id']-renderLabel(); //the label
echo $form['catcher_id']-renderError(); //the validator
symfony created the base class:
?php
/**
* LpmService form base class.
*
abstract class BaseLpmServiceForm extends BaseFormPropel
{
public function
Hi Gabriel and thanks for explanation
Problem putting files on 664 is that they won't be handled if they are
included. I am trying some galleries with Flex that uses XML for flashvars,
and they are not streamed correctly, so I had to place that with 775 too. My
worry is that some handle of file
As I mentioned before, the best and most secure setup is to have your files
sitting in your home directory (where your user account has all the
permissions necessary to edit) and setup virtual hosts on Apache instead.
On Thu, Feb 17, 2011 at 10:45 AM, ModaCalcio.com - e-reall ebay
Hi,
As the complexity of my models has grown I have felt the need to log
errors in the model to help me thoubleshoot
The way I have been doing it is something like
sfContext::getInstance()-getLogger()err('{artistImage}
getImageThumbPath unexpected thumbnailType input param');
Which all works
I am not sure if this question has been asked before. I looked and
didn't see anything.
I'm starting a project and I'm thinking I should do it on Symfony 2
since the release is scheduled for March. What do you guys think? Any
advice?
--
If you want to report a vulnerability issue on symfony,
Hi !
I am experimenting the PR6, but I could not find how to access things
from Entity just as you would do from Controller ($this-
get('database_connection') or $this-
get('doctrine.orm.entity_manager') and so on).
It would be nice to place all static database queries inside the
Entities.
And
Hi !
I fixed the issue by removing my lame ctor and passing the name
parameter to the create() factory instead as advised.
Thank you all !
On 16 fév, 10:51, Bernhard Schussek bschus...@gmail.com wrote:
Oops, parentheses I mean.
/** @validation:NotNull */
and
/** @validation:NotNull() */
Hey folks,
I have the following scenario: A web application implemented with symfony
but other parts in the background that would need to use the same objects
(model) implemented in C++.
Example: A worker process that does jobs created by PHP async in C++. It
would need to use the same model
Thank you for your reply Gabriel, is there any documentation on this?
Personally I think XML for this task is an unneccessary overhead, compared
to exposing the C++ model via a php extension.
Plus both sides can use the same accessors and functionality, what would be
one of my main goals.
Yes, of course, should be integer...
Thank you, it works.
On 16 fév, 19:02, Roman Gnatyuk fo...@hackers.net.ua wrote:
user_id: string(255)
should be user_id: integer relations:
sfGuardUser:
foreignType: one
try:
relations:
sfGuardUser:
foreignType: one
hi Helloise Smit .
in you LpmServiceForm:
as Doctrine orm:
$this-widgetSchema['catcher_id'] = new sfWidgetFormDoctrineChoice(array(
'label' = 'Catcher',
'multiple' = false,
'model' = 'LpmCatcher'),
array());
as Propel:
$catcher_names = LpmCatcherPeer::getByAllNames();
##
This has been asked before but basically what it boils down to is:
- Do you have an application that will be complete and ready to go live only
after March?
- Will you be willing to make alterations (perhaps extensive alterations
even) after Symfony 2 is released in March to your application?
-
Your best bet for ensuring you have good database backups is to look at
setting up replication with master/slave setup. This is done through mysql
directly and not with the application.
The only way to do it through the application is to overwrite the save()
method within your propel model
I am using symfony 1.4 in a project and i need to store multiple
options in a single field .
I am using sfWidgetFormChoice Set up loooks like this:
$status = Doctrine::getTable('Profile')-getStatuses();
$this-widgetSchema['status'] = new sfWidgetFormChoice(array(
I Had a similar issue long ago When I was working on ubuntu.
From what I remeber I added my user to the www:data group whic solved
most of my problems.
On Feb 16, 5:31 pm, ereallstaff ereallst...@gmail.com wrote:
Hi I have an annoying problem develoing application with netbeans
I am on Ubuntu
Le 16/02/2011 23:00, Lideln a écrit :
Hi !
I am experimenting the PR6, but I could not find how to access things
from Entity just as you would do from Controller ($this-
get('database_connection') or $this-
get('doctrine.orm.entity_manager') and so on).
It would be nice to place all static
On Wednesday, February 16, 2011 5:59:13 PM UTC+1, coolmec33 wrote:
I want to know the feasibility of a social network (profiles, walls,
groups, friends ) with the symfony framework.
http://www.symfony-project.org/plugins/sfSocialPlugin
cheers
Massimiliano Arione
--
If you want to
I struggled with the same question for the last few weeks, and finally
decided to stick with CodeIgniter for prototyping until Symfony2 is closer
to release. The software itself is amazing, but the documentation is all
over the place. Very few of the tutorials work with the latest snapshot,
Symfony Oracle connection hiij vzsen v. Holboj vzsen chin Use of undefined
constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS aldaa
garaad bh yum
On Thu, Feb 17, 2011 at 5:39 PM, Erkhembayar Gantulga
erheme...@gmail.comwrote:
hi Helloise Smit .
in you LpmServiceForm:
as
You can wrap C++ classes in PHP extensions.
When I get to that point I will share my findings about how it works with
Symfony :)
--
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
Using sfContext has its problems, as you have seen. It couples your
models and where you can create your own context in your own tasks,
that doesn't solve the problem with standard tasks.
How about using the event dispatcher?
In your model:
class Something
{
protected $dispatcher;
public
Hi all,
I have a class named CorpUserRememberKeyTable by Doctrine which
content is like :
public static function getInstance()
{
return Doctrine_Core::getTable('CorpUserRememberKey');
}
public function myFindOneByRememberKey($remember_key)
{
$q =
I solved my problem
I had to use return unserialize( parent::_get('status') );
because base class uses magic method to return value and caused
infinite loop by method calling itself or something like that ;)
On Feb 17, 3:53 pm, wickass wick...@gmail.com wrote:
I am using symfony 1.4 in a
i need read and store in DB (mongoDB or MySQL) logs files, exists any
php lib like perl File::Tail module?
--
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
Groups
In getStatus() you refer to $this-status (which is calling the
getStatus() method, hence your infinite loop).
You don't need to use parent::_get('status), just $this-
_get('status') will work. Unlike Propel, Doctrine doesn't use
parent::getXXX() and parent::setXXX() to override, it uses _get()
On 2011-02-15 14:40, Yitzchak Schaffer wrote:
I am encountering unexpected behavior with form processing, symfony 1.4
with Doctrine. I have a table which has a many-to-many relationship to
itself:
This turned out to be a known issue:
Hello everyone,
I have a link table:
CommandeOperationTechniqueSupplement:
columns:
cot_id: { type: integer , notnull: true}
ots_id: { type: integer , notnull: true}
relations:
CommandeOperationTechnique: { local: cot_id, onDelete: CASCADE }
OperationTechniqueSupplement: { local: ots_id
We had this same issue and we have solved this by implementing a
LogFactory.
I would not inject the dispatcher in my model,
For one, because you want to log, not dispatch
And for two, because it is very cumbersome to provide the logger to
all your classes (changing all constructors and
You need to add your entity to the bind
$form-bind($this-get('request'), $news);
// If the form has been submitted and is valid...
if ($form-isValid()) {
$em = $this-getEm();
$em-persist($news);
$em-flush();
return
I'm getting the error:
PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization
of 'Closure' is not allowed'
Here's my code:
?php
namespace Sensio\HelloBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class AccountControllerTest extends
Hi,
I manually check to see if i can provide the accept content the client
wants:
$header_array =
$this-container-get('request')-getAcceptableContentTypes();
then i check if $header_array contains the content type i have.
what i want to do is throw a 406 exception if $header_array does not
32 matches
Mail list logo