Why exactly are you using Symfony 1.1 considering it's no longer maintained?
2010/8/24 tek123 paktek...@googlemail.com:
Hi,
I have just started symfony 1.1 but I have ran into this complete
blockade. I seem to be stuck on the create an application part on
here:
Hi all,
I'm working on a simple form so my user can update his firstname, lastname,
email and password informations, here is was I've done so far :
?php
class noeGuardUpdateProfileForm extends sfGuardUserForm
{
public function configure()
{
parent::configure();
Hi all,
I'd like the webmaster of my application to be able to set the value of some
config parameters, typically comments_moderation : true / false.
It would be awesome if I could use it throught sfConfig class, anyway of doing
that? I was about to create a parameters database, but I'd like
Hi All,
I'd like to render a custom date widget, I don't need the day, I just want a
month and a year, so here is what I do :
$this-widgetSchema['date'] = new sfWidgetFormI18nDate(array(
'culture' = 'fr',
'format' = '%month%/%year%'
));
I works fine, but to validate it,
Hi all,
I have a Page model with a content property. This content contains HTML
coming from the tinymce WYSIWYG editor, but when I do :
?php
// ...
echo $page-getContent();
//
?
The HTML tags are escaped, which is good but I don't want Symfony to escape
this one. Here is what I tried :
None of this worked, and I really don't get why even my var_dump() is escaped,
it never happened before :/
With :
?php
slot('title', $page-getTitle());
echo $page-getContent(ESC_RAW);
die();
?
I can see my HTML is properly unescaped, somehow my view is re-escaped, is it
possible to
Le 11 mars 2010 à 15:30, Raphael Schumacher a écrit :
Have you verified (e.g. using your debugger) that the object's
classnames are in reality what you should expect in theory?
http://up.r12t.fr/8c2b8c76.png Yep, It's NOEPage as it's supposed to be
- the escaping strategy for your
2010 à 15:04, Giorgio Mandolini a écrit :
Hi,
try $page-getContent('ESC_RAW');
or setup the default escaping behaviour in settings.yml
check this:
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping
Giorgio Mandolini
2010/3/11 Romain Pouclet
2010 à 16:59, Marc Weistroff a écrit :
It's because objects and variable are escaped before being passed to the view.
Are you echoing your content inside a slot (or partial?) that might be
automatically or manually escaped after that?
On Thu, Mar 11, 2010 at 4:52 PM, Romain Pouclet pall
Hi all,
I have an admin application which is secured (is_secure: true). I'd like to
override its login action so I can set a specific layout and manually render
the login form.
Can you tell my how to do that? I started with something like this :
?php
require_once sfConfig::get('sf_root_dir') .
The video is private, is it normal? :x
Le 22 févr. 2010 à 08:54, Ben Haines a écrit :
Sorry for the delay in getting this up. HD (720p) uploads to Vimeo.com
kept failing. So here is a lower resolution version.
Enjoy and of course thanks to all Symfony devs and sflive2010
organisers!
You could add a getStatus() method (or something like that) in your model class
:
public function getStatus()
{
return $this-isActive() ? 'Active' : 'Inactive';
}
Le 19 févr. 2010 à 18:27, Samuel Morhaim a écrit :
If I have a field isActive and of course it returns 1 or 0 .. how can
I
Hi all,
I'm using nested set doctrine behavior, and as I my previous issue I'm using a
helper to render my tree, so here is how I use it :
div class=blocArbo
h3?php echo $root-getLabel() ?/h3
?php if ($root-getNode()-hasChildren()) : ?
?php echo render_nested_set(
Hi all,
I am currently working on a Symfony application which is now in production. I
still have to work on it so I have to set up some migrations but I must admit
I'm completely lost here. I found a publication about setting up Doctrine
Migrations
Hi there,
I'm heavily working w/ Doctrine NestedSet behavior. I have a tree I'd like to
render in a complex way.
Let say I have a path for my selected node : node1 node2 node3
I'd like to render it so I can display :
ul
linode 1 sibling 1/li
linode 1 sibling 2/li
linode 1 sibling 3/li
li
Problème is, I want my rendering to follow a path, as you can see in my
example.
Anyway, a recursive render helper is a good start I guess!
Maybe I should add a 'path' parameter helper to make something like :
function render_nested_set(Doctrine_Collection $collection, array $path)
{
// ...
}
Hi all,
I'm having a really strange issue w/ my project, I can't build anything using
doctrine:build task...
This works just fine if I'm running it from my local working-copy :
./symfony doctrine:build --all --env=prod
if I run it from the production server, I have this error : No yml schema
Hi,
Sorry I'm using Symfony 1.4...
My database access are correct because I can connect to my db server when I try
a mysql -u
Le 28 janv. 2010 à 17:57, Augusto Flavio a écrit :
Hi Romain,
Which version of symfony you are using.
Is ok your DB connection? This is a common
According to some tests, I don't have /tmp folder on this server, but this is
where php is supposed to create tmp files, do you think this could come from
there? The fact that php doesn't find this yml file ?
Le 28 janv. 2010 à 18:21, Augusto Flavio a écrit :
I had a similar problem too with
build-sql works fine
insert-sql throws me an error :
-bash-3.2$ php ./symfony doctrine:insert-sql
doctrine created tables successfully
Hi all,
I'm working on a quiz module in my Symfony application, so I have a
NoeQuizParticipationForm which is supposed to include all my questions
subforms. Thus, I have a NoeQuizParticipationAnswerForm class which handles the
user's answer to each question, in this class I only have one
21 matches
Mail list logo