Re: [symfony-users] Autoloading from shared php include path

2011-06-09 Thread cleve
After reading this comment:
"include_path is not taking in consideration [of] file_exists()"
http://www.php.net/manual/en/function.set-include-path.php#103224

It seems the use of file_exists() in UniversalClassLoader : 
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/ClassLoader/UniversalClassLoader.php#L246

doesn't look in the include paths, or am I missing something? Has anyone 
managed to get this to work?

John

-- 
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 "symfony users" group.
To post to this group, send email to symfony-users@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] Autoloading from shared php include path

2011-06-09 Thread cleve
Oh man still can't work this out, any ideas anyone?

-- 
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 "symfony users" group.
To post to this group, send email to symfony-users@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] Autoloading from shared php include path

2011-06-08 Thread cleve
Tried empty string but it still can't find Zend classes:

$app['autoloader']->registerPrefixes(array(
'Zend' => '',
));

$client = new Zend_Http_Client();

Fatal error: Class 'Zend_Http_Client' not fou.

-- 
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 "symfony users" group.
To post to this group, send email to symfony-users@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] Autoloading from shared php include path

2011-06-08 Thread cleve
Hi All,

I'm trying to load some zend libs from a shared php include folder and can't 
seem to get it to load properly.

Include path is:
/usr/share/php

Contents of include path:
Zend/Http
Zend/Pdf  etc

Should this work  

$app['autoloader']->registerPrefixes(array(
  'Zend' => '/Zend',
));

I can get an absolute path working ok but this can change between 
environments:

$app['autoloader']->registerPrefixes(array(
  'Zend' => '/usr/share/php',
));

How do I tell the autoloader to load Zend from the include path?

Thanks,
John C

-- 
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 "symfony users" group.
To post to this group, send email to symfony-users@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] London Symfony Lightning Talks - November 9th

2010-10-05 Thread cleve
A couple of us are organising a symfony meetup in London and thought
it would be awesome to get some people to do some lightning talks on
symfony usage.

We're especially keen on anyone's experience with symfony2 (but
anything symfony'ish would be great). If each of us breaks off a small
piece of the puzzle, and report back on the night, it will help us
all!

If you're interested in contributing a talk, please get in touch.

http://www.meetup.com/symfony/calendar/14951826/

John

-- 
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 "symfony users" group.
To post to this group, send email to symfony-users@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: form wizard

2009-08-27 Thread cleve

Have you seen this:

http://blog.adryjanek.eu/2009/03/24/symfony-12-and-multipage-form-wizard/

On Aug 27, 7:33 am, krishan  wrote:
> Hi
>
> I would like to make a wizard in which all form fields will come one
> by one.
> This will continue until all form input are submitted by user and
> finish in last.
>
> What is the best way to do this friends?
>
> Thank you
> krishan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: How to stop doctrine creating tables for a single model?

2009-07-15 Thread cleve

Thanks Jonathan,

In my BaseSurgery.class.php I've got the attribute already configured
(generated from the schema) but it still creates the table when I
build-all, should I create a ticket?

public function setTableDefinition()
{
$this->setTableName('surgery');
$this->hasColumn('id', 'integer', null, array(

  ...

$this->setAttribute(Doctrine::ATTR_EXPORT,
Doctrine::EXPORT_NONE);

}

John

On Jul 14, 11:32 pm, Jonathan Wage  wrote:
> Check out the Doctrine::ATTR_EXPORT attribute to configure what gets
> exported to the dbms from your models.
>
> - Jon
>
>
>
> On Tue, Jul 14, 2009 at 5:31 PM, Eno  wrote:
>
> > On Tue, 14 Jul 2009, cleve wrote:
>
> > > The  doctrine/symfony task builds the sql tables based on the model
> > > schema and the schema says don't export me (as in don't create a
> > > table).
>
> > > Any doctrine experts shed any light?
>
> > Since the Doctrine code is in your symfony install, you can go look at the
> > tasks code itself.
>
> > --
>
> --
> Jonathan H. Wage (+1 415 992 5468)
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> training, consulting, application development, or business related questions
> at jonathan.w...@sensio.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-users@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: How to stop doctrine creating tables for a single model?

2009-07-14 Thread cleve

mmm i don't think that's how it's supposed to work.

The  doctrine/symfony task builds the sql tables based on the model
schema and the schema says don't export me (as in don't create a
table).

Any doctrine experts shed any light?

John

On Jul 14, 4:26 pm, Eno  wrote:
> On Tue, 14 Jul 2009, cleve wrote:
> > But it should be able to do it using the Doctrine attribute setting
> > according to the docs and still use build-all-reload.Or am I missing
> > something?
>
> You're running a *symfony* task which will do whatever its supposed to do.
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: How to stop doctrine creating tables for a single model?

2009-07-14 Thread cleve

Hey Eno,

But it should be able to do it using the Doctrine attribute setting
according to the docs and still use build-all-reload.Or am I missing
something?

John

On Jul 14, 1:23 pm, Eno  wrote:
> On Tue, 14 Jul 2009, cleve wrote:
> > But when I run doctrine:build-all-reload it  always creates the tables
> > anyway, so i'm not sure hat I'm doing wrong.
>
> Well yeah, you're running build-all-reload which is supposed to do
> that (i.e. drop your database tables and reload them). You don't have to
> run build-all-reload since it just runs a series of subtasks, some of
> which you can skip. At bare minimum you could just run
> doctrine:build-model and just use your models without reloading your
> database. Running symfony by itself will show you what tasks are available
> in the doctrine namespace.
>
> See also:http://www.symfony-project.org/jobeet/1_2/Doctrine/en/03
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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 stop doctrine creating tables for a single model?

2009-07-14 Thread cleve

I've got a table that I need Doctrine to not create tables for as its
in a read-only database.

I've followed the documentation and added export: none under
attributes to the schema:

Surgery:
  connection: hrs
  attributes:
export: none
  columns:
..

This has added the line to BaseSurgery.class :

$this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);

But when I run doctrine:build-all-reload it  always creates the tables
anyway, so i'm not sure hat I'm doing wrong.

more docs here:

http://www.doctrine-project.org/documentation/manual/1_0/en/configuration#exporting


Cheers,
John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Thanks Thomas, there's some good stuff there.

On Jul 13, 2:41 pm, Thomas Rabaix  wrote:
> You might want to have a look to this 
> :http://rabaix.net/en/articles/2009/02/23/let-s-be-more-dynamic-with-s...
>
> I need to blog more about this 
>
>
>
> On Mon, Jul 13, 2009 at 2:55 PM, cleve  wrote:
>
> > Ok this is how I did it, but everything is outside a form / table
> > class:
>
> > Partial to override default admin generator field venue_id
> > _venue_id.php
> > 
>
> > 
>
> > 
> >  renderError() ?>
> >  
> >    renderLabel('Venue') ?>
>
> >     >    $w = new sfWidgetFormDoctrineChoice(array('model' => 'District',
> > 'add_empty' => '--Filter by District--'));
> >    echo $w->render('district_id', null, array('id' =>
> > 'district'));
> >    ?>
>
> >     >        'update'   => 'district-select',
> >        'url'      => '/admin.php/course/selectVenue',
> >        'with'     => "'district=' + value",
> >        'loading'  => "Element.show('indicator');Element.hide('gp-
> > select')",
> >        'complete' => "Element.hide('indicator');Element.show('gp-
> > select')",
> >    )) ?>
>
> >     »
> >    render
> > ($attributes) ?>
>
> >    
>
> >  
> > 
>
> > AJAX action to return filtered select
> > ---
>
> >  public function executeSelectVenue($request){
>
> >    $this->forward404Unless($request->isXmlHttpRequest());
> >    $this->forward404Unless($request->hasParameter('district'));
>
> >    $q = Doctrine_Query::create()
> >    ->from('Venue v')
> >    ->where('v.district_id  = ?', $request->getParameter('district'));
>
> >    $w = new sfWidgetFormDoctrineChoice(array('model' => 'Venue',
> > 'query' => $q));
> >    return $this->renderText($w->render('course[venue_id]'));
>
> >  }
>
> > It feels odd to create widgets in the partial / action but overkill to
> > create an additional class? What does everyone think?
>
> > I'll make a snipeet of this when its tidy! (and Refactored
> > properly :-)
>
> > John
>
> --
> Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Ok this is how I did it, but everything is outside a form / table
class:

Partial to override default admin generator field venue_id
_venue_id.php





  renderError() ?>
  
renderLabel('Venue') ?>

 'District',
'add_empty' => '--Filter by District--'));
echo $w->render('district_id', null, array('id' =>
'district'));
?>

 'district-select',
'url'  => '/admin.php/course/selectVenue',
'with' => "'district=' + value",
'loading'  => "Element.show('indicator');Element.hide('gp-
select')",
'complete' => "Element.hide('indicator');Element.show('gp-
select')",
)) ?>

 »
render
($attributes) ?>



  



AJAX action to return filtered select
---

  public function executeSelectVenue($request){

$this->forward404Unless($request->isXmlHttpRequest());
$this->forward404Unless($request->hasParameter('district'));

$q = Doctrine_Query::create()
->from('Venue v')
->where('v.district_id  = ?', $request->getParameter('district'));

$w = new sfWidgetFormDoctrineChoice(array('model' => 'Venue',
'query' => $q));
return $this->renderText($w->render('course[venue_id]'));

  }


It feels odd to create widgets in the partial / action but overkill to
create an additional class? What does everyone think?

I'll make a snipeet of this when its tidy! (and Refactored
properly :-)

John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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] Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Has anyone created filter select boxes using the new form framework?

What I mean by that is: 2 selects the first one (not linked to object)
filtering the second one (an object field)

For example:

If you have 3 tables - courses, venues and districts

When you create a course and select the venue, to reduce the list you
first select the district which via AJAX  retrieves a subset of venues
and re-populates the select box.

I could do this with the old form helpers but was wondering what would
be the best practice using the new framework.

Cheers,
John




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: Deployment Strategies

2009-07-09 Thread cleve

We're still using the symfony project sync, but an svn solution does
sound interesting. Few thoughts though...

When you do an svn checkuot to the production server how do you leave
out the files you don't want like databases.yml etc

Also what are advantages of using a checkout rather than export?

Also do you tag every deployment in SVN then checkout from there or
just CO from the trunk and note the revision number - I could imagine
copying the whole project to a tag every time could be a bit over the
top when you're deploying daily.


John

On Jul 9, 11:10 am, Gareth McCumskey  wrote:
> Well we are currently in Beta of a symfony development app and we originally
> used the symfony deploy command as it seemed (at the time) the easiest to
> use and allowed us to control when we update but it suffered from a few
> drawbacks where we had to push our local copies to the remote server and we
> could then be right in the middle of a fix for something else and hence have
> "broken" features.
>
> We switched to doing an SVN checkout. THis allowed us to control exactly
> what revision of our application was posted onto the Beta testing server
> (which some select clients have access to) and the Beta testers could also
> exactly define then which revision they were testing on making diagnosing
> bugs easier.
>
> Not to mention that ssh'ing onto the Beta test server and doing an svn up
> command was a lot easier than trying to rely on an rsync deploy... at least
> for us.
>
> In addition, we keep a frozen copy of the project in SVN. This means,
> obviously, we keep the application out of the web root directory and rather
> use Apache VirtualHost support to point to our symfony web/ directory. This
> means that we also have, at our disposal, the symfony command line tool on
> the remote box if we need it, but securely kept away from end users.
>
> On Thu, Jul 9, 2009 at 11:53 AM, Bernhard Schussek wrote:
>
>
>
>
>
> > Hi,
>
> > After an interesting discussion with Jon and Russ
> > (http://trac.symfony-project.org/ticket/6708) I would like to open a
> > follow-up thread.
>
> > What are your strategies for initial application deployment and for
> > delivering updates? Do you do a SVN checkout on the server or use the
> > project:deploy task? If you are using Doctrine, do you always write
> > migrations manually when making changes to the schema? What are the
> > reasons why you chose your deployment strategy?
>
> > I'm hoping for interesting reads :-)
>
> > Bernhard
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: How to install sfSimpleCMSPlugin in Symfony 1.2

2009-05-25 Thread cleve

I'd recommend this instead: 
http://www.symfony-project.org/plugins/pkContextCMSPlugin

 Doctrine though

On May 25, 8:07 am, Marek  wrote:
> I think you need to wait for sfSimpleCMS2Plugin being finished - it
> wasn't when I last checked.
>
> http://www.symfony-project.org/plugins/sfSimpleCMS2Plugin
>
> On 25. Máj, 04:54 h., "yalc...@gmail.com"  wrote:
>
> > Hi,
>
> > i'm trying to install  sfSimpleCMSPlugin in Symfony 1.2, but the
> > follow error is generated:
>
> >   You try to install a symfony 1.0
> > plugin.
> >   Please read the help message of this task to know how to install a
> > plugin for the current version of symfony.
>
> > I've been searching in groups and forums without success.
>
> > Thanks for your help,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: Symfony Extension: Sympal

2009-04-21 Thread cleve

Hey Jonathan,

Is there still a working demo for this some where?

John

On Apr 20, 7:52 pm, Pablo Godel  wrote:
> I've been following the progress of this project, it looks really
> nice. I hope to try it out pretty soon with one of my projects.
>
> Thanks for sharing.
>
> Pablo
>
> On Mon, Apr 20, 2009 at 2:14 PM, Jonathan Wage  wrote:
> > Hi,
>
> > Some of you have probably already heard a little bit about Sympal, but I'd
> > like to formally introduce you to it now.
>
> > Sympal is the product of dozens upon dozens of CMS type
> > websites/applications built on top of symfony. As I built each new project
> > with the same ideas, the implementation and structure of the system grew
> > strong. So, I decided to take those same ideas I had built over and over and
> > re-build it all again from scratch. The name "Sympal" was born through the
> > idea of having a Drupal-like interface built on top of Symfony. This idea
> > started as a small sfSympalPlugin and has grown to be a collection of Sympal
> > plugins that extend the entire Symfony platform to give you dozens of tools
> > at your finger tips to assist with rapidly building content based web
> > applications.
>
> > The development is still in the beta stages but the feature list for 1.0 has
> > pretty much been frozen. I am not in stability/bug fix mode and am beta
> > testing by building sites and having people/companies try it on projects as
> > well. You can help by doing the same :) and reporting any bugs you
> > encounter, as well as features you'd like to see in the next version. Below
> > are some links to get started with Sympal.
>
> >  - Website -http://www.sympalphp.org/
> >  - Trac -http://trac.jwage.com/sympal/
> >  - Documentation -http://www.sympalphp.org/documentation/en/
> >  - The Book -http://www.sympalphp.org/documentation/book/en
> >  - Sympal Plugins -http://www.sympalphp.org/plugins
> >  - Preview(screenshots and screencasts) -
> >http://www.sympalphp.org/preview/en
> >  - Features -http://www.sympalphp.org/features
>
> > Thanks, Jon
>
> > --
> > Jonathan H. Wage
> > Open Source Software Developer & Evangelist
> >http://www.jwage.com
> >http://www.doctrine-project.org
> >http://www.symfony-project.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-users@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: Linking to another Application

2009-04-08 Thread cleve

This might help:

http://www.symfony-project.org/cookbook/1_2/en/cross-application-links

or there is a plugin (not used it though)

http://www.symfony-project.org/plugins/omCrossAppUrlPlugin

On Apr 8, 7:40 am, Alireza  wrote:
> Hi,
> Is there any way to link to a module in another application of the
> same project using link_to1?
> 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-users@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: pkMediaPlugin released

2009-04-02 Thread cleve

Awesome thanks Tom!

On Apr 2, 3:33 pm, Tom Boutell  wrote:
> We've just released pkMediaPlugin.
>
> pkMediaPlugin provides five key services:
>
>     * A front end user interface for browsing, uploading, and managing
> media (still images and video).
>     * A front end user interface for selecting media and then
> returning the user to a specified URL within your application, passing
> on information about the selection the user made.
>     * A simple, RESTful API that accepts a query for information about
> one or more media items and returns everything your application needs
> to know about them in an easily understood JSON response.
>     * Efficient, 100% cached access to media that resides directly in
> the plugin (that is, all still images, and the thumbnails of videos).
> "100% cached" means that with the help of a few Apache directives
> these images will come directly from static files once they are first
> requested in a particular form. Note that this means you can request
> an image scaled and/or cropped to any size and then receive it
> instantly again in the future if you request the same size etc.
>     * Video, still image and slideshow "slots" for use with our CMS
> solution for Symfony, pkContextCMSPlugin. These slot implementations
> are great demonstrations of the selection interface and the API. But
> not everyone will want them, and we didn't want to make this plugin
> dependent on the CMS plugin. So they are kept in the separate plugin
> pkMediaCMSSlotsPlugin.
>
> The media plugin is designed to be useful in three situations:
>
>     * In the Symfony application in which the media plugin resides;
>     * In other Symfony applications accessing the media plugin via its APIs, 
> and
>     * In web applications that aren't written in Symfony, or even in
> PHP. These can also use the APIs to take full advantage of the plugin.
>
> We've focused most of our attention thus far on the first two
> scenarios, but due to our use of REST and JSON there is no reason why
> you can't utilize the media plugin from a separate site written in
> Ruby on Rails, or even .NET for that matter.
>
> ** BY FAR the easiest way to check it out is to pick up the cmstest
> project from pkContextCMSPlugin via svn, which demonstrates both
> plugins.
> ** Much easier than dealing with dependencies by hand. Don't suffer!
> See the pkContextCMSPlugin manual for more information
>
> pkMediaPlugin has been released under the MIT license.
>
> For more information check out the README (aka full-blown manual) for
> pkMediaPlugin:
>
> http://www.symfony-project.org/plugins/pkMediaPlugin
>
> --
> Tom Boutell
> P'unk Avenue
> 215 755 1330
> punkave.com
> window.punkave.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-users@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: Pre-set filter in admin generator

2009-03-24 Thread cleve

what about overriding the addSortCriteria method:

  protected function addSortCriteria($c)
  {
  //check to see if filter exists

  //if not add your own
  $c->add();

  parent::addSortCriteria($c);
  }

If anybodies got a cleaner method I like to know too?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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] admin: batch delete causes routing error - is not of type "object".

2009-03-05 Thread cleve

Symfony 1.2 (svn) with Propel

For a simple model I've generated an admin backend but when using the
batch delete I get:

The route "/depot/:action/action.:sf_format" is not of type "object".

It generated this route:

depot:
  class: sfPropelRouteCollection
  options:
model:Depot
module:   depot
prefix_path:  depot
column:   id
with_wildcard_routes: true


A normal delete on a single row works fine.

Any ideas?

John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: [ Export data To excel ]

2009-02-20 Thread cleve

I use Fabrice's HTML table formatted as Excel method, but also
consider 

or use http://www.kunalbabre.com/projects/table2CSV.php

On Feb 20, 10:58 am, Fabrice B  wrote:
> I know three solutions to do Excel exports.
>
>  - Csv
>
> It is in my opinion not an interesting one, unless your rows are
> already formatted into arrays. In that case implode(';',$row) might be
> interesting
>
>  - HTML table formatted as Excel
>
> This is a nice trick I once discovered. You can do a simple HTML table
> in your template, and just add the following lines to your action
>     $this->setLayout(false);
>     $response = $this->getContext()->getResponse();
>     $response->clearHttpHeaders();
>     $response->setHttpHeader('Content-Type', 'application/vnd.ms-
> excel;charset=utf-8');
>     $response->setHttpHeader('Content-Disposition:', 'attachment;
> filename=export.xls');
>
> Excel will open your html table as if it were an excel file and you
> will not see the difference
>
>  - PHPEscel
>
> If you want better formatting, include pictures, etc. then use the
> following very good class :http://www.codeplex.com/PHPExcel
>
> As for using the filters in your export, you will need to look in your
> cache folder at the auto-generated action of your admin generator and
> find the functions which create the criteria from the filters and call
> them from your own export action. This should work :
>
> public function executeExportExcel()
> {
>     $this->processSort();
>     $this->processFilters();
>     $this->filters = $this->getUser()->getAttributeHolder()->getAll
> ('sf_admin/bar/filters');
>     $c = new Criteria();
>     $this->addSortCriteria($c);
>     $this->addFiltersCriteria($c);
>
>     $this->objects_to_export = ObjectPeer::doSelect$c);
>
>     // if you use solution 2 :
>     $this->setLayout(false);
>     $response = $this->getContext()->getResponse();
>     $response->clearHttpHeaders();
>     $response->setHttpHeader('Content-Type', 'application/vnd.ms-
> excel;charset=utf-8');
>     $response->setHttpHeader('Content-Disposition:', 'attachment;
> filename=export.xls');
>
> }
>
> Fabrice
> --http://www.allomatch.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-users@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: Most developed CMS plugin using doctrine?

2009-01-27 Thread cleve

This sounds awesome Tom - look forward to seeing a beta

I'm always asked about Version roll-back functionality  - glad you've
got that in!

John

On Jan 14, 3:25 pm, "Tom Boutell"  wrote:
> We're speeding along on one right now and should have an early public
> beta in a couple weeks. Features of the forthcoming pkContextCMS
> include:
>
> * Use of Doctrine column aggregation inheritance to elegantly
> implement custom slot plugins with real database fields for storage,
> not "serialize/unserialize" as in sfSimpleCMSPlugin
> * Implementation of custom slots via modules in plugins, so that
> actions, components and partials can be used to implement them in a
> more natural way
> * Version rollback: all versions of a slot are kept and can be rolled back to
> * Undelete for pages
> * In-context management: the controls for creating, deleting and
> renaming pages are natural extensions of the breadcrumb trail, drag
> and drop reordering of child pages, etc.
> * Provision for columns containing variable numbers of slots; great
> when you want to mix text slots, media slots, etc. in a column without
> a whole new template for each combination
> * Provision for global slots (useful for editable sitewide footer
> areas, for instance)
>
> The design certainly owes quite a bit to sfSimpleCMS, while making
> quite a few departures from that as well.
>
> --
> Tom Boutell
>
> www.punkave.comwww.boutell.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-users@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: sfManagerPlugin teaser: build a CMS on top of your symfony application

2008-12-21 Thread cleve

Sylvain is the only developer on it but he's pretty active.

Theres also a group : http://groups.google.com/group/sfdynamiccms

The slot system you describe seems similar to his strategy.

John

On Dec 21, 1:12 pm, "Bernhard Schussek"  wrote:
> Hi John,
>
> No, I did not have a look at sfDynamicCMS, but what you're talking
> about seems very interesting. I'll have a look at it and maybe
> integrate my work there, if its developers are willing.
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: sfManagerPlugin teaser: build a CMS on top of your symfony application

2008-12-21 Thread cleve

Hi Bernhard,

That sounds very interesting :-)

Have you seen sfDynamicCMS? - seems very similar, although it doesn't
yet have front end editing.

Some things I really like about it:

Multiple menus.
Lots of permissions,  Access to page, Visible in menu + lots of
editing permissions you can set
The node concept, where you can either assign a page to it or edit the
routing for it to go to a bespoke module like news
Choose a template which are defined in app.yml
Easily add menus to bespoke modules
Very few db calls
Compatible with all versions of Symfony

But I think its lacking:

Frontend editing
Proper translations, currently uses different versions of the whole
node tree for different cultures
Be able to draft content, so you can check it on the site before going
live - also have this as a permission so a manager can approve it
Drag and drop node tree

One thing though is to try and support both Doctrine and Propel, maybe
use dbFinder? I wish symfony devs would just choose one - starting to
split the community :-)

Anyway look forward to seeing this.

John



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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: Admin generator in Symfony 1.1

2008-06-19 Thread cleve

Has anybody looked at Django's admin generator?

Just one word  .. Awesome, maybe we can steal their ideas for 1.2 :-)

- Dash board with all available admin modules listed, with nice
shortcuts
- Full history
- deletion confirmation page shows you all the related objects that
will be deleted
- Looks stunning

Symfony admin is still ace, use it nearly on all projects

John

On Jun 19, 9:22 am, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 19, 2008 at 9:43 AM, Dmitry Nesteruk <[EMAIL PROTECTED]> wrote:
> > Why symfony 1.1 is using old implementation which used  symfony 1.0? Is
> > exist new implementation for symfony 1.1?
>
> Planned for 1.2. Anyway, give a look at the propel:generate-crud task,
> it can really really help.
>
> ++
>
> --
> Nicolas 
> Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com
> Phone: +33 660 92 08 76
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Propel : onDelete/casade and parent attached media

2008-05-12 Thread cleve

Are you still calling the parent delete function after removing the
files?

On May 12, 8:26 am, nico_bl1nd <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm working on two related tables : article/media.
> "onDelete: cascade" work like a charm. But I would the media files to
> be deleted to.
> Where should this part of the code be integrated ? I though it would
> in the Media.php/delete function, but it doesn't work.
> Any idea ?
>
> thanks a lot.
> Nicolas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony CMSes

2008-04-29 Thread cleve

Ok I've successfully managed to install sfDynamicCMS!

However all the generated urls seem to be in the form:

 /page/show/url/about instead of just /about

I thought this was because of the symfony default rules I left in
routing.yml so I deleted them (as suggested by the instructions) but
then I get the error:

Unable to find a matching routing rule to generate url for params
"array ( 'module' => 'page', 'action' => 'show', 'url' => 'about', )".



Any ideas?



On Mar 24, 2:55 pm, Eugene Leonovich <[EMAIL PROTECTED]> wrote:
> sfDynamicCMS plugin looks interesting, but I have some difficulties
> while installing them :(
>
> When I tried to follow the link "http://myproject/backend_dev.php/
> sfDynamicCMSAdmin", I encountered an error:
> Fatal error: Call to a member function getEditorCredentials() ...
>
> To correct this error, I created an entry for a table
> `sf_dynamic_cms_nav` manually:
> INSERT INTO `sf_dynamic_cms_nav` (`name`, `application`, `culture`)
> VALUES ('myapp', 'frontend', 'en');
>
> Then, I tried to create a new navigation element in 'myapp' version,
> but a new error was encountered:
> Unable to execute INSERT statement. [wrapped: Could not execute update
> [Native Error: Cannot add or update a child row: a foreign key
> constraint fails (`fxc/sf_dynamic_cms_node`, CONSTRAINT
> `sf_dynamic_cms_node_FK_1` FOREIGN KEY (`tree_parent`) REFERENCES
> `sf_dynamic_cms_node` (`id`))] [User Info: INSERT INTO
> sf_dynamic_cms_node
> (TREE_LEFT,TREE_RIGHT,TREE_ID,CREATED_AT,UPDATED_AT) VALUES
> (1,2,1,'2008-03-24 09:18:34','2008-03-24 09:18:34')]]
>
> Could you help me to fix this errors?
> Also, it would be good to attach some fixtures in a plugin.
>
> My environment are:
> PHP 5.2.3
> mySQL 5.0.21
> symfony 1.0.13-PRE
> sfDynamicCMSPlugin-0.1.1
>
> On Mar 21, 11:33 am, Sylvain - Com-Océan <[EMAIL PROTECTED]>
> wrote:> Hi I'm the developper of sfDynamicCMSAdmin
>
> > This project is in version 0.1.1 since some days, a lot of things still
> > have to be done... More over, it is more complex to use and to install
> > than others because it is not a "turnkey solution", you have to extends
> > your module, design your menu (components) and templates.
> > On the other hand, I might permits more flexibility. CMS features are
> > basics at this time.
>
> > You can send me access => write me at [EMAIL PROTECTED]
>
> > --
> > Sylvain Papet - Développeur Web
> > Agence de communication Com-Océanwww.com-ocean.com/+33 4 90 66 48 82
>
> > Ian P. Christian a écrit :
>
> > > cleve wrote:
>
> > >> Awesome idea Ian.
>
> > >> There's this one too:
> > >>http://trac.symfony-project.com/wiki/sfDynamicCMSPlugin
>
> > >http://www4.pookey.co.uk/backend_dev.php/sfDynamicCMSAdmin
>
> > > I've failed to get that one working. If the developer of this module
> > > wants to contact me, I'll talk to them of give htem SSH access to the
> > > site to setup a demo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony CMSes

2008-03-24 Thread cleve

Sylvio,

As you install your new cms tomorrow is there any chance you can note
down and publish the steps you take to get it installed?

Also are the slot types inter-changeable with sfSimpleCMS?


Thankyou!
John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony CMSes

2008-03-24 Thread cleve

Thanks Ian,

That's really useful.

Any luck with sfDynamicCMS plugin? I see sylvio has released a new
version this morning.




On Mar 23, 6:07 pm, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
> Ian P. Christian wrote:
> > Hi all,
>
> sfSimpleCMS
>
> http://www5.pookey.co.uk/frontend_dev.php/cms/homehttp://www5.pookey.co.uk/frontend_dev.php/sfSimpleCMSAdmin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony talk in London - Feb 29th

2008-01-23 Thread cleve

Hi Ian,

We're a UK (Midlands) based company using Symfony called Yelloweb.
Currently we have 2 full time developers working with symfony.

If you need any more info feel free to get in touch.

Our site:
http://www.yelloweb.co.uk
Our logo:
http://yelloweb.co.uk/assets/templates/images/logo_large_32.png

Good luck with your presentation!

All the best,
John Cleveley


On Jan 12, 1:21 pm, Stefan Koopmanschap <[EMAIL PROTECTED]> wrote:
> Hi Ian,
>
> We at Ibuildings are are working with symfony, among other frameworks.
> Currently only in dutch projects, but our UK office definitely also is
> looking at each project to see which framework fits best. So even
> though in the UK we are not yet using symfony, we are definitely
> supporting symfony and when a good occasion comes, we will definitely
> be moving from supporters to users there as well.
>
> I hope this helps. Feel free to use the logo fromwww.ibuildings.com
> :)
>
> Sincerely,
>
> Stefan
>
> On Jan 10, 2:19 pm, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
>
> > At the PHPLondonconferencethis year, I will be doing a talk on symfony.
>
> > I write here for 2 reasons:
>
> > Firstly, I will be covering employment of symfony developers - I would
> > like to know from companies using symfony, and how many developers they
> > employ - in exchange your logo will appear on a slide, free publicity!
>
> > Secondly, if anyone has any presentation material they want to share,
> > please feel free to send it on to me :)
>
> > Thanks,
>
> > --
>
> > Ian P. Christian ~http://pookey.co.uk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: mod_rewrite on my production server

2007-10-28 Thread cleve

settings.yml
--

prod:
  .settings:
no_script_name:   on

dev:
  .settings:
# E_ALL | E_STRICT = 4095
error_reporting:4095
web_debug:  on
cache:  off
no_script_name: off
etag:   off

staging:
  .settings:
# E_ALL | E_STRICT = 4095
error_reporting:4095
web_debug:  on
cache:  on
no_script_name: off
etag:   off

test:
  .settings:
# E_ALL | E_STRICT & ~E_NOTICE = 2047
error_reporting:2047
cache:  off
web_debug:  off
no_script_name: off
etag:   off

all:
 .actions:
   login_module:   sfGuardAuth
   login_action:   signin
   secure_module:  default   # To be called when a user
doesn't have
   secure_action:  secure# The credentials required for an
action
 .settings:
   enabled_modules:[default, sfGuardAuth, sfGuardUser,
cryptographp, sf$
   escaping_strategy: bc
   #escaping_method: ESC_ENTITIES


On Oct 28, 8:06 pm, "Amit Rana" <[EMAIL PROTECTED]> wrote:
> can you also post frontend's settings.yml?
>
> On 10/28/07, cleve <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi everyone,
>
> > Im having real trouble trying to get URL Rewriting working on my
> > redhat apache2 prod server.
>
> > When going to:
> >http://fuzzed/static/watch
>
> > it just displays
> > "Not Found
> > The requested URL /chart was not found on this server."
>
> > Buthttp://fuzzed/index.php/static/watchworks fine.
>
> > mod_rewrite is built-in so don't need to load it,  it comes up on
> > phpinfo() so is definatly there.
>
> > Any help would be much appreciated!
>
> > John Cleveley
>
> > Here's my configs...
>
> > .htaccess -  tried messing with permissions but still no go
> > ---
>
> > Options +FollowSymLinks +ExecCGI
>
> > 
> >   RewriteEngine On
>
> >   # uncomment the following line, if you are having trouble
> >   # getting no_script_name to work
> >   RewriteBase /
>
> >   # we skip all files with .something
> >   RewriteCond %{REQUEST_URI} \..+$
> >   RewriteCond %{REQUEST_URI} !\.html$
> >   RewriteRule .* - [L]
>
> >   # we check if the .html version is here (caching)
> >   RewriteRule ^$ index.html [QSA]
> >   RewriteRule ^([^.]+)$ $1.html [QSA]
> >   RewriteCond %{REQUEST_FILENAME} !-f
>
> >   # no, so we redirect to our front web controller
> >   RewriteRule ^(.*)$ index.php [QSA,L]
> > 
>
> > # big crash from our front web controller
> > ErrorDocument 500 "Application errorsymfony application
> > failed
> > to star$
>
> > virtual host - at end of httpd.conf
> > ---
>
> > 
>
> >ServerName fuzzed:80
> >DocumentRoot /home/html/fuzzed/web
> >DirectoryIndex index.php
> >#Using simlink for sf files
> >#ErrorLog /var/log/apache2/error.log
> >#CustomLog /var/log/apache2/access.log combined
>
> >
> >  AllowOverride All
> >  Allow from All
> >   
>
> >
> >  AllowOverride All
> >  Allow from All
> >
>
> > 
>
> --
> w:www.techjini.com|www.valuejini.com|www.techjini.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-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] mod_rewrite on my production server

2007-10-28 Thread cleve

Hi everyone,

Im having real trouble trying to get URL Rewriting working on my
redhat apache2 prod server.

When going to:
http://fuzzed/static/watch

it just displays
"Not Found
The requested URL /chart was not found on this server."

But http://fuzzed/index.php/static/watch works fine.

mod_rewrite is built-in so don't need to load it,  it comes up on
phpinfo() so is definatly there.

Any help would be much appreciated!

John Cleveley

Here's my configs...

.htaccess -  tried messing with permissions but still no go
---

Options +FollowSymLinks +ExecCGI


  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]


# big crash from our front web controller
ErrorDocument 500 "Application errorsymfony application
failed
to star$

virtual host - at end of httpd.conf
---



   ServerName fuzzed:80
   DocumentRoot /home/html/fuzzed/web
   DirectoryIndex index.php
   #Using simlink for sf files
   #ErrorLog /var/log/apache2/error.log
   #CustomLog /var/log/apache2/access.log combined

   
 AllowOverride All
 Allow from All
  

   
 AllowOverride All
 Allow from All
   




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: customize sfGuardDoctrine

2007-10-03 Thread cleve

As far as I know the only way to add extra information about a user is
to create an extra table. Pretty good instructions on the plugin wiki

http://trac.symfony-project.com/wiki/sfGuardPlugin#CustomizethesfAuthUsermodel

John

On Oct 3, 2:49 pm, Bjorn Wijers <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to expand the sfGuardDoctrine datamodel with an email
> column. How can I achieve this without changing the original schema? I
> tried copying the schema into my app's config/doctrine/schema.yml, but
> it seems the plugin is overriding this one.
>
> Any help much appreciated!
>
> grtz
> BjornW


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---