[symfony-users] how can I get value added widget in doSave($con = null) form ?

2010-08-06 Thread alexmm
I have added my own widget to form with name 'photo' - how can I get its value in public function doSave($con = null) method this form. I have tried: $file = $this->getValue('photo'); But I have error: Unknown record property / related component "photo" on "Photos". -- If you want to report a vu

[symfony-users] symfony, doctrine and search multilanguage words

2010-07-28 Thread alexmm
I have in schema: Items: actAs: Timestampable: ~ I18n: fields: [name] actAs: Searchable: fields: [name] columns: name: type: string(250) notnull: true And when I save new item with cyrylic words Doctrine don't save them as keywords in tab

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

2010-07-15 Thread alexmm
I would like to have universal template for pagintion - so I need something like that: On 16 Lip, 07:08, alexmm wrote: > how can I get url without parameters in view ? > For example when I have: "http://myapp.example.com/article/read/21"; - > I would like to get: "articl

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

2010-07-15 Thread alexmm
how can I get url without parameters in view ? For example when I have: "http://myapp.example.com/article/read/21"; - I would like to get: "article/read" -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

[symfony-users] Re: pagination template without repeat - like in Zend framework !!

2010-07-14 Thread alexmm
ok - so _pagination.php partial in /apps/frontend/templates and then use it in module template: $pager)); ? > On 15 Lip, 07:35, Bernhard Schussek wrote: > What about creating a _pagination.php partial with the shared code? > > Bernhard -- If you want to report a vulnerability issue on symfony,

[symfony-users] pagination template without repeat - like in Zend framework !!

2010-07-14 Thread alexmm
I need on 10 pages a pagination. If I use method from tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 I have to 10 times write the same code for: first, previous, next and last site with only other links. Is other way ? In Zend framework we can definied template for pagination:

[symfony-users] Re: menu and underline current link in menu

2010-05-09 Thread alexmm
But I mean underline after click on some link (to show him on which page he is) - not when user mouse is over the link. On 9 Maj, 16:46, Eno wrote: > On Sun, 9 May 2010, alexmm wrote: > > I have in menu links: > > Start | Gallery | Contact > > User should see underline

[symfony-users] menu and underline current link in menu

2010-05-09 Thread alexmm
I have in menu links: Start | Gallery | Contact User should see underline current link (page on which he is). I have underline in CSS class 'current_link'. So I have to write in layout: if ($sf_request->getParameter('module') == 'start') echo link_to('Start', 'start/index', 'class=current_link');

[symfony-users] Re: I would like to have backend the default application.

2010-05-07 Thread alexmm
thx very much :) On 7 Maj, 16:12, "Don Pinkster" wrote: > That is correct. > > Met vriendelijke groet, > > Locosoft B.V. > Don Pinkster > > -Oorspronkelijk bericht- > Van: symfony-users@googlegroups.com > [mailto:symfony-us...@googlegroups.com]

[symfony-users] Re: I would like to have backend the default application.

2010-05-07 Thread alexmm
ter" wrote: > Edit your index.php to include backend instead of frontend > > Met vriendelijke groet, > > Locosoft B.V. > Don Pinkster > > -Oorspronkelijk bericht- > Van: symfony-users@googlegroups.com > [mailto:symfony-us...@googlegroups.com] Namens alexmm

[symfony-users] I would like to have backend the default application.

2010-05-07 Thread alexmm
How can I change the default application ? I need backend the default application. -- 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 pos

[symfony-users] doctrine routing and slash problem - %2F

2010-04-17 Thread alexmm
I database in column 'link' I have for example: documents/proposals documents/contracts And when I write ($link is an object which represents row in above table): link_to('some title', 'documents_route', $link); It converts slash to %2F so I have links: documents%2Fproposals documents%2Fcontracts

[symfony-users] RewriteRule

2010-04-10 Thread alexmm
How can I change: http://xyz.com/pl/job on http://xyz.com/pl/praca I have tried in htaccess in /web catalog: RewriteRule ^pl/praca$ pl/job [L] But it doesn't work. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this m

[symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread alexmm
-04-09 at 11:06 -0700, alexmm wrote: > > > Apostrophe ? Which apostrophe should I check ? > > > On 9 Kwi, 19:47, Alexandru-Emil Lupu wrote: > > > Yes... you need a custom url. > > > > Check apostrophe. I am on mobile and i can't copy paste stuff > >

[symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread alexmm
ound 2-3 hours... > > sent via htc magic > > On Apr 9, 2010 9:06 PM, "alexmm" wrote: > > Apostrophe ? Which apostrophe should I check ? > > On 9 Kwi, 19:47, Alexandru-Emil Lupu wrote: > Yes... > you need a custom url. ... > > > On Apr 9, 2010 8:40 PM, &q

[symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread alexmm
Apostrophe ? Which apostrophe should I check ? On 9 Kwi, 19:47, Alexandru-Emil Lupu wrote: > Yes... you need a custom url. > > Check apostrophe. I am on mobile and i can't copy paste stuff > > sent via htc magic > > On Apr 9, 2010 8:40 PM, "alexmm" wr

[symfony-users] i18n - translation urls ?

2010-04-09 Thread alexmm
I have interesting question. Customer asked me if it is possible to have links in two languages. For example I have module JOB and I have Symfony appliaction in two lanuages: english and polish. 'job' == 'praca' in polish language. Is it possible to show url: http://xyz.com/job - in english la

[symfony-users] Re: how can I make the same query before each action ?

2010-03-19 Thread alexmm
r class and call it with > $sf_user in the layout/template > > On Mar 19, 6:39 pm, alexmm wrote: > > > I want to make query: > > $this->text = Doctrine::getTable('Texts')->getRandomText(); > > before each action. And in view use: > > echo $text->

[symfony-users] how can I make the same query before each action ?

2010-03-19 Thread alexmm
I want to make query: $this->text = Doctrine::getTable('Texts')->getRandomText(); before each action. And in view use: echo $text->getText(); How can I make this query before each action and pass result to view ? Only solution is to use preExecute() function in each module with this query ? Or may

[symfony-users] Re: how can I make normal query using Symfony and Doctrine ?

2010-01-05 Thread alexmm
thx :) On 5 Sty, 14:01, klemens_u wrote: > Hi Alex, > > try this to get the PDO connection: > > $dbh = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh > (); > $result = $dbh->query("SELECT * FROM my_table"); > > :-) Klemens > &

[symfony-users] how can I make normal query using Symfony and Doctrine ?

2010-01-05 Thread alexmm
I want to make normal query in symfony and doctrine without models etc. I am trying: $result = Doctrine_Manager::connection()->getDbh()->query("SELECT * FROM table")->execute(); print_r($result); but I get nothing :( -- You received this message because you are subscribed to the Google Groups

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread alexmm
I need a form in which I will have so many checkboxes as rows in table. I know how I can do that in normal php (code in my first post), but I don't know how/should I do that using Symfony forms ? Do you understand ? xD On 28 Gru, 14:15, ScherlOMatic wrote: > Hi, > > maybe you could explain us a

[symfony-users] set error communicates

2009-12-23 Thread alexmm
If I have in Base some form class: $this->setValidators(array( .. 'price' => new sfValidatorNumber(), .. )); How can I change error communicate for field 'price' in class which extends Base some form class ? I must again write validators with arrays inside wi