http://www.symfony-project.org/api/1_4/AssetHelper#method_image_tag
http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System
The sf documentation is great.
Le lundi 04 octobre 2010 à 11:19 +0200, ahmed shehata a écrit :
thank you but how can i do that
my
instead of a full image tag like img src=. / use the image_tag helper:
?php echo image_tag('name_of_image.gif') ?
On Mon, Oct 4, 2010 at 11:19 AM, ahmed shehata a7med.she7...@gmail.comwrote:
thank you but how can i do that
my images located in
web/images
2010/10/4 Gábor Fási
Hello Allo,
I'm having strange problem while using sfDoctrineMasterSlavePlugin
with I18N tables.
In schema.yml
Category:
tableName: category
actAs:
I18n:
fields: [name]
length: 5
columns:
name:
type: string(255)
notnull: true
In databases.yml
all:
How do you currently render your form?
You can call each part of a widget separately and wrap into whatever HTML
you prefer.
$form['widget_name']-renderError(); //Renders errors if any
$form['widget_name']-renderLabel(); // Render the field label
$form['widget_name']-render(); //Renders the
Instead of worrying about having two different application VERSIONS why not
have two different types of USERS. So you have user1 that is allocated to
Core and user 2 that is allocated to Advanced. You can then use
symfony's built in session management to limit access to Advanced features
if a Core
Instead of hardcoding the urls, use the `image_path()` helper,
example: `image_path('icon-home.gif')`.
2010/10/3 ahmed shehata a7med.she7...@gmail.com:
hi all
i am a new SF student and i am developping a sample app
there is a problem when i try to to show the page
the problem is that images
thank you but how can i do that
my images located in
web/images
2010/10/4 Gábor Fási maerl...@gmail.com
Instead of hardcoding the urls, use the `image_path()` helper,
example: `image_path('icon-home.gif')`.
2010/10/3 ahmed shehata a7med.she7...@gmail.com:
hi all
i am a new SF student and
Hi,
if want to create new object throught propel route.
eg: link_to(add refurbishment, '@offer_refurbishment_new')
the new offer_refurbishment object has a referenced offer object
(foreign key offer_id). in the new (edit) form there is a hidden field
with name offer_id.
how can a set this
I have defaulf form configuration
..
'contractor_id' = new sfWidgetFormDoctrineChoice(array('model' =
$this-getRelatedModelName('contractor'), 'add_empty' = false)),
.
but the query must vary depending on credentials
for example: where contractor_id = 3
what option should I use for it
Problem solved)
2010/10/4 Pavel Pecheny ppech...@gmail.com
I have defaulf form configuration
..
'contractor_id' = new sfWidgetFormDoctrineChoice(array('model' =
$this-getRelatedModelName('contractor'), 'add_empty' = false)),
.
but the query must vary depending on credentials
for
In the new action for the related object, just stick that ID into the
object or set it as default for the form.
$object = new Whatever();
$object - setRelatedId($request - getParameter(offer_id));
$form = new WhateverForm($object);
//OR
$form = new WhateverForm(new Whatever());
$form -
So, i have to create a new route and modify the executeNew action?
Is there no way to use the default @offer_refurbishment_new route?
Am 04.10.2010 18:27, schrieb Richtermeister:
In the new action for the related object, just stick that ID into the
object or set it as default for the form.
Hi all! I was hoping to get a dummy question answered. I have set my
Kernel.php to load .yml files but some of the bundles, including
DoctrineUserBundle, uses XML files.
How can I make use of both YML and XML config files?
Thanks
--
If you want to report a vulnerability issue on symfony,
Just import the XML resource from a YAML one or the other way around. It
works natively.
Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80
On 10/4/10 8:24 PM, bkuberek wrote:
Hi all! I was hoping
Hi,
I have a bunch of components that get their data from external web
services.
I have caching configured on the components.
If the API call returns no data (due to an error externally, or
latency or anything else) I want the response to not be cached,
otherwise the cached component then
Thanks Fabien
On Oct 4, 2:47 pm, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
Just import the XML resource from a YAML one or the other way around. It
works natively.
Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org |
My edit form does not update when I make changes to it. I have to wait a
couple of seconds and hit refresh. Same with a page that queries the
database and shows the records. The table is updated in mysql, but the form
shows the old value.
public function executeEdit(sfWebRequest $request)
{
Hi, i need a empty module on my application but when try this
m...@sopias ~/code/Projects/php/retratos/trunk $ ./symfony
doctrine:generate-module public feed
display this error
symfony doctrine:generate-module [--theme=...] [--generate-in-cache]
[--non-verbose-templates] [--with-show]
Le lundi 04 octobre 2010 à 13:34 -0700, Martin Ibarra Cervantes a
écrit :
symfony doctrine:generate-module [--theme=...] [--generate-in-cache]
[--non-verbose-templates] [--with-show] [--singular=...]
[--plural=...] [--route-prefix=...] [--with-doctrine-route]
[--env=...]
Hi,
I have this query inside a method:
public static function pincopalla(){
$con = Propel::getConnection(SediI18nPeer::DATABASE_NAME);
$sql = select * from sedii18n where culture = :country
UNION
select * from sedii18n where culture :country;
I want to use tjSolrDoctrineBehaviorPlugin, but I've got some problem.
How should I configure my solr when I use Ubuntu system?? In
documentation it only tells how set up tjSolrDoctrineBehaviorPlugin on
debian.
Where should I edit this line
PROJECT_NAME=mysfproject
??
--
If you want to report a
hi, thanks Jérémie but the error is because i use doctrine:generate-module.
i read the documentation
symfony generate:module aplication module
is only generate:module and not doctrine:generate-module
thanks for you time.
On Mon, Oct 4, 2010 at 1:47 PM, Jérémie jeremie.symf...@gmail.com
Hi,
I have the same problem in few hours ago, this is my solution example, hope
it can help you.
$q = Doctrine_Query::create()
-from('Tagging tg, tg.Tag t')
-select('tg.taggable_id')
-whereIn(tg.taggable_id,
23 matches
Mail list logo