Créer un compte ou loggez-vous pour pouvoir ajouter, commenter et noter les snippets.

Navigation

Tags relatifs

my Symfony Plugins

Plugins demos


My bookmarks

Vous pouvez commenter/noter en utilisant le compte anonymous (mot de passe: anonymous)
You can comment/rate using the anonymous account (password: anonymous).

Snippets taggés : "symfony link" Snippets taggés : "symfony link"

[symfony 1.0] Creer un lien vers une popup et modifer sa taille - 293 view(s)

<?php echo link_to(__('(code phpbb activé)'), 'http://www.phpbb.com/support/documentation/2.0/#section4_2_5', array('popup' => array(__('Code phpBB'), 'width=750,height=400,left=0,top=0,scrollbars=1'))); ?>
 

== Liste des options

The parameters  URL, name, features, replace have the following meaning:
URL     String specifying the location of the Web page to be displayed in the new window. If you do not want to specify the location, pass an empty string as the URL (this may be the case when you are going to write some script-generated content to your new window).
name    String specifying the name of the new window. This name can be used in the same constructions as the frame name provided in the frame tag within a frameset <FRAME NAME=name ...>. For example, you can use hyperlinks of the form <a target=name href="page.htm">, and the hyperlink destination page will be displayed in your new window.
 
If a window with this name already exists, then window.open() will display the new content in that existing window, rather than creating a new one.
features    An optional string parameter specifying the features of the new window. The features string may contain one or more feature=value pairs separated by commas.
replace     An optional boolean parameter. If true, the new location will replace the current page in the browser's navigation history. Note that some browsers will simply ignore this parameter.
 
The following features are available in most browsers:
toolbar=0|1     Specifies whether to display the toolbar in the new window.
location=0|1    Specifies whether to display the address line in the new window.
directories=0|1     Specifies whether to display the Netscape directory buttons.
status=0|1  Specifies whether to display the browser status bar.
menubar=0|1     Specifies whether to display the browser menu bar.
scrollbars=0|1  Specifies whether the new window should have scrollbars.
resizable=0|1   Specifies whether the new window is resizable.
width=pixels    Specifies the width of the new window.
height=pixels   Specifies the height of the new window.
top=pixels  Specifies the Y coordinate of the top left corner of the new window. (Not supported in version 3 browsers.)
left=pixels     Specifies the X coordinate of the top left corner of the new window. (Not supported in version 3 browsers.)
par COil le 2008-09-29, taggé : javascript  link  popup  symfony 
(1 commentaire)

[symfony 1.0] Garder un comportement get avec un link_to - 121 view(s)

<?php echo link_to('interesting article', 'article/read', array('query_string' => 'title=Finance_in_France')) ?>
 
par COil le 2008-09-28, taggé : get  helper  link  symfony  url 
Debug toolbar