Re: [symfony-users] Re: Textarea onclick event?

2010-11-03 Thread Eno
On Tue, 2 Nov 2010, Parijat Kalia wrote:

 Oh guys, please chill out, none of that was for either of you, it was for
 Mr.Eno, because he typically comes up with smart ass  sentences like those
 way too often.

I haven't posted here for months.

I agree with the smart part - I had the correct answer when noone else did 
(not that you thanked me).

  And yes, the issue that I was dealing with is Javascript, but in a symfony
 tags context

The problem had nothing to do with symfony.

 I did the 10 sec google search several
 times, and read the API, before I decided to seek help here.

10 seconds is hardly thorough research... OK maybe you have ADD but 
still...




-- 


-- 
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] Re: Textarea onclick event?

2010-11-01 Thread Eno
On Mon, 1 Nov 2010, Parijat Kalia wrote:

 Doesn't really answer my question. I have used several javascripts in the
 format :
 
 array('onclick'='javascript:alert(yo)')...the alert is just a filler
 function for now, there are offcourse different javascript functions. Every
 other input tag that I have used a javascript fucntion, it works fine, so I
 am more concerned about it's positioning in the textarea tag than I am for
 the right method of coding.

Are you really too lazy to read up on JavaScript events or even use 
Google?

The clue is that not all widgets support onClick. You probably want to be 
using onFocus() instead (or perhaps onBlur() if its validation you're 
doing).



-- 


-- 
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] Re: Textarea onclick event?

2010-11-01 Thread Eno
On Mon, 1 Nov 2010, Parijat Kalia wrote:

 Yes smart ass,
 
 I am 2 lazy about it

Its considered poor netiquette to post questions on a mailing list without 
doing some BASIC research. Do your homework before posting needlessly.


-- 


-- 
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] Dynamic Table?

2010-10-20 Thread Eno
On Wed, 20 Oct 2010, xpanshun wrote:

 In other words, I want product images (along with some other info) to
 be displayed in a sort of a dynamic table according to how many
 entries are in the database. To get images to display 4 per row, then
 move to the next row, etc.

So just make an HTML table. You just need to maintain a counter as you 
loop through the list and echo each TD, and start a new row when the 
remainder left after dividing the counter by the number of items per row 
(i.e. the modulus) is zero.

Pretty basic stuff really.


-- 


-- 
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] Re: How to change a POST value posted from form

2010-10-19 Thread Eno
On Tue, 19 Oct 2010, hribo wrote:

 thank you,
 but is it possible to get request parameter inside the model layer?
 if yes, what is the proper syntax

Probably better to get the value in your controller and pass it to a 
method in the model layer. This is MVC.




-- 


-- 
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] Unwanted /www/web in URL

2010-10-10 Thread Eno
On Sun, 10 Oct 2010, Felix E. Klee wrote:

 Now everything works fine, except the URLs don't look fine - by example:
 
 * Before the change, when I entered http://www.example.com, I was
   redirected to http://www.example.com/es, where es is the language
   code.
 
 * After the change, when I enter http://www.example.com, I am
   redirected to http://www.example.com/www/web/es.
 
 How do I get rid of the segment /www/web in the URL?

Maybe update the RewriteBase line in the .htaccess ?



-- 


-- 
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] Clear cache in action

2010-10-07 Thread Eno
On Thu, 7 Oct 2010, [ISO-8859-2] Micha³ Piotrowski wrote:

 2010/10/7 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com:
  Is there a way to clear my cache in an action, using PHP?
 
 $cacheManager = sfContext::getInstance()-getViewCacheManager();
 if ($cacheManager) {
   
 $cacheManager-remove('blog/index?username='.$username.'sf_format=html');
   
 $cacheManager-remove('blog/index?username='.$username.'sf_format=atom');
   $cacheManager-remove('main/show?username='.$username);
 }

If this isn't on an admin page, you probably should password-protect or 
filter request by IP.



-- 


-- 
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] linik trouble

2010-09-23 Thread Eno
On Thu, 23 Sep 2010, Nova Lina wrote:

 i have a trouble with link.somebody can help me to explain what diferent
 source when i coding like this...
  1) a href=?php echo url_for('main/home'); ?Home/a/li
  with
  2) a href=
 http://localhost/sf_sandbox/web/user_dev.php/login/Login; title=loginLog
 in

url_for() uses your routing rules to generate the URL.

The second doesn't.

 but i have a lot of trouble with the first sourcecode.when I can use the
 number one source code? and when I can use the source code number two?

You should always try to use routing to generate URLs for you.

 I made many categories of products in my web, for example when my
 cursor is pointing to over the product category, it will show a list from
 the menu, such as women's shoes, men's shoes, sandals children.
 I think, would require many pages to display multiple images on each of
 these categories, but I want to display only one page, but one page that can
 display multiple images, if you like it, whether I should do the coding in
 the database? or whether symfony has an execute queries that can be easier
 for me in doing it in symfony 1.4?

You just need one page to display products - the only difference is the 
queries you run to generate the page. You will probably need to also use 
one of the pager classes if you have too many products to display on a 
single page.



-- 


-- 
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] symfony + Cassandra

2010-09-23 Thread Eno
On Thu, 23 Sep 2010, Mercedes Sualog III wrote:

 Actually I don't still have the idea on how to do it..I am thinking since
 Symfony supports ORM ideally this should support any database but I am not
 sure with Cassandra since this a NoSQL and new one.

Yeah, you would need to write an ORM-NoSQL mapping layer...

 When you say roll your own library does this mean I have to create on my
 own and library was not yet available?(Sorry I am not yet so much familiar
 with the libraries available.)

ORM is an abstraction on top of SQL. Doctrine has a similar abstraction 
(ODM) so you can use Mongo as your backend database. I dont know if its 
designed to work with any other NoSQL database so you would have to write 
something similar (if you want a higher level interface) or adapt some 
existing abstraction code. Of course, your queries might be very simple in 
which you can just use straight PHP and whatever API is provided for 
Cassandra.

 How does it work on XML database in your case?

We're using MySQL and eXist. The parts of the application that need to 
talk to eXist do not use any ORM layer - its just straight PHP talking 
directly to eXist (we're also using memcache so the performance is pretty 
good in spite of this).



-- 


-- 
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] symfony + Cassandra

2010-09-22 Thread Eno
On Tue, 21 Sep 2010, Mercedes Sualog III wrote:

 Does anybody of you tried using symfony with Cassandra as database?
 Does it work?

I suspect that you will have to roll your own library to use it (we do a 
similar thing to use an XML database).

Unless there are plans to have Doctrine ODM support it? Anyone know?


-- 


-- 
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] some questions about sf

2010-09-22 Thread Eno
On Wed, 22 Sep 2010, ahmed shehata wrote:

 first what is the best ide for symfony

The best way to learn is to start with just a text editor.

 second  after my project finished by smfony can i run it on shared
 hosting like http://www.hostmonster.com/ as my site already run on it
 via codeigniter

http://tinyurl.com/2v54776

 third what is the best javascript liberary for sf i know good about
 jquery but i want to try extjs is it good with symfony

http://tinyurl.com/32rooqk



-- 


-- 
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] Jobeet Tutorial - routing problem

2010-09-22 Thread Eno
On Wed, 22 Sep 2010, martin wrote:

 The homepage works well, but any other URL's keep telling me that the
 requested URL wasn't found..
 
 Example:
 On homepage I click on Web Developer link:
 http://localhost:8082/job/sensio-labs/paris-france/1/web-developer
 (this doesn't work, the URL was generated by Symfony's routing
 framework)
 
 When I change the URL manually in the addressbar to:
 http://localhost:8082/index.php/job/sensio-labs/paris-france/1/web-developer
 It works.

This is the classic problem when either mod-rewrite isn't active or you 
dont have no_script_name switched on in your app settings...



-- 
A

-- 
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] PHP related,Symfony unrelated

2010-08-16 Thread Eno
On Mon, 16 Aug 2010, Parijat Kalia wrote:

 That's exactly what I am trying to explain. Currently what I am doing right
 now is using a select_tag, with options that trigger corresponding queries
 to alter the sort order presented in the page. Any better ideas over how
 this may be implemented?

Pretty simple really: why dont you use links to trigger actions with the 
relevant sort order? (i.e. the sort order is a parameter that gets passed 
through routing to your action so you simply trigger the same query with 
different SORT paramters). The top of each column in your table becomes a 
link with the sort parameter in the URL...



-- 



-- 
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] ARUBA hosting ERROR: Install PDO and PDO driver: mysql

2010-08-12 Thread Eno
On Thu, 12 Aug 2010, Johnny wrote:

 I'm trying to use a symfony application but when I try to login on the
 remote serve I gave this error:
 ERROR: Install PDO and PDO driver: mysql

Error message is self-explanatory: you need to install the PDO/PDO-mysql 
drivers to run symfony.



-- 
A

-- 
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] PHP related,Symfony unrelated

2010-08-09 Thread Eno
On Mon, 9 Aug 2010, Parijat Kalia wrote:

 I have a table, with about 10 columns, offcourse for displaying my data. I
 know, there are several sites that let you click on the header of these
 table rows, and switch the display data accordingly. for instance, if one of
 my column headers is Question Type, which in turn has 2 different question
 types, then upon clicking this header, the data displayed in my table is at
 first click only those questions of type question 1, and on second click,
 only those questions of type question 2.

Normally, clicking a header is used to change the sort order (i.e. redo 
the query with different order in query, redisplay data, etc).

What you are describing above doesn't sound like a sorting operation to 
me.


-- 


-- 
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] a good IDE for Symfony

2010-08-04 Thread Eno
On Wed, 4 Aug 2010, [ISO-8859-1] Stéphane wrote:

 You can try VIM too (really).

For years Ive been writing code quite happily with vim. Apart from being 
available on almost every platform, its light and fast (I find most IDE's 
slow and bloated). Also you have the added advantage of being able to do 
everything with the keyboard.



-- 


-- 
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] a good IDE for Symfony

2010-08-03 Thread Eno
On Tue, 3 Aug 2010, Julian Reyes Escrigas wrote:

 I need help for find a new editor for PHP, I'm using Netbeans 6.9 but I
 don't know for what is slow, always start very well but when the project
 grows it's turns unstable

You dont really need an IDE to write PHP code.



-- 


-- 
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] newbie stuck on apache conf

2010-07-26 Thread Eno
On Mon, 26 Jul 2010, Ted wrote:

 I'm new to sf.  I've spent days messing with the MAMP based apache
 config.   I can successfully get the project created page but not with
 images.  Docs only say f you see no image in this page, you may need
 to configure your web server so that it gains access to the
 symfony_data/web/sf/ directory.   I've tried every conceivable
 iteration of the apache conf info at the bottom of this note.  Also
 tried matching file system perms to the same as the text php files
 that do work (user=me, group=admin) in the dir where the images and
 css live (/home/sfproject/lib/vendor/symfony/data/web/sf)but no
 luck.   I just can't look at it any more...yeah sorry for the
 dramtics, but it's making me crazy.Thanks for any help in
 advance

Correct me if Im wrong, but does MAMP allow you to edit the vhost 
directly? Or should the Alias directive work inside your .htaccess file?

(You need to restart Apache after too).



-- 


-- 
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] SQLSTATE[23000]: Integrity constraint violation

2010-07-20 Thread Eno
On Mon, 19 Jul 2010, [ISO-8859-1] François SEDE wrote:

 I have this error :
 
 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
 SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
 update a child row: a foreign key constraint fails
 (`yurplan1`.`items`, CONSTRAINT `items_shoplist_id_sub_categories_id`
 FOREIGN KEY (`shoplist_id`) REFERENCES `sub_categories` (`id`))
 
 the problem is : I DON'T HAVE ANY FIELD SUB_CATEGORIES in my ITEM...

Its a relation to a foreign key so yes, you DO have it.



-- 


-- 
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] Can't configure Web Server

2010-07-19 Thread Eno
On Mon, 19 Jul 2010, Mspozzato wrote:

 Help me, because I'm newer in Symfony and PHP. And, unfortunatelly, I
 cannot run the first home page after configurations:
 http://www.jobeet.com.localhost/index.php/
 The web browser returns messages like Cannot find server or Cannot
 be found.

Means DNS lookup for www.jobeet.com.localhost failed.

NOTE: the Jobeet tutorial talks about jobeet.localhost, not 
www.jobeet.com.localhost. Whatever hostname you decide needs to be 
resolvable in DNS.

 I've started on reading the Tutorial Practical Symfony, Day 1:
 Starting up the project. All the instructions were checked, but those
 about Web Server Configuration I think isn't good.

You need to add that domain to your hosts file so the name can be 
translated into an IP. In Windows, the file is 
\WINDOWS\System32\drivers\etc\hosts

It tells you in the docs:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01#chapter_01_sub_web_server_configuration



-- 
A



-- 
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] Symfony on Shared Hosting

2010-07-19 Thread Eno
On Mon, 19 Jul 2010, despuestambien wrote:

 I have been trying to upload symfony on GoDaddy's Shared hosting. But
 I couldn't!!
 
 Has someone successfully achieved this? What's the BIG catch??

Would not recommend shared hosting for symfony apps unless they can 
fulfill all the requirements for PHP and web server config that symfony 
apps need.

 Pls give a few lines of help at least. I developed for 1 month an
 application to get with this surprise that I can't show the client the
 project online.
 
 I have been trying to create a subdomain to test it. Is it
 the .htaccess, the php.ini, the ProjectConfiguration.config.php?

Wow, you may as well ask how computers work - so many blanks!
And that last line says you have no idea how this all fits together.

Well, start with the basics: in order to resolve a domain name you need 
what? Ill give you a clue: its an acronym and it starts with a D. Whats 
that you say? DNS? Well done. So first step is to set your DNS to resolve 
to your web server IP. That depends on your domain registrar and whoever 
does DNS for your domain, so I can't describe steps for that. Ask your web 
hoster or domain registrar.

Assuming DNS works and points to your web server, the web server needs to 
recognize that domain as a site. So presumably you have a control panel 
somewhere that allows you to add a vhost. The vhost has to have the 
subdomain you set up in DNS.

When you setup a vhost, it usually configures a specific folder to be 
the public folder, that's where you'll need to deploy the contents of the 
web folder of your app. The rest of the symfony folders should normally be 
outside the public web folder.

The .htaccess file is used to redirect all web requests to the front 
controller, normally index.php. You normally dont need to mess with it.

The php.ini is also something you wouldn't normally mess with, and with 
shared hosting you probably wont be able to mess with it.

The ProjectConfiguration.class.php is a global config file for the 
application, nothing to do with vhosts or DNS.

Really, if you spent some time reading carefully through the excellent 
symfony docs, you will gain a better understanding of all this.

Read the Gentle book: 
http://www.symfony-project.org/gentle-introduction/1_4/en/

Some of the other books and guides are useful too:
http://www.symfony-project.org/doc/1_4/




-- 
A

-- 
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] Re: how can I get url without parameters in view ?

2010-07-16 Thread Eno
On Thu, 15 Jul 2010, alexmm wrote:

 I would like to have universal template for pagintion - so I need
 something like that:
 ?php echo url_for(.CURRENT URL'?page=1') ?

You can use the name of the route in url_for().

Read this:
http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System

So if you have a route like:

article:
  url:   /article/read/:id
  param: { module: article, action: read }


You would do something like:

echo url_for('@article?id=' . $id);

Hopefully you're using one of the pager classes for pagination - there's 
an example in the Practical symfony book:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07#chapter_07_list_pagination


Amazing what you can find simply by reading heh?



-- 


-- 
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] Tutorial - Day 3 - Doctrine_Connection_Sqlite_Exception

2010-07-14 Thread Eno
On Tue, 13 Jul 2010, Eno wrote:

 Looks self-explanatory: there is jobeet_job table in your database.

I meant, there is NO jobeet_job table.



-- 


-- 
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] Tutorial - Day 3 - Doctrine_Connection_Sqlite_Exception

2010-07-13 Thread Eno
On Tue, 13 Jul 2010, czaku wrote:

 This is the error I get...
 
 500 | Internal Server Error | Doctrine_Connection_Sqlite_Exception
 
 SQLSTATE[HY000]: General error: 1 no such table: jobeet_job. Failing
 Query: SELECT j.id AS j__id, j.category_id AS j__category_id, j.type
 AS j__type, j.company AS j__company, j.logo AS j__logo, j.url AS
 j__url, j.position AS j__position, j.location AS j__location,
 j.description AS j__description, j.how_to_apply AS j__how_to_apply,
 j.token AS j__token, j.is_public AS j__is_public, j.is_activated AS
 j__is_activated, j.email AS j__email, j.expires_at AS j__expires_at,
 j.created_at AS j__created_at, j.updated_at AS j__updated_at FROM
 jobeet_job j
 
 HELP ME :(

Looks self-explanatory: there is jobeet_job table in your database.



--


-- 
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] Frameworks CSS

2010-07-12 Thread Eno
On Mon, 12 Jul 2010, Nei Rauni Santos wrote:

 I'd like to know if you use any kind of frameworks CSS in your sf projects.

Anyone looked at any of these?

http://www.blueprintcss.org/
http://www.1kbgrid.com/
http://www.tinyfluidgrid.com/


-- 



-- 
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] form_tag_for + parameters for routing

2010-07-07 Thread Eno
On Tue, 6 Jul 2010, Guill Lo wrote:

 I've tried to use form_tag_for with a routing that contains a
 parameter, and I can't find the way to give it to the function.
 I've tried
 
 *form_tag_for($form, '@user_doc?user_id=' .$user['id'])
 
 but I've got a message saying that the routing user_doc?
 user_id=XXX_create can't be found.
 
 Also
 
 *form_tag_for($form, '@user_doc', array('user_id' = $user['id']))
 
 But same, doesn't work.

You dont say which version of symfony.

The 1.4 code looks like this:

function url_for_form(sfFormObject $form, $routePrefix)
{
$format = '%s/%s';
if ('@' == $routePrefix[0])
{
$format = '%s_%s';
$routePrefix = substr($routePrefix, 1);
}

$uri = sprintf($format, $routePrefix, $form-getObject()-isNew() ? 
'create' : 'update');

return url_for($uri, $form-getObject());
}

function form_tag_for(sfForm $form, $routePrefix, $attributes = 
array())
{
return $form-renderFormTag(url_for_form($form, $routePrefix), 
$attributes);
}




-- 


-- 
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] Cache and analytics parameters

2010-07-05 Thread Eno
On Mon, 5 Jul 2010, illarra wrote:

 Is there a way of having an unique cache regardless of the extra
 parameters added to a route (like Google Analytics)?
 
 Let's say I have a route @view?id=13 that results in the URL
 http://example.com/post/13
 When I go to the URL http://example.com/post/13?utm_campaign=xutm_medium=y
 the cached route by symfony is: @view?
 id=13utm_campaign=xutm_medium=y
 
 And that creates different entries in the cache for the very same
 page, because this parameters are just used via javascript.
 I would like only one cache per view: @view?id=13. Can I change this
 behavior?

You need to explicitly set the cache key.



-- 


-- 
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] Different Cache for different user groups

2010-06-30 Thread Eno
On Wed, 30 Jun 2010, Richtermeister wrote:

 I have an app with 2 usergroups  (admins and dealers), and dealers can
 fall into 3 brands. Those two factors affect the content of certain
 lists. Now, I'd like to cache certain sections, but of course I need
 to still worry about who sees what, and I'm thinking that in theory
 this should be as easy as making the two factors part of the cache
 key.
 This way, all combinations of dealer/admin and brands get individual
 caches.
 Is that the right thought, and where would I have to tinker to make
 this happen? I suspect the sfViewCacheManager is a good spot, but I'm
 unsure how exactly.

Yes, using the groups (or combination of group + user) in your cache keys 
works well. You shouldn't have to mess with any core classes to do this - 
simply setting appropriate cache keys should suffice.



-- 


-- 
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] Smarty and Symfony

2010-06-22 Thread Eno
On Tue, 22 Jun 2010, Dan Harabagiu wrote:

 I have a site written using Smarty, is there anyway I can migrate it to
 symfony? or at least develop additional features using symfony?

There is an sfsmarty plugin, so its possible to use Smarty with symfony.



-- 


-- 
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] Removing a cached template fragment does not work (sf 1.4)

2010-06-22 Thread Eno
On Mon, 21 Jun 2010, Matthias N. wrote:

 So.. the problem is I try to remove that fragment using the view cache
 manager but it doesn't work.
 I tried this but it does not work because it generates not the
 appropriate filename/pattern:
 
 $cacheManager-remove('@sf_cache_partial?
 module=*action=showsf_cache_key='.$myCacheKey);
 
 This generates the following file name:
 
 my-domain/all/sf_cache_partial/*/show/sf_cache_key/foo/bar/baz/slug/
 home.cache


I would use clearGlob() instead.



-- 


-- 
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] Day 1 - jobeet problem

2010-06-22 Thread Eno
On Tue, 22 Jun 2010, Christian wrote:

 where public_html is my apcahe DocumentRoot in whitch i have a lot of
 directory with different site, but when i put this link in my browser:
 http://localhost:8080/index.php (as the tutorial say) i can't see
 anything...only a blank page...
 
 can you help me please?

Look at your Apache error log.



-- 


-- 
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] Route does not add a parameter when its defined as a default one.

2010-06-22 Thread Eno

Remember the orderf of routes *does* matter, so you should have most 
specific route to least specific routes, e.g. using a wildcard will 
match all routes that start /blog so probably that route should be last.


On Tue, 22 Jun 2010, Ivo Az. wrote:

 Here's examples:
 
  Link 
 ?php echo link_to($page, '@blog?page='.$page) ?
 
  Route 1
 blog:
   url: /blog/*
   param:   { module: blog, action: list }
 
 Output: http://localhost/blog/page/2
 
  Route 2
 blog:
   url: /blog/:page
   param:   { module: blog, action: list, page: 1 }
 
 Output: http://localhost/blog/2
 
  Route 3
 blog:
   url: /blog/*
   param:   { module: blog, action: list, page: 1 }
 
 Output: http://localhost/blog
 
 Why in 3rd case the url does not contain the page parameter as in
 first example?
 
 

-- 
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] Symfony 2 Online Conference

2010-06-22 Thread Eno

Anyone attending the online conference tomorrow? I didn't receieve any 
technical info on how to join the conference and my email asking for info 
bounced back (with an error message in French malheureusement!).

Maybe someone at Sensio can help me?


-- 



-- 
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] PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

2010-06-19 Thread Eno
On Fri, 18 Jun 2010, newprog wrote:

 Hi i need to connect to mysql from command line... when i used this
 command php symfony doctrine:insert-sql
 i get this error  PDO Connection Error: SQLSTATE[28000] [1045] Access
 denied for user 'root'@'localhost' (using password: NO) can any one
 help plzz...

Looks like the username you created in MySQL doesn't have correct 
permissions. You can test using the MySQL command-line:

mysql -u root -p



--


-- 
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] Recent viewed jobs not work on the production after upgrade to 1.4.5

2010-06-19 Thread Eno
On Tue, 15 Jun 2010, scvroin wrote:

 at my shared server with Recent viewed jobs, it only works, I mean is
 show the job only when viewing the job, but when back to index page
 the Recent viewed jobs is empty


Look in your symfonh or Apache error logs.




-- 


-- 
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] change pages displayed by pager?

2010-06-18 Thread Eno
On Fri, 18 Jun 2010, Tofuwarrior wrote:

 Additionally I would like to implement a drop down so users can just
 select which page they want.
 Anyone got any pointers on how to extend the pager to do this.

Generating the pulldown is simple enough (since you have the number of 
pages and the links will be the same). Some simple JavaScript can be used 
to trigger the page load when the user selects a page number in the 
pulldown.



-- 


-- 
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] Form helper on symfony 1.4

2010-06-15 Thread Eno
On Mon, 14 Jun 2010, Gustavo Fonseca wrote:

 The book A gentle introduction do symfony[1] tells me that there is a
 helper called Form which can generate a select element containig a
 country list, but this helper is deprecated [2]! Somebody know if this
 feature does not exists anymore on symfony 1.4?

As the docs say, it was deprecated in 1.3 and removed in 1.4.



-- 


-- 
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] Possible to write a table-less doctrine schema definition?

2010-06-15 Thread Eno
On Tue, 15 Jun 2010, Christian Schaefer wrote:

 However this Form does not relate to a table in the database but is
 used to access a web service. So I need no model.
 
 Is there a way to define a virtual schema definition for this so
 that symfony doctrine:build --all will generate the appropriate
 classes in the developers project?

Im guessing you'll have to write your own model layer.



-- 


-- 
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] app.yml array is not array on first level

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Tom Ptacnik wrote:

 Do someone know why first solution produce bad array and second will
 produce good array?
 I'm talking abou settings in app.yml
 
 1)
 all:
   frontend_cultures: [cs, en]
 
 will produce (cache/app/dev/app.yml.php):
 
 'app_frontend_cultures_0' = 'cs',
 'app_frontend_cultures_1' = 'en',
 
 2)
 all:
   frontend:
 cultures: [cs, en]
 
  'app_frontend_cultures' = array (
   0 = 'cs',
   1 = 'en',
 ),
 
 


Im guessing using an underscore in the array name is a problem since the 
config handler uses underscores too.

You can use alternate syntax.

http://www.symfony-project.org/gentle-introduction/1_4/en/05-Configuring-Symfony#chapter_05_sub_yaml_syntax_and_symfony_conventions



-- 


-- 
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] Plugin post install processing

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Serkan Koyuncu wrote:

 I think, you have to create another task which user should run after
 installing your plugin.

Probably you need to supply the CLI task 'plugin:publish-assets'.


-- 


-- 
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] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote:

 I am trying to generate an app on my symfony project...as usual...I have a
 frontend, and the one I am trying to kickstart is backend.
 here is the command I am putting in..(following the symfony jobeet tutorial,
 Day 12: the admin generator)
 
 php symfony generate:app --escaping strategy=on --csrf-secret=***
 backend
 
 so this does generate my backend and it statest that it should be available
 at
 
 localhost:8080/backend_dev.php
 
 but when I navigate to this URL, what I get is...oops page not found

Does the file exist in your web folder?


-- 


-- 
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] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Eno wrote:

 Does the file exist in your web folder?

Or you can follow the examples in the help (where the app name is after 
'generate:app'but before the options), run symfony help generate:app to 
see the help.



-- 


-- 
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] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote:

 *When you created the frontend application, the production front controller
 was named index.php. As you can only have one index.php file per directory,
 symfony creates an index.php file for the very first production front
 controller and names the others after the application name.*

Yes, its stated several times in the docs.

 Now when I look into routing.yml of my backend app, here is what it states:
 
 *homepage:
   url:   /
   param: { module: default, action: index }
 
 default_index:
   url:   /:module
   param: { action: index }
 
 default:
   url:   /:module/:action/**
 
 So clearly, the instruction that it would default it to the name of the app,
 did not take place, it still shows index as the default parameter...

In the routing above, index is the name of an action, nothing to do with 
the controller filename...

 changed wherever 'index' is to ''backend' to mimic the name of my app...but
 that did not help either...

Yes, because of what I said above.

Its clear, you dont understand about routing and controllers, so reading 
up on it might be useful.



-- 


-- 
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] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote:

 So on basis of my probing, the everytime u create a new application, after u
 have created ur inital application (presumably frontend_dev.php), go to the
 web folder...u shud notice an existing frontend_dev.php which was created by
 symfony the first time u created an application. For each successive
 application(applicationName1, applicationName2) that you created, the
 consecutive dev files are not being created in symfony.
 
 To fix this, manually create it off your own, so you have an
 applicationName1_dev.php and an applicationName2_dev.php, now copy paste the
 content of frontend_dev.php to each of these appsopen them and change
 this line:
 $configuration = ProjectConfiguration::getApplicationConfiguration('*
 frontend*', 'dev', true)
 
 to
 
 $configuration =
 ProjectConfiguration::getApplicationConfiguration('applicationName1', 'dev',
 true)
 
 and you are set!

Yes, you copied a controller and made it use the dev environment, the same 
way the you would create a staging controller, AS SHOWN IN THE DOCS.

I think almost all your posts are answered in the docs, is there some 
reason you dont read them? Why use a framework if you dont want to learn 
it?



-- 


-- 
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] A pagination issue

2010-06-10 Thread Eno
On Wed, 9 Jun 2010, Parijat Kalia wrote:

 Got it working!!!
 Thanks a lot to both yourself and ENo!!!

You could also clean up the URL and make it more user- and SEO-friendly by 
using routing and the link_to() helper (you know, actually using the 
framework properly). Query strings are fugly.

http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System


-- 


-- 
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] accessing action instance in sfComponent

2010-06-10 Thread Eno
On Thu, 10 Jun 2010, Daniel Lohse wrote:

 And I'm also going to say this: use the API documentation to find out what 
 you want to do and how to get there. :)

What? You mean, read documentation? That would be far too convenient! :-D


-- 


-- 
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] Create sub-directory in Backend Application on the fly

2010-06-09 Thread Eno
On Wed, 9 Jun 2010, Md. Al Amin Chowdhury wrote:

 if i set full permission(0777) to support directory,the subdirectory
 with files are created successfully.
 
 For security reason i cann't set the full permission(0777) to support
 directory.
 using default permission, I tried to create sub directory, it says
 warning  chmod,mkdir()
 [function.mkdirhttp://localhost:8004/backend_dev.php/tickets/function.mkdir]:
 Permission denied.

The problem is that the web server software is not running as you, so it 
will not be able to create subfolders unless you give it write 
permissions, so you must use 0777.

But why are you creating files? Using files to save information is 
probably the slowest way to persist data.

Just two reasons why using a database is much better (Id say taking a 
parameter from a URL and opening a file with it is a much bigger security 
problem, what if P=/etc/passwd ?).


-- 


-- 
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] Re: Create sub-directory in Backend Application on the fly

2010-06-09 Thread Eno
On Wed, 9 Jun 2010, pghoratiu wrote:

 You can create the support directory with ownership set up as the user
 used to run apache (under Ubuntu this is www-data)

Possible only if you have root access so you can chown the folders. But 
then you'll have problems when running CLI tasks (e.g. symfony cc, etc).

But I would question the whole idea of creating files in the first 
place...


-- 


-- 
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] A pagination issue

2010-06-09 Thread Eno
On Wed, 9 Jun 2010, Parijat Kalia wrote:

 So in the summary of records page, when I click upon one of the students
 records, this students name is transferred to the detailed records page in
 the URL parameter.
 IN the detailed records page action, here is what I do
 
  $username = $_GET['Name'];
 $this-pager = $this-getPager($username);
 
 This pager displays data in the template, clearly with pagination, however,
 when I move to the next page  (page 2 , or 3, or 4), it fails to retrieve
 the necessary data for the page and displays zero questionsthe
 pagination code is like:
 
 ?php if($pager-haveToPaginate()) { ?
 
 div class=pagination
 a href=/questions/student?name=?php echo $studentName; ??page=1
   img src=/images/first.png alt=First page /
 /a

Why are you using $_GET instead of $request-getParameter()?

Maybe you need to read about controllers:
http://www.symfony-project.org/gentle-introduction/1_4/en/06-Inside-the-Controller-Layer

You also need to read up on what a query string is and how to format it 
because your code above is incorrect.

http://en.wikipedia.org/wiki/Query_string



-- 


-- 
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] help:doctrine

2010-06-08 Thread Eno
On Mon, 7 Jun 2010, safa boubekri wrote:

 i  make  this  code in my action
 
 $this-test = Doctrine_Query::create()
-select('titre')
-from('Cotisation')-execute();
 
 it's give me  the Id   but not  'titre'

Sounds like you keep asking the same question over and over again. Do you 
understand what ORM means? I dont think so, so please read up on it:

http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine

You will always get objects back from queries. Its up to you to grab the 
appropriate field to print or add a method to provide a proper string, etc 
etc.




-- 


-- 
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] Re: I don't see images in production in a shared server

2010-06-08 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

 When I say minimum I'm thinking in price :).

Most of your problems stem from the fact that your hosting provider 
doesn't allow certain config directives needed for symfony. So just find a 
provider that does. I use cheap virtual servers but they do require you 
know how to setup and maintain a Linux server but that might not be 
appropriate for you. You'll have to do some research and find something 
you can manage. The symfony wiki has some useful info:
http://trac.symfony-project.org/wiki#Installingsymfony



-- 



-- 
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] help:doctrine

2010-06-08 Thread Eno
On Tue, 8 Jun 2010, safa boubekri wrote:

 thank you for  the  link but the version of symfony wich i  use is 1.3

No difference between 1.3 and 1.4, as you can see here:
http://www.symfony-project.org/gentle-introduction/1_3/en/08-Inside-the-Model-Layer-Doctrine




-- 


-- 
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] Re: Symfony cache, override?

2010-06-07 Thread Eno
On Sun, 6 Jun 2010, zedan wrote:

 pghoratiu, thanks for your reply. #1 can help me a little, but i
 should also work more for it.

Switching off the action cache and caching template fragments and partials 
is the correct approach. Read the chapter on caching in the Gentle book.



-- 


-- 
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] I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

 I have deployed my symfony app into a shared server. The problem: for 
 example, the images and the .css of the default page that says
 
 |ok
 Symfony  Project  Created
 Congratulations!  You  have successfully created your symfony project.
 
 Project  setup successful
 ...
 |
 
 are not loaded.
 
 I have tried to modify ProjectConfiguration.class.php and web/.htaccess 
 but i dont know what should write exactly..

You need to setup the /sf alias in your web server configuration:

http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration#chapter_05_sub_web_server_configuration

http://www.symfony-project.org/gentle-introduction/1_4/en/03-Running-Symfony#chapter_03_sub_the_secure_way

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01#chapter_01_sub_web_server_configuration



-- 


-- 
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] Re: Symfony cache, override?

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, zedan wrote:

 I found my solutions, put the _index_partial to layout page, and set
 cache config do not cache layout page.

You mean layout.php? That means layout.php (which is used for all pages) 
is never cached? Probably not a good idea from a performance standpoint. 
Much better to switch off cache ONLY for the actions that use that 
partial, i.e. only when you need to.



-- 


-- 
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] php symfony configure:database mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

 php symfony configure:database mysql:host=localhost;dbname=pist1 root
 
 Can I specify my machine IP Address

Yes.


-- 


-- 
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] php symfony configure:database mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

 When I execute the below
 
 php symfony propel:insert-sql
 
 Error Message
 =
 Execution of target insert-sql failed for the following reason:
 /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
 [wrapped: access violation [Native Error: Access denied for user
 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
 [phing]
 /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
 [wrapped: access violation [Native Error: Access denied for user
 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]


This is a basic MySQL permissions error. The username you're using doesn't 
have correct permissions.



-- 




-- 
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] php symfony configure:database mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

 I guess you are right. Actually we install the mysql through Apache Friends
 xampp for linux. How can I configure my database for remote connections ?

Use the GRANT command in MySQL. Go read the MySQL dfocs.



 
 Regards
 
 Deepak Bhatia
 
 2010/6/7 Michał Piotrowski mkkp...@gmail.com
 
  Hi,
 
  Do you have database configured for remote connections?
 
  For example default PostgreSQL configuration for Linux allows only
  localhost connections.
 
  Regards,
  Michal
 
  2010/6/7 DEEPAK BHATIA toreachdee...@gmail.com:
When I execute the below
  
   php symfony propel:insert-sql
  
   Error Message
   =
   Execution of target insert-sql failed for the following reason:
  
  /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
   [wrapped: access violation [Native Error: Access denied for user
   'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
   [phing]
  
  /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
   [wrapped: access violation [Native Error: Access denied for user
   'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
  
  
   On Mon, Jun 7, 2010 at 8:52 PM, Eno symb...@gmail.com wrote:
  
   On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
  
php symfony configure:database mysql:host=localhost;dbname=pist1
  root
   
Can I specify my machine IP Address
  
   Yes.
  
  
   --
  
  
   --
   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.comsymfony-users%2bunsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en
  
   --
   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.comsymfony-users%2bunsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en
  
 
  --
   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.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
 
 

-- 
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] Re:  problem

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, wueb wrote:

 But why was the server working fine and without visible reason start
 giving this problem?

As others have popinted out, when editing UTF-8 files, you have to be very 
careful to maintain the correct encoding in the file.

 
 On 7 Jun, 16:16, saad st...@fruitsoftware.com wrote:
  Hi,
  this is probably due to the BOM (byte order mark) used with UTF-8
  encoding:http://en.wikipedia.org/wiki/UTF-8
 
  Usually, this is handled correctly by the browser (and the server) if
  the page encoding is UTF-8.
 
  Thanks,
 
  On Jun 7, 5:45 am, wueb webmaster@gmail.com wrote:
 
   In some of my pages are appearing this  on the top when is loading
   the webpage.
 
   Anyone know what problem is this?
 
 

-- 
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] I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

 On 06/07/2010 03:16 PM, Eno wrote:
  You need to setup the /sf alias in your web server configuration:
 
 Thanks Eno, but my app is in a shared host, so i can not modify the 
 server configuration.

Not a recommended setup. Im also guessing the remote server won't have 
symfony installed and so won't have the sf folder available anyway. Looks 
like your only option is to create the sf folder inside your public web 
folder and copy all images, stylesheets and javascript there manually.



-- 


-- 
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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

 How do I make tools like ./symfony guard:promote use the right DB
 connection configuration?

Im not familiar with that CLI task, but does it take any additional 
parameters allowing you to specify the connection? Maybe try the help 
command?

 Another somewhat related question. I also need to configure some
 parameters differently, depending on whether I'm on the production
 server or on the dev environment (some file paths, legacy php
 libraries, mailer configuration, etc). Which would be the best place
 to do it? (I assume that it would be a .yml file... which one, and how
 do I access it?). the goal is to minimize the ammount of changes that
 I must manually do after a project:deploy.

Several ways to approach this:

Set them programmatically in your project configuration (you can check if 
you are in dev or prod mode and change values as appropriate).

You can also set them in app.yml.

Or you can have two sets of configs (dev and prod) and copy the prod one 
over when deploying.

See symfony reference book:
http://www.symfony-project.org/reference/1_4/en/



-- 


-- 
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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

 So, is it configured per task?

Yes.

 I imagined there was some kind of
 config file... now that I think about it, it doesn't makes sense
 either (one would have to update that one).

Its built-in to the task, there's no config file.

 Ok, that particular task
 has a --env argument. But I imagined it would be something general to
 all tasks, and not something that one task may or may not accept.

Some tasks dont need env, or will use whatever the default values are.

 Btw, which help command are you referring to? symfony help doesn't
 say much. The help for /that/ task, mentions --env (not that I knew
 about it, thanks for the hint that it was task-specific instead of
 symfony-wide),

I think all tasks have built-in help, so you can do something like

symfony help taskname

where taskname is the name of the task , e.g. generate:project

Its mentioned in the original symfony book and the latest Gentle book:
http://www.symfony-project.org/gentle-introduction/1_4/en/16-Application-Management-Tools#chapter_16_sub_custom_tasks

Also mentioned in Jobeet tutorial:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03#chapter_03_the_orm

And the 1.2 cookbook:
http://www.symfony-project.org/cookbook/1_2/en/tasks

 but my question was more generic (I used the
 guard:promote example only because it was the latest I ran into). So
 there doesn't seem to be a help file that answer the question
 how do I make tools like [some example] use the right DB connection
 configuration?, thought there is one that answers how do I make this
 particular task use the right DB configuration?, which, of course,
 solves it for that particular task.

Most tasks will use whatever your defaults are. If they take any 
parameters, the help command will tell you.

 I've read it. Several times. The first one, before I chose to use
 symfony. And also parts of the source code... but I didn't memorize
 it, and it seems my google skills weren't good enough to find my
 answer there. Could you provide me a more specific link?

Its mentioned here:
http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles#chapter_03_environment_awareness

As you can see, you can define some settings based on environment (dev, 
prod, etc).




-- 


-- 
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] Re: I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

 Ok Eno, anyway I forgot to say that even the .css and .js from the
 plugins are not loaded. Is there any way to mend it or should I copy
 them also manually?

It depends. If those plugins are using symlinks, then you might need to 
replace them with the actual files, if your web server is configured to 
not follow symlinks.



-- 


-- 
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] Remove cache accross apps

2010-06-06 Thread Eno
On Sun, 6 Jun 2010, fizyk wrote:

 So I copied the code, and modified, added 'module/index' string.
 According to the book, that should be it. However it isn't.
 the removePattern for the sfFileCache, joins the passed cache_dir with
 pattern directly: cache_dir/pattern, but there are few folders between
 in my case (maybe it's always like this?):

Yes it is - but you can pass wildcards in the pathname to clearGlob().


-- 


-- 
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] Re: Custom directory structure

2010-06-05 Thread Eno
On Fri, 4 Jun 2010, Ragnis wrote:

 Why does it even have to be so complicated..

Actually its not, symfony is quite flexible but it *does* require you read 
and learn the framework to use it well.



-- 


-- 
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] How to paginate search-results?

2010-06-04 Thread Eno
On Fri, 4 Jun 2010, comb wrote:

 If I use the users-session like setting a var is_new_search , I will
 be afraid of someone who manually sets this var in his cookie to
 FALSE.

Depends how you store session data. Ive used MySQLSessionStorage in the 
past (the cookie just stores hash used as key into session data table).



-- 


-- 
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] Overriding settings.yml

2010-06-04 Thread Eno
On Fri, 4 Jun 2010, Carlos Jorge Andrade wrote:

 Is it possible to override settings.yml at the module level ?
 I know it's possible with security.yml and view.yml but I can't find  
 any reference to settings.yml

There's a reference in the Reference book:

As discussed in the introduction, the settings.yml file is 
environment-aware, and benefits from the configuration cascade mechanism.

http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles#chapter_03_configuration_cascade



-- 


-- 
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] __tostring

2010-06-03 Thread Eno
On Wed, 2 Jun 2010, safa boubekri wrote:

 but i want to have npmprenom in the table of paiment: select*from paiment
  it give me  id_person   not  nom prenom

I think Alexandru already answered.



-- 


-- 
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] __tostring

2010-06-02 Thread Eno
On Tue, 1 Jun 2010, safa boubekri wrote:

 *class paiment extends BasePaiment
 {
 public function __toString()
 {
 return $this-getPerson()-__toString();
 }*
 *
 *
 *but the id_person   is style number*

What is 'style number' ?



-- 


-- 
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] __tostring

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, safa boubekri wrote:

 in the table   paimnentthe id_person is still  number
 
 i want that it will be  give me  the nom  prenom  of person

So in the Person class, you need to define __toString() that returns the 
string in the format you need.

Example: 
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03#chapter_03_see_it_in_action_in_the_browser




-- 



-- 
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] Re: Read only/HTML form widget

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, Norbert Haigermoser wrote:

 You can make any form field read/only this way:
 
 example:
 $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), 
 array('readonly'='readonly'));

Correct me if Im wrong, but that doesn't work for input tags that DONT 
take a readonly attribute (e.g. SELECT). That's why the validator is 
needed.




 Am 6/2/10 10:21 AM, schrieb Tom Ptacnik:
  I think it would be wise to combine sfWidgetFormDiv with
  sfValidatorReadOnlyField from the snippet.
 
 
  On 1 čvn, 23:34, Tarjei Husetar...@scanmine.com  wrote:
 
  Hi again, after looking further on the issue, I ended up with a widget
  that does this.
 
  See:http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDi...
  On 06/01/2010 03:41 PM, Tarjei Huse wrote:
 
 
 
 
 
   
  On 06/01/2010 02:54 PM, Thibault Jouannic wrote:
 
   
  Hi,
   
   
  http://snippets.symfony-project.org/snippet/387
   
   
  Jolly good!
 
   
  Have you asked for it's inclusion into sfForm main? IMHO it deserves to
  be there :)
  Tarjei
 
   
  You're welcome :)
   
   
  Thibault.
   
   
  On Jun 1, 11:16 am, Tarjei Husetar...@scanmine.com  wrote:
   
   
  Hi,
 
   
  This is something I quite often miss and therefore I would guess there
  is a solution for it. Quite often I want a field from an object shown in
  my form in a read only fashion. I.e the user sees the field but cannot
  edit it.
 
   
  Also, has someone created a simple widget for adding HTML elements into
  a form?
 
   
  Kind regards,
  Tarjei
 
   
  --
  Regards / Med vennlig hilsen
  Tarjei Huse
  Mobil: 920 63 413
 
  --
  Regards / Med vennlig hilsen
  Tarjei Huse
  Mobil: 920 63 413
   
 
 
 

-- 
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] Cache problem? I don't know

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, wueb wrote:

 I'm having a problem with symfony on my server.
 
 Almost every action i do that goes to database i need make a F5 to the
 page to the modifications appear.

What is F5 ?



-- 


-- 
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] batch import

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, f1gm3nt wrote:

 I'm looking into doing batch imports with a symfony task. The issues
 I'm having are seg faults and running out of memory. Even after
 jacking the memory limit to 2gigs. Has anyone else ever done batch
 imports using a symfony task that can shed some light on how they did
 it?

If this involves using the ORM layer to import data, I would import the 
data in small batches or skip the ORM layer entirely.



-- 


-- 
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] Class 'Swift_SmtpTransport' not found in task

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, [ISO-8859-1] João Soares wrote:

 I'm trying to send a mail from a task, yet I get this error:
 
 Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib
 \task\RelatoriosTask.class.php on line 157
 
 How can I include this class in the task?

Are you sure SwiftMailer classes are loaded?



-- 


-- 
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] Cache problem? I don't know

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, wueb wrote:

 For example, when i update a record from a table, when he goes to the
 show page he still have the old values, but if i make F5 the new
 values will appear.
 
 Same with logout for example. When i make logout i need press the
 logout butto and then make F5 to the logout take place.
 
 Any idea what's this?

Might be a good idea to read the chapter in the symfony book about 
caching: 
http://www.symfony-project.org/gentle-introduction/1_4/en/12-Caching



-- 


-- 
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] Re: recursive redirect :-/

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, comb wrote:

 Output:
 string '/search/q' (length=9)
 string 'http://localhost:8047/frontend_dev.php/search/q' (length=47)
 boolean false
 
 But I would expect the $is_recursive to be true?!
 How can I evaluate if the current route is the same as the referrer
 comes from? :-/


Maybe if you told us what you're trying to accomplish, we can suggest 
possible solutions. What you're trying to do sounds odd to me, there might 
be a better way though.



 On 3 Jun., 00:28, pghoratiu pghora...@gmail.com wrote:
  You need to evaluate your routes into a module/action tuple, see the
  last
  example on this 
  page:http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routin...
  You can probably load the routes separately from the YAML as well.
 
       gabriel
 
  On Jun 3, 12:24 am, comb sa...@gmx.net wrote:
 
   yeah but how can I check if the current page is the same as the user
   comes from?
 
   On 2 Jun., 21:20, Eno symb...@gmail.com wrote:
 
On Wed, 2 Jun 2010, comb wrote:
 In a executeIndex(...) I want to redirect to the referrer, but only if
 the referrer is not the current action.
 How can I do that?
 
 //...
            $ref = $request-getReferer();
            if ($ref != ...what do I need HERE?...)
            {
                    $this-redirect(empty($ref)?'@homepage':$ref);
            }
    }
 //...
 
 problem is that the getReferer() method returns not a route but a
 string with the whole http-uri incl. server etc..
 
That's right - that's what a referrer string 
is.http://en.wikipedia.org/wiki/HTTP_referrer
 
--
 
 
 
 

-- 
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] Re: recursive redirect :-/

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, comb wrote:

 But now there is a search-results page, too, that comes from the
 search-action, where the redirection is done. If the user starts a new
 search from here and is too fast he gets the flash-message again, but
 the redirect to the last page is recursively since he came from the
 same action as he's redirected to. In this case I want to redirect the
 user to @homepage, too. But I don't know, how to find out, if the
 referrer matches the current route.

What Ive done in the past is generate the URL for the current page and 
store it in the session, so you can examine it in your action and take 
appropriate action. Referer is really not reliable so I donbt use it.



-- 


-- 
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] Re: Read only/HTML form widget

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Tarjei Huse wrote:

 Have you asked for it's inclusion into sfForm main? IMHO it deserves to
 be there :)

+1

Its a nice clean solution.



-- 


-- 
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] Re: Symfony 1.4 Alias

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Gareth McCumskey wrote:

 This is all easily answered by looking at the symfony documentation which has 
 a helpful section on setting up a symfony application on a shared web hosting 
 service, i.e. a service where you do not have root access to the machine 
 hosting the site:
 
 http://www.symfony-project.org/book/1_0/03-Running-
 Symfony#chapter_03_sub_configuring_a_shared_host_server

Those of us that have been using symfony for a few years, remember the 
excellent definitive guide and how to get to it. Its also great that we 
have it 'back' with the introduction of the gentle introduction book.

BUT, its rather unfortunate that this old link has information that is no 
longer present in the current book. And there's no link to the old book on 
the current site, so only us 'oldies' know about it :-/



-- 


-- 
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] __tostring

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Alexandru-Emil Lupu wrote:

 Find the alias that you are using to reference those 2 models, and just do
 a plain __toString in your *paiement table
 
 Like
 class paiment extends BasePaiment
 {
 public function __toString()
 {
 return $this-getPerson()-__toString();
 }
 }

Shouldn't __toString() get invoked automagically if you try to echo/print 
getPerson() ? Its a magic method right?



-- 


-- 
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] Re: CSS and Javascript paths

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Florian wrote:

 Hi!
 
 Try
 
  RewriteBase /appx
 
 In every .htaccess

Probably not for an app who's front controller is in web, maybe only the 
web/appsx folders.

Also be aware that htaccess rules in effect in the folder in which they 
are defined AND any subfolders - so if you have any special rules in web's 
htaccess file you might need to explicitly cancel them out first for 
htaccess files in subfolders.


-- 


-- 
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] Re: Symfony 1.4 Alias

2010-05-31 Thread Eno
On Mon, 31 May 2010, RedQueen wrote:

 Ok... I really appreciate your help mr Donald.
 So answer 1) I can add alias through special menager panel for the
 hosting server. (but I dont want alias), everything what I can do with
 my serwer I have to do through this menager panel. I can use FTP
 client to upload and download files.
 2) On my serwer I have 3 folders: cgi-bin, requetes and www.
 Everything what is in www folder we can se through the browser with
 the easiest URL like www.my_page.com.

So the contents of your web folder should be in the www folder.

 Other folders are protected and
 there is no way to see the content of other folders through any
 browser.

Good, so the rest of your symfony folders can go in requetes. You will 
probably need to edit index.php in web so it knows how to load the symfony 
classes (since the rest of nthe code is now one level 'up').

 3) I can upload files everywhere I want but like I said only 
files in  www folder are visible in the browser.
 4) I can use .htaccess

The htaccess file should be in www as usual.

 extra 5) I tried with .htaccess. I create .htaccess file next to www
 folder but didnt worked as I expected. So I moved it into www folder
 bot the same result.
 Content of the .htaccess file was at the first time:
 RewriteEngine on
 RewriteRule ^/$ /www/my_extra_folder/
 
 and after I moved it into www folder:
 RewriteEngine on
 RewriteRule ^/$ /my_extra_folder/
 
 And what can I say. Of course it redirect me to the my_extra_folder
 BUT the URL in the browser looked like this www.my_page.com/
 my_extra_folder.
 This mean that somebody can change the URL and get access to
 www.my_page.com/apps/.

Not if your apps folder is outside www.

 Also I wrote a mail to the company which provides hosting services for
 me but I'm sure it is to late to get the answer today. I asked about a
 way to change the root folder on the server from www to www/
 my_folder.

Dont need to mess with aliases if you deploy as Ive described. Your www 
folder should only need index.php and the htaccess file. If yhou've 
changed the htaccess file from the default, you probably should change it 
back.



-- 


-- 
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] Re: shopping cart?

2010-05-30 Thread Eno
On Fri, 28 May 2010, bretth wrote:

 I agree that it's easy to get a basic shopping cart going; the issue
 really is all the extra things; the main one being advanced sales
 reporting.

Sales reporting doesn't have much to do with building a shopping cart. 
That would involve running some queries against your orders database 
surely?



-- 


-- 
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] symfony criteri

2010-05-29 Thread Eno
On Fri, 28 May 2010, Parijat Kalia wrote:

 $c= new Criteria()
 $c-add(QuestionsPeer::USERNAME,'ali');
 $results = QuestionsPeer::doSelect($c);
 
 Now $results contains all the data of the questions table, where I am
 looking only for the question column, what do I need to add to the above
 query to make it work,

Im assuming you're using Propel:

foreach($results as $result) {
print $results-getQuestion();
}



-- 


-- 
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] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread Eno
On Sat, 29 May 2010, Olivier wrote:

 An Unbuntu or a Debian. Stay away from CentOS at all costs if you want
 recent binary packages.

I avoid the Redhat/CentOS/Fedora family like the plague. I run Gentoo on 
all my servers (source-based distros have faster updates than binary ones 
:-)



-- 


-- 
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] symfony criteri

2010-05-29 Thread Eno
On Sat, 29 May 2010, Parijat Kalia wrote:

 Dude..that is obvious way to do it...but still $results has all the data in
 it, most of which happens to be unnneeded data...I was asking for a way to
 filter that out and retrieve only the question part...thanks though!

Which part of object-relationship mapping are you having difficulty with? 
An object represents a row  - you won't get partially hydrated objects 
from the ORM layer when doing a select. You could always write raw 
queries and hydrate your own non-ORM objects if you like.



   looking only for the question column, what do I need to add to the above
   query to make it work,
 
  Im assuming you're using Propel:
 
  foreach($results as $result) {
 print $results-getQuestion();
  }
 
 
 
  --
 
 
  --
  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.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
 
 

-- 
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] Re: configure getListBatchActions() in backend

2010-05-28 Thread Eno
On Fri, 28 May 2010, Ricardo wrote:

 thanks for the response but I don't understand what I have to do.

You said that the page you see doesn't change unless you clear the cache 
right? That's your clue. This means you must be looking at a cached page 
which in turn means you are (incorrectly) caching a page that depends on 
session data. Therefore to 'fix' this you can:

1) If you are caching the whole page then you must make the cache key 
depend on the state (i.e. if logged in, maybe use userid in cache key 
otherwise use a general 'not logged in' key)

2) OR if you are caching fragments of the page, then make sure you dont 
cache fragments that change depending on session data.

3) OR if this page is not public and mot used very often you could choose 
to switch off caching for that page.

You should read up on caching in symfony:
http://www.symfony-project.org/gentle-introduction/1_4/en/12-Caching



-- 


-- 
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] Re: template:no value

2010-05-28 Thread Eno
On Fri, 28 May 2010, safa boubekri wrote:

 i have all  page  is white

WHen you view source, there's no HTML?



-- 


-- 
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] How to remove index.php and backend.php from the url ?

2010-05-28 Thread Eno
On Fri, 28 May 2010, John wrote:

 
 I'm trying to remove index.php and backend.php from my urls, so that I
 can have :
 - www.example.com/index.php - www.example.com
 - www.example.com/index.php/api/events.xml - www.example.com/api/events.xml
 - www.example.com/backend.php/admin - www.example.com/admin
 
 I've uncommented LoadModule rewrite_module modules/mod_rewrite.so in
 httpconf and I've got an .htaccess file in the web folder :

You also need to switch on no_script_name in your app settings:
http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System#chapter_09_url_rewriting



-- 


-- 
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] change database server in action

2010-05-28 Thread Eno
On Fri, 28 May 2010, Mohammad Ali Safari wrote:

 I want to be able to change the database server base on some info from
 users, e.g. their IP address. Has anybody implemented such a thing, or has
 an idea on how to do that?
 
 I tried creating a filter class to be executed at the beginning of filter
 chain with some logic like this:
 
 $database = new sfPropelDatabase($params);
 $database-initialize(array (
   'phptype' = 'mysql',
   'hostspec' = --server--
   'database' =--db_name--
   'username' = --db_pass--,
   'password' = --db_password--,
 ), 'propel');
 sfContext::getInstance()-databases['propel'] = $database;

Which version of symfony? Which version of Propel?

e.g. might be possible to extend sfDatabase and create your own database 
class (similar to sfPDODatabase) and then you can create your own database 
connections.

(I haven't done this myself but looking through the database classes, I 
saw how sfPDODatabase creates connections and thought it might be 
possible).

Or you might be able to create a connection in your model by passing in 
suitable parameters from the action.


-- 


-- 
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] inject user information

2010-05-28 Thread Eno
On Fri, 28 May 2010, f1gm3nt wrote:

 I'm writing a symfony task that needs a user to run some of the
 functions. Is it possible to inject user information so that when I
 call sfContext::getInstance()-getUser()-getId() it will not break?

I could be wrong, but I dont think you have a user when you're running PHP 
on the command-line since there's no server and hence no session.



-- 


-- 
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] Affordable managed hosting for use with symfony

2010-05-28 Thread Eno
On Fri, 28 May 2010, Yair Silbermintz wrote:

 I'm about to embark on a project for a new client. They are a small business
 that does not have the resources to manage their own server.
 
 Anyone have a recommendation for a managed hosting solution that works well
 with symfony? Cost will play a big factor, so the cheaper it is the better.

Managed hosting to me implies either a shared server (not very flexible) 
or a dedicated server managed by somebody (not cheap).



-- 


-- 
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] Re: inject user information

2010-05-28 Thread Eno
On Fri, 28 May 2010, f1gm3nt wrote:

 I found a way to do it, here's the code
 
 sfContext::createInstance($this-configuration);
 $this-logSection('user', 'logging user in');
 $user = sfContext::getInstance()-getUser();
 $user-setAttribute('user_id', '1', 'sfGuardSecurityUser');
 $user-setAuthenticated(true);
 $user-clearCredentials();
 $user-addCredentials($user-getAllPermissionNames());
 $user-setAttribute('workingClient', $options['workingClient']);
 $this-logSection('user', 'User has been logged in');


i.e. you faked it with a mock object.



-- 


-- 
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] Affordable managed hosting for use with symfony

2010-05-28 Thread Eno
On Fri, 28 May 2010, Daniel Lohse wrote:

 Take a look at what Servergrove has to offer. All their VPS instances  
 are alright and they come pre-configured with symfony. Shared hosting  
 is not an option, obviously (don't even consider it). :)

Ive been happily using Linode (linode.com) for virtual servers. The only 
thing is that most VPS setups are not managed in the traditional sense. 
You are expected to maintain the server yourself.



-- 


-- 
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] Re: How to remove index.php and backend.php from the url ?

2010-05-28 Thread Eno
On Fri, 28 May 2010, John wrote:

 Here is the solution for rewriting website/backend.php  to website/
 admin and makes the admin area to work.


Since mod_rewrite directs all routes to index.php, there can be only one 
controller per folder, and this solution *is* documented in the symfony 
book. You could also just rename backend.php to index.php and not need to 
change the rewrite rule to use backend.php.



-- 




-- 
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] configure getListBatchActions() in backend

2010-05-27 Thread Eno
On Thu, 27 May 2010, Ricardo wrote:

 For example i log in with an advanced admin account, so I can see the
 list batch action with the action delete. Then I log out and I log in
 with a normal admin account, and the list with the action still there
 and inversely . If I first log in with a normal admin account then the
 advanced admin doesn't see the list batch action. The template changes
 only if I clean the cache. How can I solve this problem ?

You need to set the cache key to a known value for both normal admin and 
batched admin accounts. That way, the template is cached but there are two 
versions of the page.



-- 


-- 
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] how to change text label attached to new link in embedRelation form

2010-05-27 Thread Eno
On Thu, 27 May 2010, Tofuwarrior wrote:

 I have successfully use embedRelation to embed a relation in my form
 BUT the new link at the bottom has a label next to it that says
 NewUglyLongPropelObjectName  .
 
 How can I change this, I haven't set any new link anywhere so I'm not
 sure how to change this.


http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sub_setlabel_getlabel_setlabels_getlabels


-- 


-- 
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] cvs

2010-05-26 Thread Eno
On Wed, 26 May 2010, safa boubekri wrote:

 but i have this  result
 
 bNotice/b:  Use of undefined constant resultat - assumed
 'resultat' in 
 bD:\sym_project\ajf\apps\Backend\modules\association\actions\actions.class.php/b
 on line b28/bbr /

Where is resultat defined?

Nowhere according to the error message...



-- 


-- 
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] Ajax based doubt

2010-05-26 Thread Eno
On Wed, 26 May 2010, Parijat Kalia wrote:

 1) Enabling jQuery or Prototype (which 1 is better and easier to learn)

jQuery has a lot more widgets available IMHO.

 2) Do I need to download anything off the net, or are the 2 jscript
 libraries inbuilt. I find several plugins for jquery, so not sure what to
 download

Look for the sfJqueryReloadedPlugin.

 3) I have two drop down menus. Upon selection of drop down menu bar 1, the
 menu of drop down menu bar is created. This I believe is a Javascript
 issue,but the menu off each off these items comes off my php script, so I am
 not sure how I can echo this within my javascript. I know you can have
 javascript being echoed out of php, but u certainly can't have it the other
 way round. Either ways, how can I transfer the menu arrays which I have in
 PHP to javascript. Or is this an ajax issue?

You could create Javascript arrays from PHP and use js event handlers to 
setup your menu using them when uses mouses over or clicks.

Most probably there is a jQuery widget out there that does this for you. 
Use Google.


-- 


-- 
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] cvs

2010-05-26 Thread Eno
On Wed, 26 May 2010, safa boubekri wrote:

 i want  that csv  contan the content  of table   association
 
 but i  have in  the csv :
 
  bD:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas
 s.php/b

Which is part of the error message you sent earlier...



-- 


-- 
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


  1   2   3   4   5   6   7   8   9   >