Re: [symfony-users] FREE ticket to sflive2010

2010-02-13 Thread Lee Bolding
Hi All...

No more mails about this please - I've given it away already :)

Presumably there will be PDFs online somewhere afterwards, so I can get some 
idea of what I missed?

On 12 Feb 2010, at 10:46, Lee Bolding wrote:

 Yes, that's right.
 
 Unfortunately, I'm snowed under at work, so can't go.
 
 If anybody would like my ticket instead give me a shout and you can have mine
 
 -- 
 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 email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.
 

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 14 Messages in 9 Topics

2010-02-13 Thread joost . farla
Beste,

Tot en met 18 februari ben ik niet aanwezig op kantoor.
U kunt contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761.

Met vriendelijke groet,

Joost Farla
joost.fa...@freshheads.com

- -

freshheads grafisch ontwerp en internet applicaties
Dunantstraat 1c | 5017 KC Tilburg | Nederland
tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762
i...@freshheads.com | www.freshheads.com


-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: doctrine schema.yml

2010-02-13 Thread ScherlOMatic
Hey Maxime!

First I have to say to you that doing relations with symfony and
doctrine is a little bit tricky.

Unfortunately there is just one nice tutorial which I can recommend:
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms

Another good hint is reading the doctrine documentation:
http://www.doctrine-project.org/documentation


Bye Stefan



On 12 Feb., 07:24, Maxime Lepreux maxime.lepr...@gmail.com wrote:
 Hi.

 French developper, I 'm new to symphony.

 Trying to understand how doctrine works, i've been using
 doctrine:commands (buid-schema or  build-model/build-sql)

 environment :
 WAMPSERVER (Apache 2, PHP 5, Mysql 5)
 Symfony 1.4 stable
 db generated via MYSQL Workbench

 CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table1` (
   `id` INT NOT NULL AUTO_INCREMENT ,
   `field01` VARCHAR(45) NOT NULL ,
   PRIMARY KEY (`id`) )
 ENGINE = InnoDB;

 CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table2` (
   `id` INT NOT NULL ,
   `field01` VARCHAR(45) NOT NULL ,
   PRIMARY KEY (`id`) ,
   INDEX `fk_table2_table1` (`id` ASC) ,
   CONSTRAINT `fk_table2_table1`
     FOREIGN KEY (`id` )
     REFERENCES `myjobsearch`.`table1` (`id` )
     ON DELETE NO ACTION
     ON UPDATE NO ACTION)
 ENGINE = InnoDB;

 on first attempt :
 - first i've used build-schema from mysql to get a correct schema.yml
 file

 Table1:
   connection: doctrine
   tableName: table1
   columns:
     id:
       type: integer(4)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: true
     field01:
       type: string(45)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
   relations:
     Table2:
       local: id
       foreign: id
       type: many
 Table2:
   connection: doctrine
   tableName: table2
   columns:
     id:
       type: integer(4)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: false
     field01:
       type: string(45)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
   relations:
     Table1:
       local: id
       foreign: id
       type: one

 Question 1: why has doctrine generated a one-to-many relation instaed
 of one-to-one?

 Going on ,ignoring this question, using build-model command:.

 the result is that BaseTable1 has in setup() :
 ...
  $this-hasMany('Table2', array(
              'local' = 'id',
              'foreign' = 'id'));

 has many()  not matching the db !

 on second attempt :
 modifiing schema.yml on relation table1-table2 to match on db model
 Table1:
 ...
   relations:
     Table2:
       local: id
       foreign: id
       type: many
 Table2:
 ...
   relations:
     Table1:
       local: id
       foreign: id
       type: one

 and rebuild model files : great ! i've got to hasone() on both base
 classes.

 so now , using build-sql command  to generate schema.sql:

 CREATE TABLE table1 (id INT AUTO_INCREMENT, field01 VARCHAR(45) NOT
 NULL, PRIMARY KEY(id)) ENGINE = INNODB;
 CREATE TABLE table2 (id INT, field01 VARCHAR(45) NOT NULL, PRIMARY
 KEY(id)) ENGINE = INNODB;

 Question 2 :h... Dude, were's my FK constraint ?

 this  tiny example demonstrates i definitly don't understand
 doctrine( or yaml) works
 is there any tuto explaining basics of yaml syntax for relations
 ( 1-1, 1-n, n-n)
 with WORKING db-build-schema-build-model-build-sql-insert sql ?
 thanks

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Apostrophe 1.0 Stable Release: a mature CMS for Symfony!

2010-02-13 Thread Tom Boutell
Hello Alex,

You can absolutely use apostrophePlugin in another Symfony project.

Check out the README. There's an easy way section that explains
about our sandbox project, how to clone it in svn for an easier
starting point, etc., and a hard way section (that's not all that
hard) that spells out how to configure the plugin in an existing site.
You may find yourself referring to the sandbox project now and then to
figure out how best to configure things. But yes, it can definitely be
used in a project that doesn't begin life with it.

You may find that the engine modules feature winds up being a good way
to draw your own Symfony modules into CMS space as it is typically a
very painless upgrade to modules you have already written.

On Feb 12, 4:20 pm, a...@speedypin.com a...@speedypin.com wrote:
 2nds on the congrats...

 Is this a CMS that can be intergrated into an existing symfony
 project?

 sfSympalPlugin and diemPlugin need to be selected at the beginning
 point of starting a projectSucks for those (like me) who have been
 developing for more than 1+ years on a current project an need a CMS.

 Also would this work with ysfDimensions?

 I don't expect these questions to be answered on the fact that you
 give the world something great and they ask for more.  I really think
 you should be congradulated with What you have done with
 apostrophePlugin,... I will read the readme and so on to see if I can
 answer these questions myself.

 With Best Regards,
 Alex Stoneham
 (Speedypin LLC)

 On Feb 12, 10:20 am, Nicolas Ippolito ippolito.nico...@gmail.com
 wrote:



  Hi,

  Congratulations!

  It's a wonderful project!

  Nico

  2010/2/12 Tom Boutell t...@punkave.com

   We have labored long and hard to prepare for the 1.0 release of
   Apostrophe. As we said before, it has been stable and in use for a
   long time now, but we wanted to mark a moment in time with an official
   release.

   Probably the easiest way to get a feel for Apostrophe is to go to our
   demo site and log in:

  http://demo.apostrophenow.com/

   The user name is “admin” and the password is “demo”. The site's
   content resets at the top of the hour.

   If you want to get your bearings before you you do that, head over to
   the newly revamped Apostrophe site:

  http://www.apostrophenow.com/

   For the very interested, you should consider checking out our
   extensive README which includes an Installation section, an Editor’s
   guide, a Designer’s guide and a Developer’s guide. You can read the
   current README conveniently here:

  http://www.apostrophenow.com/home/readme

   This is the symfony-users list so I'll stick to the highlights from a
   developer's perspective:

   * Robust content slots, ready-built for you. There are rich text,
   image, slideshow, video, button, RSS/Atom feed, PDF and raw HTML slots
   built in.  If you have used Apostrophe before, you know that you can
   add a slot on a page, choose what you want to place and then reorder
   it. New custom slots can also be made for any project.

   * Areas. Areas allow vertical columns of slots to be added in any
   order by any editor of the site. This allows users to compose good-
   looking content without resorting to layout-busting HTML pasting.

   * Slot variants. Sometimes you want to let users pick between
   variations on a common slot without using raw HTML or PHP. For
   instance, what if you wanted to make the background color of a some
   text slots yellow, and some white? In the past that would have
   required two slots. Now, it can just be a selectable variantof the
   same text slot. We really sweated the details on making sure the
   option control was contextual. We hope you appreciate the effort.

   * Engines. Sometimes you want to add content that spans more than one
   page. In Apostrophe you can graft an entire Symfony module into the
   CMS page tree at any point. And you can graft the same module at
   multiple locations, distinguishing between them and providing
   customized behavior if you wish. We already do this for our media
   browser right out of the box so you can see how it works.

   * A task to help you generate new custom slots:

   ./symfony apostrophe:generate-slot-type

   This task will add a new slot type to your site, scaffolding the
   module, the form and the model class.

   * Extensive documentation, including a detailed and up-to-date
   developer's guide as well as documentation for installers, editors and
   front end designers.

   Apostrophe 1.0 is a big achievement and we're excited about it. But it
   is also just the beginning. We hope you have an opportunity to check
   out Apostrophe. We would love to hear from you if you do.

   A note to developers: stable branches of the apostrophePlugin and the
   asandbox project are now available in svn. We are using a 1.3 branch
   for these following the tradition of naming branches after the
   earliest Symfony version with which they are still 

[symfony-users] Validation don´t work

2010-02-13 Thread Rodrigo Prado
Good afternoon!

I have a problem with validation in symfony.

archive: C:\xampplite\htdocs\portalcepai\lib\form\LoginForm.class

?php
class LoginForm extends sfForm
{
  public function configure()
  {
$this-setWidgets(array(
  'username' = new sfWidgetFormInput(),
  'password' = new sfWidgetFormInputPassword()
));

$this-widgetSchema-setLabels(array(
  'username'= 'Usuário',
  'password'   = 'Senha',
));

 $this-setValidators(array(
  'username' = new sfValidatorString(array('required' = true)),
  'password' = new sfValidatorString(array('required' = true)),
));
  }
}

template:- loginSucess.php

form action=?php echo url_for('login/login') ? method=POST
?php echo $form ?
input type=submit value=Logar/
/form

My action method responsable for login

  public function executeLogin(sfWebRequest $request)
  {
if ($this-getRequest()-getMethod() != sfRequest::POST)
{
  // display the form
  $this-getRequest()-setAttribute('referer', $this-getRequest()-
getReferer());
  $this-form = new LoginForm();
}
else
{
  // handle the form submission
  $username = $this-getRequestParameter('username');
  $password = md5($this-getRequestParameter('password'));

  $this-forward404Unless($usuario = Doctrine::getTable('Usuario')-
findOneByUsername($username), sprintf('O usuário (%s) não existe .',
$username));

  //$usuario = Doctrine::getTable('Usuario')-
findOneByUsername($username);

  // password is OK?
  if ($usuario-password == $password)
  {

//Inclui na sessão os dados do usuário

$this-getUser()-setAuthenticated(true);
$this-getUser()-addCredential($usuario-perfil);

//nome atributo, valor, valor padrão caso esteja nulo
$this-getUser()-setAttribute('id', $usuario-id);
$this-getUser()-setAttribute('username', $usuario-
username);
$this-getUser()-setAttribute('password', $usuario-
password);
$this-getUser()-setAttribute('perfil', $usuario-perfil);
$this-getUser()-setAttribute('email', $usuario-email);

$this-redirect('home/index');
//return $this-redirect($this-getRequestParameter('referer',
'@homepage'));

  }
  else
  {
//password incorreto
$this-forward404( Senha inválida. );
  }
}
  }


So, when I put blank the fields username or password, nothing be, the
form is processed normally, without validation.

What the problem??

Thanks.

Rodrigo

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Using SQL Aggregate functions in propel generate admin

2010-02-13 Thread Земсков Юрий
Hello,

there is a table `stat_main`:
id | user_id | date | hit | uniq | money

and  a  propel  generated admin module for it.

Using StatMain obj-s is fine  for  each  individual  user,  but for
backend page I want to use MySQL  SUM() in a query, like
'SELECT  date,  SUM(hit),  SUM(money) GROUP BY date'.

Any ideas how to use this in propel admin generated module? Maybe with
custom  peer  method or something (I have no ideas how to hydrate this
aggregate columns into objects). Thanks in advance for any thoughts and ideas.

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] [sfGuardPlugin] creating profile row upon registration

2010-02-13 Thread Olivier Ricordeau
Hi!

I'm using the sfGuardPlugin and I'd like the registration form to
automatically create a row in my profile table when an account is
created. Could anyone tell me what I have to do?

Cheers,
Olivier

-- 
- **Olivier RICORDEAU** -
 oliv...@ricordeau.org

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Symfony frontend sort by th

2010-02-13 Thread ziclo
Hi,

I would like to be able to sort (order by ASC ou DESC) by clicking on
a colon title (th). The same way as the backend of the jobeet
tutorial.
I don't want it on the backend but on the frontend.

With doctrine i can use the pager without difficulties but i do not
know how to sort a list (result of a query) by a simple click on the
title of a colonn.

Does a tutorial exists about that ?

Thank you.

Ziclo

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] JavaScript and Css Fails to Load from the View.yml

2010-02-13 Thread t00cool
Guys,
I am trying to set up a new project. I want to include some css files
and javascript files via the global view.yml. I have placed the
javascript files under web/js/ and placed the css under web/css/. I
would expect that the auto loader would pick up these files. I have
tried to include the files in the layout.php file with the lines
?php include_http_metas() ?
?php include_metas() ?
?php include_title() ?
?php use_javascript('jquery.js') ?
?php use_stylesheet('main.css') ?

However I still do not see the javascript or css appear. Any help
would be greatly appricated as I am totally stumped?

This is my view.yml

# You can find more information about this file on the symfony
website:
# http://www.symfony-project.org/reference/1_4/en/13-View

default:
  http_metas:
content-type: text/html

  metas:
#title:symfony project
#description:  symfony project
#keywords: symfony, project
#language: en
#robots:   index, follow

  stylesheets:[main.css]

  javascripts:[jquery.js]

  has_layout: on
  layout: layout

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] how to create web services ??

2010-02-13 Thread Francisco
Hellow peoples, firstly i don't speak english, sorry for a mistake
i'll try to explain me.
Someone can help me to create a web services !?!?

the idea is use a model layer to retreive the information and publish
a wsdl with the methods.

searching in the web, i found the ckWebServicePlugin, but i don't know
if it is useful for generate web services (and wsdl) that bring a
collections of data that represents a complete records in a database.

for example a collections of Movies (gender, synopsis, poster,
director, title,...).

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Help with Schema

2010-02-13 Thread Raphael Schumacher
Samuel, could you resolve the issue in a successful manner?
Feedback is welcome, Raphael.

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] how to create web services ??

2010-02-13 Thread Daniel Lohse
It's definitely possible to do these kinds of things with ckWebServicePlugin 
but you'll have to dig into the README because it really is heavily documented.

Sorry for not being that much more helpful to you, maybe someone else can join 
in?

Cheers, Daniel

On 13.02.2010, at 22:46, Francisco wrote:

 Hellow peoples, firstly i don't speak english, sorry for a mistake
 i'll try to explain me.
 Someone can help me to create a web services !?!?
 
 the idea is use a model layer to retreive the information and publish
 a wsdl with the methods.
 
 searching in the web, i found the ckWebServicePlugin, but i don't know
 if it is useful for generate web services (and wsdl) that bring a
 collections of data that represents a complete records in a database.
 
 for example a collections of Movies (gender, synopsis, poster,
 director, title,...).
 
 -- 
 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 email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.
 

-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Doctrine + PostGreSQL

2010-02-13 Thread Dennis
Unless you use the stock user system with Symfony, which creates a
table named 'user'. That won't work, I believe.

However, I will be finding out very soon, since I have to incorporate
the stock user system within a project within 2 weeks :-)

Also, Using Postgres.



On Feb 5, 3:10 am, Martin Ibarra Cervantes
ibarra.cervan...@gmail.com wrote:
 hi, i like first create my schema  on my DB with pgAdmin III and after
 with symfony doctrine:build-schema , build-model, build-forms.
 build-filters and i dont have problem :-) try.
 and this generate relations with other tables on your schema.

 On Mon, Jan 25, 2010 at 7:15 PM, webasker webas...@gmail.com wrote:
  Ok, this is weird.  I tried changing the schema name, table name, and
  column names to all lowercase, then it works.  But I'm not allow to
  change the database.  Does anyone know why this is happening?  How can
  I work around this issue without changing the database?

  Also, symfony doctrine:build-schema does not generate relations in the
  schema.yml.  How can I get it to generate?

  Much appreciated.

  --
  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 email to 
  symfony-users+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en.



-- 
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 email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.