This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Today's Messages (OFF)  | Unanswered Messages (ON)

Forum: symfony 1.0
 Topic: Question about path changes in config.php
Question about path changes in config.php [message #16816] Wed, 29 November 2006 22:02
carpal  is currently offline carpal
Messages: 58
Registered: April 2006
Location: Philadelphia
Member
I'm wondering why the new global project config.php has the path to the data and lib directories hard coded in. It's nice that those variables don't need to be redefined for each app, but I liked how the previous version allowed more flexibility between dev and production servers by utilizing symlinks and the symfony/pear.php file. I've thought about either recreating the old setup myself or just adding myproject/config.php to my rsync_exclude.txt file, but since there is no documentation on this process for 1.0 yet, I thought I would try and get an idea of the best practice here from someone else's perspective.

Thanks in advance for any enlightenment.
 Topic: updateClassnameFromRequest in admin generator
updateClassnameFromRequest in admin generator [message #16949] Thu, 30 November 2006 23:02
danek  is currently offline danek
Messages: 7
Registered: March 2006
Location: Poznan Poland
Junior Member
I was not following the development since version 0.6.3 so I am not sure if this is supposed to be the default behaviour now.

After upgrade to 1.0 beta 1 method updateClassnameFromRequest in admin actions is executed prior to input validation and not after as it was in 0.6.3. I was using this method to update i18n information for my object, and it requires something like

$this->object->setCulture('en');
$this->object->setTitle($this->getRequestParameter('title_en'));
$this->object->save();

$this->object->setCulture('de');
$this->object->setTitle($this->getRequestParameter('title_de'));
$this->object->save();


I am not sure if this the right approach to this issue but I found it worked for me for quite a while. However right now, even if these fields are not filled in, my object information is saved, before the validation kicks in. It results in creating empty database entries, as save can be executed without properties properly validated and set to object.

Should I change my approach or is it a bug?

I was using partials to generate title_en and title_de inputs in template.
 Topic: sfFeed installation
sfFeed installation [message #17026] Fri, 01 December 2006 15:46
dododododo  is currently offline dododododo
Messages: 18
Registered: May 2006
Junior Member
Has anybody tried to install sfFeed (or sfFeed-1.0.0, sfFeed-1.2.0 , sfFeed-1.0.10)?

It requires the symfony version be at least 6.x.x.

What should I do?

I also tried installing sfFeedPlugin, but doesn't seem to be installed.

here is what I did:

> symfony plugin-install http://plugins.symfony-project.com/sfFeedPlugin
X-Powered-By: PHP/5.1.6
Content-type: text/html

>> plugin    installing plugin "http://plugi...mfony-project.com/sfFeedPlugin"
>> pear      downloading sfFeedPlugin-1.2.0.tgz ...
>> pear      Starting to download sfFeedPlugin-1.2.0.tgz (6,052 bytes)
>> pear      ..
>> pear      ...done: 6,052 bytes
>> pear      WARNING: channel "pear.symfony-....symfony-project.com" to update
>> pear      Failed to download symfony/symf.../symfony-1.0.0beta1" to install
>> pear      install ok: channel://pear.symf...-project.com/sfFeedPlugin-1.2.0
 Topic: Plugin handling
Plugin handling [message #17031] Fri, 01 December 2006 16:21
dante  is currently offline dante
Messages: 157
Registered: July 2006
Location: Germany
Senior Member

Plugin handling does not seem to work in general with my installation. I succesfully installed symfony beta 1.0.0 and created a new project called "test". When I go that directory and execute a simple "symfony plugin-list", I get the following output:

M:\Projekte\Symfony\test>symfony plugin-list
Installed plugins:
>> dir+      M:\Projekte\Symfony\test\plugins/.channels/.alias

Warning: file_put_contents(M:\Projekte\Symfony\test\plugins/.channels/pear.symfo
ny-project.com.reg): failed to open stream: No such file or directory in C:\wamp
\php\PEAR\data\symfony\tasks\sfPakePlugins.php on line 214

Warning: file_put_contents(M:\Projekte\Symfony\test\plugins/.channels/.alias/sym
fony.txt): failed to open stream: No such file or directory in C:\wamp\php\PEAR\
data\symfony\tasks\sfPakePlugins.php on line 215
>> dir+      M:\Projekte\Symfony\test\plugin...hannel.pear.symfony-project.com
 Archive_Tar                                   1.3.1-stable # pear.php.net (pear
)
 Console_Getopt                                  1.2-stable # pear.php.net (pear
)
 PEAR                                          1.4.9-stable # pear.php.net (pear
)
 PhpDocumentor                              1.3.0RC6-beta   # pear.php.net (pear
)
 phing                                         2.1.1-stable # pear.php.net (pear
)
 symfony                                  1.0.0beta1-beta   # pear.symfony-proje
ct.com (pear.symfony-project.com)


So I get warnings and a list of installed PEAR packages, but no plugin list. Any idea?

 Topic: defaultLayout rely on Escaping
defaultLayout rely on Escaping [message #17101] Sat, 02 December 2006 02:29
fbaligant  is currently offline fbaligant
Messages: 43
Registered: February 2006
Location: Paris, France
Member
http://www.symfony-project.com/trac/browser/trunk/data/modul es/default/templates/defaultLayout.php

<?php echo $sf_data->getRaw('sf_content') ?>

the new default layout needs escaping to be activated.

If escaping is globally disabled in the application's view.yml, the $sf_data object doesnt exist:

escaping:
strategy: off

The symfony upgrade command should warn about escaping behind globally disabled or the default layout needs to work without escaping if possible.

Symfony 0.6.3's default layout doesnt need escaping to be actived.
 Topic: Upgrading sf_admin images path
Upgrading sf_admin images path [message #17268] Mon, 04 December 2006 17:33
jakuza  is currently offline jakuza
Messages: 54
Registered: December 2005
Member
Hi everyone,
first I think congratulations are due: we got a stable release guys! Wink Thanks to Fabien, François and all the rest.

Straight to the core:
lots of upgrade actions performed by the script are about changing the sf_admin images folder into sf_prototype_web_dir, but I find all the admin images (like add.png, next.png etc. etc.) being in the <sf_admin_web_dir>/images folder!!!

What does it mean? I'm about to manually check&change all the references to sf_prototype_web_dir for the admin images if no one stops me! Smile If you know I'm wrong block my hand!

Thanks guys, BTW if we discovered it is an upgrade script bug I'd open a ticket.
Ciao!

[Updated on: Wed, 06 December 2006 10:14]

 Topic: Tiny MCE CSS path bug
Tiny MCE CSS path bug [message #17556] Fri, 08 December 2006 22:34
scottmuz  is currently offline scottmuz
Messages: 18
Registered: February 2006
Location: Bedfordshire, UK
Junior Member
Hi All,

I am using tinymce as follows in a template:
echo textarea_tag('content', $content, 'rich=true style="width:100%" size=40x20 css="richtext.css" tinymce_options=theme:"custom",mode:"textareas",force_p_newlines:false');

I then get the following exception
file_get_contents(/home/scott/public_html3/web//web/css/rich text.css) [function.file-get-contents]: failed to open stream: No such file or directory in /usr/share/php/symfony/helper/FormHelper.php on line 471

I fixed it by changing FormHelper.php textarea_tag function as follows

// custom CSS file?
if ($css_file = _get_option($options, 'css'))
{
$css_path = stylesheet_path($css_file);

sfContext::getInstance()->getResponse()->addStylesheet($css_path);

- $css = file_get_contents(sfConfig::get('sf_web_dir').DIRECTORY_SEPA RATOR.$css_path);
+ $css = file_get_contents(sfConfig::get('sf_root_dir').DIRECTORY_SEP ARATOR.$css_path);

I wanted to create a bug but couldn't work out the TRAC permissions system,

regards Scott.


 Topic: Install Symfony 1.0 from SVN without breaking old version
Install Symfony 1.0 from SVN without breaking old version [message #17602] Sun, 10 December 2006 01:26
smeves  is currently offline smeves
Messages: 56
Registered: April 2006
Location: New York, NY
Member
I had been wanting to try out the latest version of Symfony but I had more than a few sites that I had already built using 0.6.3. I didn't want to break these as they are live sites that I still maintain and don't want to have to upgrade.

Ideally I would maintain my old PEAR installation for 0.6.3 but still have the latest version from SVN on my machine that I could use for new projects. I documented the process and put in on the wiki.

http://www.symfony-project.com/trac/wiki/InstallingMultipleV ersionsOfSymfony

-Scott


http://stereointeractive.com/images/avatars/stereo_wide_48.png

Stereo :: Interactive & Design
http://stereointeractive.com/blog
 Topic: security redirecting settings
security redirecting settings [message #17898] Thu, 14 December 2006 10:29
BigAl  is currently offline BigAl
Messages: 2
Registered: December 2006
Junior Member
It seems the redirecting on security issues is mixed up. For missing credentials, you're redirected to login and for missing login it tells you to get the credentials.

switching these settings:
login_module: default
login_action: login
secure_module: default
secure_action: secure

to:
login_module: default
login_action: secure
secure_module: default
secure_action: login

fixes the problem, but I guess the default templates are wrong or something.
 Topic: [Bug] Strict standards output when using gettext
[Bug] Strict standards output when using gettext [message #17973] Fri, 15 December 2006 13:08
FlatPredator  is currently offline FlatPredator
Messages: 110
Registered: May 2006
Location: In between
Senior Member
I use gettext for my translation. Works good, but I get an Strict standards warning ...

Strict standards: Non-static method TGettext::factory() should not be called statically, assuming $this from incompatible context in my\Path\To\PEAR\symfony\i18n\sfMessageSource_gettext.class.php on line 66


I'm using PHP Version 5.2.0 on windows with the latest symfony-beta. I tried to open a ticket but I do not know how to login Rolling Eyes

Seems the gettext-library is PHP4 ...
 Topic: has_layout: off doesn't work in b2
has_layout: off doesn't work in b2 [message #18183] Tue, 19 December 2006 14:58
davedash  is currently offline davedash
Messages: 147
Registered: December 2005
Senior Member
In some of my generated images I had to resort to using:

$this->setLayout(false);


to turn off the layouts rather than using the view.yml configuration. This was working before I switched form b1 to b2


http://reviewsby.us/ - Rate what you just ate.
http://spindrop.us/ - Open Source web consultant
 Topic: pakeException: Property "symfony/author" does not exist.
pakeException: Property "symfony/author" does not exist. [message #18447] Sat, 23 December 2006 09:46
alexf153  is currently offline alexf153
Messages: 9
Registered: December 2006
Junior Member
First, I am new to symfony. So I'm using the latest 1.0 beta from svn, fetched on 12/22/2006.
For development, I'm running WinXP, PHP 5.2, Apache 2.2.3.

I have installed symfony, set up my site, and created a project and app successfully. However, when I tried to create a module, I get the following error:

pakeException: Property "symfony/author" does not exist. in C:\www\symfony\lib\vendor\pake\pakeTask.class.php on line 96

Call Stack:
0.0003 1. {main}() C:\www\project-x\symfony\symfony:0
0.0038 2. include('C:\www\symfony\data\bin\symfony.php') C:\www\project-x\symfony\symfony:14
0.2143 3. pakeApp->run() C:\www\symfony\data\bin\symfony.php:171
0.2239 4. pakeTask->invoke() C:\www\symfony\lib\vendor\pake\pakeApp.class.php:143
0.2290 5. pakeTask->execute() C:\www\symfony\lib\vendor\pake\pakeTask.class.php:181
0.2291 6. call_user_func_array() C:\www\symfony\lib\vendor\pake\pakeTask.class.php:218
0.2291 7. run_init_module() C:\www\symfony\lib\vendor\pake\pakeTask.class.php:0
0.2306 8. pakeTask->get_property() C:\www\symfony\data\tasks\sfPakeGenerator.php:130

Dump $_SESSION

Variables in local scope (#8):
$section = 'symfony'
$name = 'author'
$properties = array ('symfony' => array (...))



Has anyone else had this problem?
 Topic: propel-generator incorrect local reference in Table.php
propel-generator incorrect local reference in Table.php [message #18499] Wed, 27 December 2006 06:27
spascoe  is currently offline spascoe
Messages: 52
Registered: November 2005
Location: Indianapolis
Member
I noted an incorrect local variable reference in
propel-generator/classes/propel/engine/database/model/Table. php.

Reference to $abstractValue should be $this->abstractValue
A Patch correcting the reference is attached.

Thanks, Scott Pascoe

Edit: corrected my own patch...

[Updated on: Wed, 27 December 2006 06:39]

 Topic: propel-generator AppData incorrect local variable reference
propel-generator AppData incorrect local variable reference [message #18500] Wed, 27 December 2006 06:31
spascoe  is currently offline spascoe
Messages: 52
Registered: November 2005
Location: Indianapolis
Member
Hi, its me again. My day for atomic minor changes. Hope I'm not annoying anyone, but just trying to make the code better without having write access to the codebase....

I found another incorrect reference. This time, it was $name, instead of $this->name, in the propel-generator/classes/propel/engine/database/model/AppDat a.php file.

The method is getShortName. The patch is attached.

Thanks, Scott Pascoe

Edit: Corrected my own patch...

[Updated on: Wed, 27 December 2006 06:40]

 Topic: Database Deadlock
Database Deadlock [message #18924] Thu, 04 January 2007 14:41
SonicM  is currently offline SonicM
Messages: 12
Registered: December 2006
Location: Germany
Junior Member
Greetings to the fans and user of symfony.

I try to edit a Navigationlist with sortable_element (AJAX - script.aculo.us).
This works so far very well, after a long period of trial an error . Rolling Eyes
My Problem is, when I edit an Entry (meaning move it to another location) I get from time to time an Database Deadlock, which mean the tables are locked an don´t get unlocked so that I must do it on the SQL-Console. (MSSQL Databaseserver)
My problem is, when I do it for my own, there is no Problem, but it is possible, that 5 User at the same time edit one of these tables. So what can I do to prevent such deadlocks?

I think it starts in this code:
static function moveMenuepunkt($order, $element)
    {
      $con = Propel::getConnection(self::DATABASE_NAME);
      try
      {
        $con->begin();
        if(count($order) > 0)
        {
            foreach ($order as $rank => $id)
            {
              if($item->getSortierung() != $rank)
              { $item->setSortierung($rank);}
             $item->save($con);
            }
        $con->commit();
        return true;
        }
        else
        {
            return false;
        }
      }
      catch (Exception $e)
      {
        $con->rollback();
        return false;
      }


My Question is:
Is it a good or a bad idea to use $con->commit / rollback?
I´m also able to do it with one or two SQLs but I´d like to use the propel syntax.
Please help.

Maik
 Topic: Problem with routing (?) r3140
Problem with routing (?) r3140 [message #18948] Thu, 04 January 2007 19:18
gucky  is currently offline gucky
Messages: 10
Registered: June 2006
Junior Member

Hi!

Is it possible, that there is introduced a new problem with one of the latest changes?

I have a problem which occures with r3142, but not with r3118.

We have an entry in routing.yml:
test:
  url:   /:module/:action/:para


If I call:
http://localhost/xxxx_dev.php/test/index/utf8


the modules/test/actions/indexAction.class.php function will be called but $this->getRequestParameter('para') is empty (with r3142). With an older symfony version (r3118) I got the expected value (utf8).

Best regard,
Gucky.

PS: I've no trac account - so I post this here.
 Topic: Upgrade Problem
Upgrade Problem [message #19169] Mon, 08 January 2007 06:32
balasw  is currently offline balasw
Messages: 13
Registered: January 2007
Location: hyderabad
Junior Member
Hi,
I was develped one application with symfony 0.7 version,now i upgrade i'm upgrade to beta version,so i my application is not working.It gives the error is 'sfContext' not found,how can i rectify it.

please help me.........

thanks
balakrishna

 Topic: Simple lime unit test example?
Simple lime unit test example? [message #19593] Thu, 11 January 2007 20:15
dhosek  is currently offline dhosek
Messages: 42
Registered: November 2006
Member
Can someone point me to a really basic unit test example using lime? What files need to go where in my project to test the functionality of some class that I've created and what goes into them?
 Topic: How to register a unit test [resolved]
How to register a unit test [resolved] [message #19611] Thu, 11 January 2007 22:54
dhosek  is currently offline dhosek
Messages: 42
Registered: November 2006
Member
If I do symfony test-unit, I get the following message:
  [Exception]                                             
  You must register some test files before running them!  

So what do I do to register a test file? http://www.symfony-project.com/trac/wiki/LimeTestingFramewor k doesn't say anything about how to register tests.




I inadvertently left off the Test from the end of the file name, So your files need to be named somethingTest.php It's not immediately clear if it needs to be named for the class, but I'm naming them ClassnameTest.php if only for clarity.

[Updated on: Fri, 12 January 2007 00:45]

 Topic: Strange warning: Module 'mysql' already loaded in Unknown on line 0
Strange warning: Module 'mysql' already loaded in Unknown on line 0 [message #19612] Thu, 11 January 2007 23:37
JasonTC  is currently offline JasonTC
Messages: 216
Registered: October 2006
Location: Grand Rapids, MI
Faithful Member
I just installed symfony 1.0. Everything works, but every time I do something that involves database work, I get the following warning:
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0

Does anyone know what this means, and if it affects anything?

Thanks,
Jason
 Topic: Phing problem after upgrading from 0.7.1914 to 1.0 beta3
Phing problem after upgrading from 0.7.1914 to 1.0 beta3 [message #19655] Fri, 12 January 2007 19:27
drew  is currently offline drew
Messages: 92
Registered: November 2005
Location: Montreal
Member
Hi all, the upgrade was without any problem but now I can't propel-built-model.

Here is the error:
ConditionBase::include_once(phing/tasks/system/condition/OrCondition.php): failed to open stream: No such file or directory [line 86 of /var/www/symfony-1.0.0beta3/lib/vendor/phing/tasks/system/condition/ConditionBase.php]

It's a weird problem since the included file is in the same directory, so no need to need to use the full path (phing/tasks/system/condition/OrCondition.php)

Symfony is in a folder in the web server root and i'm making soft links to it.

Thanks in advance for any help.

André
 Topic: TextHelper bug / enhancement
TextHelper bug / enhancement [message #19749] Mon, 15 January 2007 14:09
f.wenzl  is currently offline f.wenzl
Messages: 46
Registered: January 2007
Location: Germany
Member

HI,

This is my first post on the forum. First I would like to say that symfony is great. I'm really enjoying working with it.


During development with symfony 1.0 beta3, I found a small bug in symfonys TextHelper.php.

I'm using the highlight_text() function to highlight the search phrase on a result page.
When the search phrase contains a slash "/" I get this error:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'c' in C:\Programme\PHP5\PEAR\symfony\helper\TextHelper.php on line 67


A fix for this is to change in TextHelper.php on line 67:

return preg_replace('/('.preg_quote($phrase).')/i', $highlighter, $text); }

to

return preg_replace('/('.preg_quote($phrase, '/').')/i', $highlighter, $text); }


Now a phrase containing a slash "/" will be highlighted without error.

Maybe someone is willing to post a ticket on this?
I'm not registered for posting in trac.






 Topic: insert-sql error
insert-sql error [message #19782] Tue, 16 January 2007 00:34
pixna  is currently offline pixna
Messages: 1
Registered: January 2007
Junior Member
propel.ini
---------------
propel.targetPackage = lib.model
propel.packageObjectModel = true
propel.project = demo
propel.database = mssql
propel.database.createUrl = mssql://pix/
propel.database.url = mssql://dud:dud@pix:1433/blog
-----------------

propel > insert-sql:
[propel-sql-exec] Executing statements in file: C:\Program Files\xampp\htdocs\de
mo\data\sql\schema.sql
[propel-sql-exec] Our new url -> mssql://dud:dud@pix:1433/blog
Execution of target "insert-sql" failed for the following reason: C:\Program Fil
es\xampp\php\pear\symfony\vendor\propel-generator\build-prop el.xml:262:1: [wrap
ped: connect failed [Native Error: ] [User Info: Array]]
[phing] C:\Program Files\xampp\php\pear\symfony\vendor\propel-generator\buil
d-propel.xml:262:1: [wrapped: connect failed [Native Error: ] [User Info: Array
]]

Ver 1.0.0-beta3

What's wrong ?

thx Pix

[Updated on: Tue, 16 January 2007 00:37]

 Topic: receiving msg "Function '~' not found" on new project
receiving msg "Function '~' not found" on new project [message #20024] Thu, 18 January 2007 23:06
skwise  is currently offline skwise
Messages: 1
Registered: September 2006
Junior Member
Our shop has been using 0.6.3 for almost as long as it's been available. We have a need to use some AJAX for a new function to which prototype.js is apparently not very well suited, so I was given the task of having a look at 1.0 so that we could try out the YUI plugin.

I have performed a manual(SVN) install into a new directory on the same level as my other symfony projects, following the instructions from the wiki (with countless clears of the cache). After receiving this error when trying to start up an upgraded copy of my current project, I dropped back to creating an entirely new project/app/module on the assumption that there was something within the settings of my "old" project causing the issue. However, the outcome was the same.

Fiddling with the autoloading settings of the settings.yml (autoloading_functions left as commented, set to ~, null, a dummy function) and filters.yml (all default entries set as ~ by the app-init, set to actual classes and functions) yielded no joy. It appears to me that the YAML '~' character is not being parsed correctly as a null and being passed on to the autoloader. Searching in this forum turned up no results, so I thought I'd go ahead and ask.

The error:
index.php/fa/226/0/


Has anyone else experienced this problem and found the solution?

Thanks for your help.

Kent

 Topic: old unit test to new
old unit test to new [message #20121] Sun, 21 January 2007 13:42
Torsten_72  is currently offline Torsten_72
Messages: 108
Registered: June 2006
Location: Germany
Senior Member

is there a easy way to change the old simple Test to the new lime Tests, or how can run the old tests ?

Thanks Torsten

[Updated on: Wed, 24 January 2007 03:07]

 Topic: Column conflicts with Symfony when called "table_name"
Column conflicts with Symfony when called "table_name" [message #20277] Tue, 23 January 2007 20:25
user2037
Messages: 7
Registered: January 2007
Junior Member
The Base...Peer class includes a class constant named "TABLE_NAME" and it will conflict with the column if the column is called "table_name".

This is a relatively obscure issue with an easy workaround: rename the conflicting column. Perhaps the Propel-build-model script should throw an exception if a the schema includes any conflicting names: table_name, database_name, class_default, etc.
 Topic: no I18n files generator in 1.0
icon4.gif  no I18n files generator in 1.0 [message #20314] Wed, 24 January 2007 12:07
deresh  is currently offline deresh
Messages: 15
Registered: February 2006
Location: Zagreb, Croatia
Junior Member

Why there aren't pake tasks for automatic generating i18n translation files in 1.0?

there are working examples on symfony wiki. I think this is a great tool and it makes building a i18n webapps a lot easier.
 Topic: ERROR sfPropelCrudGenerator.class.php on line 22
ERROR sfPropelCrudGenerator.class.php on line 22 [message #20377] Thu, 25 January 2007 09:46
gintoxin  is currently offline gintoxin
Messages: 41
Registered: April 2006
Member
Hi there

Can anyone give me a hint whats this error about? sfPropelCrudGenerator.class.php on line 22

Exact meassage is:
Fatal error: Declaration of sfPropelCrudGenerator::getPHPObjectHelper() must be compatible with that of sfCrudGenerator::getPHPObjectHelper() 
in /Users/xxx/Sites/xxx/lib/addon/propel/sfPropelCrudGenerator.class.php on line 22


I get this error when trying to access a page created with the GENERATOR. This page used to work. I'm using the BETA 4 Version of symfony.

Thx for your help.....

[Updated on: Thu, 25 January 2007 11:15]

 Topic: small bug in sfValidatorConfigHandler.class.php (beta 4)
icon4.gif  small bug in sfValidatorConfigHandler.class.php (beta 4) [message #20409] Fri, 26 January 2007 10:52
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
line 72 should be:
throw new sfParseException($error);
and not:
throw new sfParseException($method);


 Topic: sfSQLiteCache cache error
sfSQLiteCache cache error [message #20727] Thu, 01 February 2007 13:30
xkops  is currently offline xkops
Messages: 7
Registered: October 2006
Junior Member
Hi again

while trying to use sfSQLiteCache for web site caching i encountered an error:

Fatal error: Call to undefined method sfLogger::error() in /usr/share/php5/PEAR/symfony/cache/sfSQLiteCache.class.php on line 78

The factories.yml contained the following lines

  
  view_cache:
      class:  sfSQLiteCache
      param:
          database: %SF_TEMPLATE_CACHE_DIR%/cache.db
          automaticCleaningFactor: 1


Messing around a bit with the code and doing a print_r($options)
inside the initialize function revealed the following options

Array ( [automaticCleaningFactor] => 1 [cacheDir] => /xxx/frontend/dev/template ) 1


so in this case the following code validates

$availableOptions = array('automaticCleaningFactor');
    foreach ($options as $key => $value)
    {
      if (!in_array($key, $availableOptions))
      {
       sfLogger::getInstance()->error(sprintf('sfSQLiteCache cannot take "%s" as an option', $key));
      }


so the sqlite caching system cannot work.

If cacheDir is needed then the code should be changed to

$availableOptions = array('automaticCleaningFactor','cacheDir');


I don't know if cacheDir is actually needed... i just suppose it is..

But then again the error that occured first is about the sfLogger class so there should be a bug about it as well.

 Topic: generator.yml bug for many to many Relationships?
generator.yml bug for many to many Relationships? [message #20859] Fri, 02 February 2007 22:01
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
I think that I might have encountered a bug. Look at the following:

#        req_from:         { name: Requesting Person(s), type: admin_double_list, params: through_class=ReqFrom }

        req_from:         { name: Requesting Person(s),
                            type: admin_double_list,
                            params: through_class=ReqFrom  }


The only difference between above 2 statements is that one is on one line while the other spans many lines.

In the book, it is ok to use the many-line form
    edit:
      fields:
        article_author: { type: admin_double_list,
                          params: through_class=ArticleAuthor }

http://www.symfony-project.com/book/trunk/14-Generators

but I found that, in my case, only the one line version works. For multi-line version, I'll get:

Warning: call_user_func(ReqFrom }Peer::getTableMap) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/html/cm/lib/symfony/addon/propel/sfPropelManyToMany.class.php on line 38

Fatal error: Call to a member function getColumns() on a non-object in /var/www/html/cm/lib/symfony/addon/propel/sfPropelManyToMany.class.php on line 40


I'm using the latest sandbox.

thanks

*Edit*, note to myself, try

req_from: >


next time.

[Updated on: Sun, 04 February 2007 03:27]


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
 Topic: a_column:{default: NULL}
a_column:{default: NULL} [message #21030] Mon, 05 February 2007 12:25
ryven  is currently offline ryven
Messages: 2
Registered: February 2007
Junior Member
Hello

I've upgraded from beta4 to rc2,
I use clay to design my db then I run the sql script on mysql database. On symfony I run propel-build-schema , and then, propel-buil-model.

But now some fields on form get the value 'null', as text.
every field that gets 'default: ' or 'default: NULL' on schema yml, gets the value null as text on forms.

There is a ticket http://www.symfony-project.com/trac/ticket/1380, that is closed, but this is the cause for my problem, I've changed the code and it know works fine.

Will this be changed again?


thanks
 Topic: symfony SLOTs and joomla MODULEs
symfony SLOTs and joomla MODULEs [message #21099] Tue, 06 February 2007 13:41
mdf092  is currently offline mdf092
Messages: 59
Registered: May 2006
Member
Hi

Can we say slots in symfony are like module
positions in joomla templates?
 Topic: Include own id in display/NONE
Include own id in display/NONE [message #21203] Wed, 07 February 2007 20:32
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
Hi,

Is it possible to include table's own id in the display/NONE section, as
    edit:
      display:
        NONE:         [id]
        Editable:     [author, content, created_at]


In Listing 14-9 - Choosing the Fields to Display at
http://www.symfony-project.com/book/trunk/14-Generators#Admi nistration

there is an example showing to include a foreign id, as
    edit:
      display:
        NONE:         [article_id]
        Editable:     [author, content, created_at]


I include table's own id in the display/NONE section, but all other fields show except the id.

[Updated on: Wed, 07 February 2007 20:33]


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
 Topic: Can I use php eg link_to in app gen configuration
Can I use php eg link_to in app gen configuration [message #21278] Thu, 08 February 2007 18:25
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
Hi,

Following Listing 14-6 - Typical Complete Generator Configuration
http://www.symfony-project.com/book/trunk/14-Generators#Admi nistration

    list:
      layout:         stacked
      params:         |
        %%is_published%%<strong>%%=title%%</strong><br /><em>by %%author%%
        in %%category%% (%%published_on%%)</em><p>%%content_summary%%</p>


I tried to use link_to php function in the "params:".

      params:         |
        %%is_published%%<strong>%%=title%%</strong><br /><em>by %%author%%
        in %%category%% (%%published_on%%)</em><p>%%content_summary%%</p>
 <?php echo link_to('Requests', 'req/list') ?>


But I got:

Fatal error: Call to undefined function link_to()

if I removed the <?php echo , I'll get plain text.

How can I use the link_to php function in the "params:"?

thx


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
 Topic: session error in layout template
icon1.gif  session error in layout template [message #21363] Sat, 10 February 2007 04:59
deicide  is currently offline deicide
Messages: 2
Registered: February 2007
Location: Vietnam
Junior Member

Hi!
when i play with askeet project on day 5, i find out that $sf_user->isAuthenticated() in layout template not run although I authenticated that user and created session.
I use symfony-1.0.0rc2 on Windows XP and install it through PEAR.
so pls tell me why? I think it's symfony bug in this version, right?????

[Updated on: Sat, 10 February 2007 05:02]

 Topic: generator/yml syntax question (error in admin ref. card?)
generator/yml syntax question (error in admin ref. card?) [message #21384] Sat, 10 February 2007 17:20
qube  is currently offline qube
Messages: 88
Registered: August 2006
Location: Czech republic
Member
Hi,

maybe there is en error in "Symfony admin generator reference card 1.0"
http://www.symfony-project.com/uploads/assets/sfAdminGenerat orRefCard.pdf

Are following notations equivalent?

a)
telefon: { name: Telefony, type: n_to_one, params: get_objects_method = getTelefony foreign_module = telefon}


b)
telefon:
  name: Telefony
  type: n_to_one
  params: get_objects_method = getTelefony foreign_module = telefon


c)
telefon:
  name: Telefony
  type: n_to_one
  params: |
    get_objects_method = getTelefony 
    foreign_module = telefon 


d)
telefon:
  name: Telefony
  type: n_to_one
  params:
    get_objects_method = getTelefony
    foreign_module = telefon


Problem is, that d) is not working, but according to reference card, d) should work too.

Is it Symfony bug or reference card bug?
 Topic: [ SOLVED ] CSS Overrides Broken in Admin Generator [1.0 beta4]
[ SOLVED ] CSS Overrides Broken in Admin Generator [1.0 beta4] [message #21415] Mon, 12 February 2007 06:10
prometheas  is currently offline prometheas
Messages: 9
Registered: January 2007
Location: Brooklyn, NY USA
Junior Member
Hi gang,


Seems like the ordering of css includes has changed a bit between releases, and all the pretty styling I'd done for my client's admin section is being killed by this.

Here's how it comes out:

<link rel="stylesheet" type="text/css" media="screen" href="/sf/sf_web_debug/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/sf/sf_admin/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/sf/calendar/skins/aqua/theme.css" />


Note the inclusion of the /sf/sf_admin/css/* CSS files coming AFTER my custom ones.

Can anyone confirm or deny this?



UPDATE

OK, two things... first, was using RC2, not "beta4" as claimed in the subject; it was a late-night post. Sorry for the confusion.

Secondly, I solved the problem. Turns out, you must specify "postition: last" for EACH css include in an admin generator application. For more information, please see:

http://www.symfony-project.com/book/trunk/07-Inside-the-View -Layer#File%20Inclusion%20Configuration


[Updated on: Mon, 19 February 2007 02:25]

 Topic: sfPropelPager doesn't work correctly
sfPropelPager doesn't work correctly [message #21441] Mon, 12 February 2007 14:51
gudsoft  is currently offline gudsoft
Messages: 6
Registered: January 2007
Junior Member
Since I've upgraded to 1.0.0RC2 from 0.6.3 the sfPropelPager doesn't work anymore. I've got the php error :

Fatal error: Cannot redeclare class offresheaderpeer in C:\Apache2\htdocs\modci\lib\model\OffresHeaderPeer.php on line 10

The code :
$c = new Criteria();
$c->addAscendingOrderByColumn(OffresHeaderPeer::ID);

$pager = new sfPropelPager('OffresHeader',2);
$pager->setCriteria($c);
$pager->setPage($page);
$pager->setPeerMethod('doSelectJoinAll');
$pager->init();

return $pager;

The problem is when the $pager->init() is executed

If someone has any idea, thanks
 Topic: A few bugs I found!
A few bugs I found! [message #21507] Tue, 13 February 2007 08:57
mitjad  is currently offline mitjad
Messages: 26
Registered: September 2006
Junior Member
Hi,

I'm not jet familiar really good with symfony, but I found a few bugs that I don't know if there are a lack of my knowledge of symfony or real problems. Here they are:

They are all related to admin generator.

If boolean values have underscores in there names they do not work in filters correctly.

Component partials do not work if they have underscore in the name.

All selects (drop downs) have the first line blank and I'm no able to remove it even if I write include_blank=false in generator.yml for this element.

sfPropelParanoidBehavior plugin does not work, I found a workaround in one of the forum postings but it is not a really nice solution because you have to include in all lib classes for the objects the Peer class by hand.

I'm using 1.0RC2
Pages (7): [1  2  3  4  5  6  7  >  »]

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software