[symfony-users] perform global logic check in admin rather than in each action

2010-10-24 Thread Joshua
I have an admin application with various modules set up. In one of the modules a user can schedule an "import" can often take a considerable amount of time to complete. While the import is running, no changes should be made to the database. I'm looking for a solution to lock down the admin while t

[symfony-users] perform symfony task function in module action

2010-10-18 Thread Joshua
I'm using Symfony's Tasks to run cronjobs at periodic times. There is a need to perform the same functions manually in the admin application. Looking for suggestions how to do this properly. Obviously, I would prefer not to have duplicate code, one in the Task class and one in the Action class. Ple

[symfony-users] code execution in action vs lib model

2010-09-09 Thread Joshua
Any help appreciated. There are no errors anywhere in these processes. Permissions are correct. In the action, the file is downloaded: public function executeDownloadfile(sfWebRequest $request) { //download feed file $connection = ssh2_connect($ftp_server, 22); ssh2_au

[symfony-users] Re: organizing partials in folders

2010-08-26 Thread Joshua
andard Partial helper in the settings.yml > 2. Copy the partial helper from the symfony lib and adjust to suit > your needs.  You will probably want to create a new view class that > inherits from sfParialView > > Good luck with it... > > James > > On Aug 24, 6:06 pm,Joshua w

[symfony-users] Re: organizing partials in folders

2010-08-24 Thread Joshua
Thanks Alex. I have tried all ways to pass the include path. I think now Symfony does not support partials in folders. This is very dumb and a big problem for Symfony. It should be supported. On Aug 21, 5:57 am, Alexandre Salomé wrote: >   He is looking for a module "folder". Try setting explici

[symfony-users] organizing partials in folders

2010-08-19 Thread Joshua
include_partial("headline_news"); How can I do this with partial _headline_news.php inside a folder within templates? If I try something like project_root/apps/frontend/modules/some_module/templates/folder/ _headline_news.php Then in the template index include_partial("folder/headline_news"); Th

[symfony-users] Ajax Forms

2010-08-17 Thread Joshua Estes
A picture is worth a thousand words, so I attached one. My idea is to create an Ajax form. As you can see from the image this is a very basic form. The one I will make would be slightly more complex. The code is all in the filter forms. What I am wanting to do with this is each group, users will b

[symfony-users] Base URL

2010-08-15 Thread Joshua Estes
I have a few different projects that are in sub directories. I'm trying to generate a url with an image in it. So the base url would be http://www.site.com/project/web The image is in the sf_upload_dir (http://www.site.com/project/web/uploads/image.png) How do I get the base URL with no script na

Re: [symfony-users] suffix to links on page

2010-08-03 Thread Joshua Estes
that should point you in the right direction. - Joshua Estes -= Contact Me =- Google Voice: 567-482-0034 or JOSHUA-0034 Cell:               423-432-7562 -= Web Sites =- http://www.ScenicCityLabs.com - Making the internet pretty! -= Twitter =- @JoshuaEstes @ScenicCityLabs On Tue, Aug 3, 2010

Re: [symfony-users] Symfony 1.4 and PayPal

2010-08-03 Thread Joshua Estes
You would need to create a custom module/action for your project, (suggest that you do this all as plugin for reuse with other projects you do) and then point the form action to the module/action, i.e.: url_for('module/action') - Joshua Estes -= Contact Me =- Google Voice: 567-482-0034

Re: [symfony-users] load to include_partial without using action

2010-08-03 Thread Joshua Estes
Look into components. I've done something similar on a few of my web sites. - Joshua Estes -= Contact Me =- Google Voice: 567-482-0034 or JOSHUA-0034 Cell:               423-432-7562 -= Web Sites =- http://www.ScenicCityLabs.com - Making the internet pretty! -= Twitter =- @Joshua

Re: [symfony-users] Re: sfDoctrineGuardPlugin doesn't redirect to the referrer page

2010-07-28 Thread Joshua Estes
Yup, that's the setting I was talking about, sorry I didn't look up more info for you but I'm on my phone so its a little harder ;p In the code it checks to see if that setting has anything in it. If it does then it uses the route you entered, if not then it just uses the referrer page. On Jul 28

Re: [symfony-users] sfDoctrineGuardPlugin doesn't redirect to the referrer page

2010-07-27 Thread Joshua Estes
If you have the setting set to redirct to a certain route once user logs in it will do this. On Jul 27, 2010 11:15 AM, "Javier Garcia" wrote: Hi, I have just installed sfDGP and activated the security on my web app so when i write an URL the authentication form appears. The problem: after log

Re: [symfony-users] CCBill or Epoch Plugins

2010-07-24 Thread Joshua Estes
Yeah, I haven't tried any of the payment plugins but I want to build a site that requires a membership fee/monthly fee. Do to the nature of the site, it conflicts with paypal tos. :( On Jul 23, 2010 4:24 PM, "Gustavo Adrian" wrote: I've just seen prestaPaypalPlugin ( http://www.symfony-project.

Re: [symfony-users] Conditional based redirects

2010-07-23 Thread Joshua Estes
Could you set a user attribute during step 1 and on your last step it checks for that and sends user to the url? On Jul 23, 2010 3:49 AM, "Daniel Kucharski" wrote: Hi, Sometimes I find myself often in a situation where I need to redirect from a given action based on how the current action wa

Re: [symfony-users] Facebook style multi-select widget

2010-07-21 Thread Joshua Estes
Not that I am aware of. The only thing I have seen that comes close to this is the jquery autocomleter in the form extra plugin. You could modify that widget to do this. I have done something like this, but it just extends the widget and adds a delete icon to it. On Jul 21, 2010 9:20 PM, "Richterm

Re: [symfony-users] forward404Unless() problem

2010-07-17 Thread Joshua Estes
You should prolly do some validation on "id" and you don't need limit or order by. You are prolly trying to get something like the title by doing $this->articles->getTitle() which won't work because you return a doctrine collection instead of a doctrine record. Check in fetchOne. In fact you shoul

Re: [symfony-users] Show in admin

2010-07-17 Thread Joshua Estes
What do you mean by show? I have never used the jroller theme. I always just use the default theme. On Jul 17, 2010 2:47 AM, "sieboje" wrote: Hi, What is the easiest way to create show action and template on the backend side of application? I have been using jroller theme for backend applicati

Re: [symfony-users] Re: how can I get url without parameters in view ?

2010-07-16 Thread Joshua Estes
You can use $sf_request->get('module') and $sf_request->get('action') Not sure the reason you need to get them in a view, breadcrumbs maybe? On Jul 16, 2010 8:28 AM, "Eno" wrote: On Thu, 15 Jul 2010, alexmm wrote: > I would like to have universal template for pagintion - so I n... You can use

[symfony-users] Re: using addMeta() for facebook

2010-05-11 Thread Joshua
that was the answer, simple. thank you! On May 11, 7:22 am, "chane...@gmail.com" wrote: > Hi, > > I think it is possible to use a slot as a work around for that. > Do you achieve to find another solution ? > > Regards > > On May 10, 9:48 pm, Joshua

[symfony-users] using addMeta() for facebook

2010-05-10 Thread Joshua
I need to include in the header for the facebook Like button. I don't know the page title until after the module action executes. The method only accounts for the traditional name and content meta parameters. $this->getResponse()->addMeta('description', 'Finance in France'); Any ideas? --

[symfony-users] Re: doSelect array result converted to ArrayDecorator in template

2010-04-22 Thread Joshua
ta retrieving or manipulation > in your templates. You should do this in your controller and pass the value > you want to your views. > > - Jon > > > > On Thu, Apr 22, 2010 at 5:24 PM, Joshua wrote: > > > symfony version 1.4.4 > > > In the action class I&#x

[symfony-users] doSelect array result converted to ArrayDecorator in template

2010-04-22 Thread Joshua
symfony version 1.4.4 In the action class I'm doing $this->var = ClassPeer::doSelect($c); When I print_r($this->var) it is an array but in the indexSuccess.php template it is sfOutputEscaperArrayDecorator Object In the template when I try to unset($var[$x]); I get escape error [22-Apr-2010 21

[symfony-users] Re: organizing partials in folders

2010-04-16 Thread Joshua
god i freaken hate these group nonsense. why can't symfony guys spring for a real forum? mistake in directory, should be project_root/apps/frontend/modules/some_module/templates/folder/ _headline_news.php On Apr 16, 5:53 pm, Joshua wrote: > I'm doing this from a module. I would wan

[symfony-users] Re: organizing partials in folders

2010-04-16 Thread Joshua
I'm doing this from a module. I would want the partial directory to be something like project_root/apps/frontend/modules/templates/folder/_headline_news.php On Apr 16, 5:51 pm, Joshua wrote: > include_partial("headline_news"); > > How can I do this with partial _headline_

[symfony-users] organizing partials in folders

2010-04-16 Thread Joshua
include_partial("headline_news"); How can I do this with partial _headline_news.php inside a folder within templates? If I try include_partial("folder/headline_news"); The template "_headline_news.php" does not exist or is unreadable in "". -- If you want to report a vulnerability issue on symf

[symfony-users] Re: ideas for development architecture in symfony

2010-03-04 Thread Joshua
Thanks but Apostrophe still doesn't do it for me. I'm looking for specific code implementation suggestions from developers. On Mar 4, 1:50 am, Alexandru-Emil Lupu wrote: > Apostrophe is symfony based > > > > On Thu, Mar 4, 2010 at 7:11 AM, Joshua wrote: > >

[symfony-users] Re: ideas for development architecture in symfony

2010-03-03 Thread Joshua
Thanks daniel. There are a lot of CMS' that use similar approaches, but specifically looking for a symfony one. On Mar 3, 4:53 pm, Daniel Lohse wrote: > This sounds a lot like Apostrophe's architecture! > Seehttp://www.apostrophenow.com/ > > Daniel > > On 03.03.

[symfony-users] ideas for development architecture in symfony

2010-03-03 Thread Joshua
I'm working on the following architecture for a site running symfony. Seeking ideas and input for the best way this might be implemented on a symfony platform. Blocks * Right now I am using the name block for lack of available nomenclature. You could also refer to these as modules, widgets, co

[symfony-users] Re: how to set up and configure memcache?

2010-02-09 Thread Joshua
> http://www.doctrine-project.org/documentation/manual/1_2/en/caching > &http://www.symfony-project.org/book/1_2/18-Performance > > Am 08.02.10 17:29, schrieb Joshua: > > > Blogs blogs blogs. How am I supposed to know where to find these > > things short of a google search? &

[symfony-users] symfony memcache support by default?

2010-02-08 Thread Joshua
Does symfony come with any level of support for memcache out of the box? One of our sites was brought down from an influx of traffic from email blasts. Monitoring the slow query log, I made some changes to a few propel queries. That relieved a lot of the stress, the site went from crashed to slugg

[symfony-users] Re: how to set up and configure memcache?

2010-02-08 Thread Joshua
ure memcache for  the view   > cache or how you can handle memcache using within a singleton using it   > for > everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ > > Frank > > Am 08.02.2010 um 05:05 schrieb Joshua: > > > My end goal here is to h

[symfony-users] Re: how to set up and configure memcache?

2010-02-08 Thread Joshua
t   > for > everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ > > Frank > > Am 08.02.2010 um 05:05 schrieb Joshua: > > > My end goal here is to have propel queries be memcached so common > > queries do not need to be constantly run. >

[symfony-users] Re: how to set up and configure memcache?

2010-02-07 Thread Joshua
My end goal here is to have propel queries be memcached so common queries do not need to be constantly run. On Feb 7, 11:04 pm, Joshua wrote: > I have searched and read and searched but I can't find any clear > documentation to set this up for symfony 1.2+. Apparently there are >

[symfony-users] how to set up and configure memcache?

2010-02-07 Thread Joshua
I have searched and read and searched but I can't find any clear documentation to set this up for symfony 1.2+. Apparently there are configurations that need to be added to yml files and other things. Where can I go to read about how to do this? -- You received this message because you are subscr

[symfony-users] execute module through php command line

2009-12-28 Thread Joshua
I've set up a module in my frontend application and the actions.class.php has different functions intended to be run in a cron. I can run these functions in the browser by going to the path domain.com/cron_module/function How can I set this up command line so a cron can run these functions? -- Y

[symfony-users] sfPropelPager bug

2009-09-27 Thread Joshua
symfony version 1.2.8 (/usr/share/pear/symfony) Below is my query. The pager produces incorrect pagination results. The data isn't all that important. What is important the pager produces the wrong offset when it is not being sorted by ID. The second page will contain elements from the first pag

[symfony-users] sf/sf_default does not exist

2009-05-19 Thread Joshua
I recently took over a symfony project that had already been built. I can't make sense of the setup they are using here. How do I get symfony to recognize the simple "reports" module? There is a backend application with module "reports" with no designation in the schema. This module includes noth

[symfony-users] validate/send.yml not working

2009-04-01 Thread Joshua
i have this in apps/frontend/modules/module_name/validate/send.yml When I leave first_name blank I still get the standard Required. error. Cache cleared fillin: enabled: true validators: myStringValidator: class: sfStringValidator param: min: 2 min_error: This

[symfony-users] Re: Graceful fail on saving new objects

2009-04-01 Thread Joshua
http://www.symfony-project.org/plugins/tbDuplicateKeyPlugin On Apr 1, 1:09 pm, Joshua wrote: > No I disagree. The application should be able to provide this > assistance for me. I shouldn't have to make these checks in every > instance every time. That puts a lot of respons

[symfony-users] Re: Graceful fail on saving new objects

2009-04-01 Thread Joshua
> 2) Add a try catch block around the statement and recover > > Also consider using autonumber fields for your Id's, so you don't need > to calculate them. > > Steve > > On Mar 25, 5:20 pm, Joshua wrote: > > > $SomeClass= new SomeClass(); > > $SomeC

[symfony-users] Unable to open PDO connection

2009-03-31 Thread Joshua
I'm trying to move my project to the production server and its having trouble connecting to the remote database. The development server used localhost. [Tue Mar 31 18:40:34 2009] [error] [client xx.xx.xx.xx] Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2003] Can't connect to MySQL ser

[symfony-users] Re: can't install symfony via pear

2009-03-31 Thread Joshua
I deleted /usr/share/PEAR and reinstalled pear that fixed it --~--~-~--~~~---~--~~ 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 fr

[symfony-users] Re: can't install symfony via pear

2009-03-31 Thread Joshua
also [root@ ]# /usr/share/bin/pear uninstall symfony/symfony-1.2.2 No package to uninstall given --~--~-~--~~~---~--~~ 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

[symfony-users] can't install symfony via pear

2009-03-31 Thread Joshua
[root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2 this gave me a PHP fatal error memory exhausted. i updated php.ini memory_limit to 32MB then restarted [root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2 Ignoring installed package symfony/symfony Nothing to install [root@ ]# /

[symfony-users] Graceful fail on saving new objects

2009-03-25 Thread Joshua
$SomeClass= new SomeClass(); $SomeClass->setId($number); $SomeClass->save(); In this example if column ID is unique and there is already a row with ID $number then trying to save this object will get an SQL Insert rejection and crap the page. Following this futher... foreach($numbers as $numbe

[symfony-users] symfony errors to display line numbers

2009-03-02 Thread Joshua
one of my actions.classes generates the following error Call to undefined method BaseWhatever::getId() Most symfony errors show up in the logs like this and I have no idea where it originated from. Is there a way to setup a trace or display the line numbers? --~--~-~--~~---

[symfony-users] MYSQL errors importing DB backup after rebuilding model with deleted columns

2009-03-01 Thread Joshua
So I take out some columns from a table in the schema and rebuild my symfony project model. Before rebuilding I backup the database. When I try to import the DB after rebuilding I get an error ERROR 1054 (42S22) Unknown column 'whatever' in 'field list' Is there a mysql command to ignore missing

[symfony-users] Re: Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Yay I figured it out on my own $c->addHaving($c->getNewCriterion(MlVideoPeer::ID, 'votecount<=10', Criteria::CUSTOM)); On Feb 28, 1:06 pm, Joshua wrote: > Sorry above example should be > > while($video = $videos->fetch(PDO::FETCH_ASSOC)) > > On Feb 28, 1:0

[symfony-users] Re: Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Sorry above example should be while($video = $videos->fetch(PDO::FETCH_ASSOC)) On Feb 28, 1:05 pm, Joshua wrote: > Propel 1.3 symfony 1.2.2 > > I have gotten this far with custom columns > > $c= new Criteria(); > $c->addAsColumn('votecount', 'C

[symfony-users] Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Propel 1.3 symfony 1.2.2 I have gotten this far with custom columns $c= new Criteria(); $c->addAsColumn('votecount', 'COUNT ('.MlVideoVotesPeer::ML_VIDEO_ID.')'); $videos = MlVideoPeer::doSelectStmt($c); while($route = $featuredRoutes->fetch(PDO::FETCH_ASSOC)) { } This allows me to access vote

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread Joshua
Oh nevermind that is my symfony version, Propel is 1.3 I suppose On Feb 28, 10:59 am, Joshua wrote: > OMG it works! THANK YOU. All I needed was ->fetch(PDO::FETCH_NUM) > > I am actually using 1.2.2, couldn't tell you either way about why what > wasn't working. So much

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread Joshua
x27;s facing: > > PHP Fatal error:  Call to undefined method RoutesPeer::doselectrs() > in /apps/frontend/modules/route/actions/actions.class.php on line 39 > > So I've made the conclusion that he uses Propel 1.3. > > Joshua, 1 000 000 dollars question to you: > > What

[symfony-users] Re: How to access a custom added column in propel?

2009-02-27 Thread Joshua
On Feb 27, 6:51 pm, Eno wrote: > On Fri, 27 Feb 2009, Joshua wrote: > >    $c = new Criteria(); > >    $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode

[symfony-users] How to access a custom added column in propel?

2009-02-27 Thread Joshua
$c = new Criteria(); $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('. $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 18

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Joshua
, I'm not entirely sure how you'd do this - interested to hear   > responses. > > I guess you'd use the generated models only for creating, updating and   > deleting - for reading you'd probably want to use raw SQL. > > On 27 Feb 2009, at 21:28, Eno wrote: >

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Joshua
On Feb 27, 3:07 pm, Eno wrote: > On Fri, 27 Feb 2009, Joshua wrote: > > I don't necessarily need this table defined in schema.yml because it > > will just be used by propel as a lookup for the long/lat values. I > > suppose I still have to define it in schema.

[symfony-users] Creating DB tables for use outside schema

2009-02-27 Thread Joshua
I have a table that stores zip codes with their corresponding longitude and latitudes to use in calculations of distance between two points. I don't necessarily need this table defined in schema.yml because it will just be used by propel as a lookup for the long/lat values. I suppose I still have

[symfony-users] Proper way to handle file uploads in 1.2

2009-02-18 Thread Joshua
I can't find any good examples in the documentation on how to address this. It used to be files were handled in this way but most of those functions are now deprecated: http://www.symfony-project.org/cookbook/1_0/en/upload A Google code search shows people don't seem to be following any particul