But your former posted ajax template works (the alert example)?? Why
the hell do use the body tag there? ...
The body tag should be listed in your decoration template.
Am 24.07.2009 um 08:34 schrieb DEEPAK BHATIA:
>
> Hi,
>
> Thanks for the info. But the code below in test2Success.php is YUI
Hi,
Thanks for the info. But the code below in test2Success.php is YUI
Javascript code which is not running. Please help me in this
=
http://yui.yahooapis.com/2.7.0/build/fonts/fonts-min.css"; />
http://yui.yahooapis.com/2.7.0/build/autoc
You can create a new security module and in the actions.class.php
create error404Execute function. After you've customized the
error404Success.php template, uncomment and modify in apps\frontend
\config\settings.yml the following:
.actions:
error_404_module: security # To be called
You need the "script" flag in your remote function call, otherwise you
permit to execute javascript within ajax responses:
http://www.symfony-project.org/book/1_2/11-Ajax-Integration#chapter_11_sub_authorizing_script_execution
Am 24.07.2009 um 07:41 schrieb DEEPAK BHATIA:
>
> Hi,
>
> The code
Hi,
The code in javascript section in test2Success.php is not executed.
Why is that when link_to_remote is called, the associated
action/module doesn't execute Javascript code ?
=
My main page has the following code
'feedback','url' => 'test/test2',)) ?>
What is $this->status_objects? How is it defined? Do you use Propel or
Doctrine to get data from your database?
If Doctrine then I don't know, but if Propel and you had at some point
perhaps:
$this->status_objects = StatusObjectsClass::doSelect(new Criteria());
Then $this->status_objects would b
Yes, my:
public function getStatusObject($key)
{
return (isset($this->status_objects[$key])) ? $this-
>status_objects [$key] : null;
}
is not returning an object and that why I'm having problems in the
template.
Anyone have any idea on this please?
I'd appreciate any help at all.
Tha
Hi,
Yes ArticlePeer:getTitle doesn't exist because is an Article class
method.
For retrieve the titles you must create an static method into peer
class that retrieve your data as an array (this is only one way to do
it)
public static function retrieveArticle(Criteria $c=null)
{
if(!$c) $c
I created an error/error.html.php file in my project's config directory as
documented here:
http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_default_modules_and_actions
However, symfony doesn't use my custom error page. I have the default
modul
Hi , i have this :
> $this->widgetSchema['estado_id'] = new sfWidgetFormPropelChoice(array(
>'model' => 'Estado',
>'add_empty' => false,
>'order_by' => array('Nombre', 'asc'),
>'default'=> '$estado_id->getId()',
> ));
But it just does not wo
I think that i18n:extract task looks for __() only in /apps/
yourappname/*.
Is it correct?
Carlo
On Jul 15, 9:27 am, Mateusz Kaczmarek
wrote:
> Hello, I have some trouble with i18n system. How to translate strings
> in form items that are generated automaticaly for example radio
> buttons or se
Did you clear your cache (php symfony cc) after doing a propel:build-all?
On Thu, Jul 23, 2009 at 18:07, carllang wrote:
>
> Hi
>
> I've just installed Symfony, and I'm busy going through th
> jobeet doumentation to setup the example app.
> I've got to the point of issuing this
> command:
> php s
Hi!
I was now looking for a solution for two days. And it's hard to find a
working one. Finally I found it and to make it easier for next one
looking for a solution, I will post it here:
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
This line added into the .htaccess removes the traili
Hi,
I think your problem is based on the behavior of Symfony
in "AJAX mode". When you load your action through
link_to_remote() it doesn't decorate that with your layout.
Without that it is possible to your ui-magic never initialized.
2009/7/23 DEEPAK BHATIA
> I have a web page which is referenc
Yes... ALL of them
I dunno what's happening but something is adding the slash in the end. the
html code is right: no slash.
---
Sidney G B Ferreira
Desenvolvedor Web
On Thu, Jul 23, 2009 at 16:20, Gábor Fási wrote:
>
> Do you have your routes before the catch-all :module/:action one?
>
> On
Do you have your routes before the catch-all :module/:action one?
On Thu, Jul 23, 2009 at 20:49, Sid Ferreira wrote:
> This error is happening almost in all my routes.
> One example is this:
>
>
> admin:
> url: /admin
> param: { module: sfAdminDash, action: dashboard }
>
> When you click o
Hi!!
Im trying to access my embedded form from my actions class, so i can set
a default value to a combo Box, i did this:
$this->form['embeded_form']->setDefault('combo', 'value');
But this comes:
*Fatal error*: Call to undefined method sfFormFieldSchema::setDefault()
in
*/home/germana/www/i
And also
if($user->hasGroup('Editor'))
{
unset(
$this['is_super_admin']
);
}
On 23 juil, 21:02, BenjaM1 wrote:
> Note that
>
> if($user->hasGroup('Editor'))
> {
> if($this->offsetExists('groups_list') die('toto');
>
> }
>
> works, it shows 'toto' !
>
> On 23 j
Note that
if($user->hasGroup('Editor'))
{
if($this->offsetExists('groups_list') die('toto');
}
works, it shows 'toto' !
On 23 juil, 20:55, BenjaM1 wrote:
> Hy,
>
> I have a strange issue in my code.
>
> I need to display fields of the sfGuardAdminUserForm in my template
> switch user gr
Hy,
I have a strange issue in my code.
I need to display fields of the sfGuardAdminUserForm in my template
switch user group:
- developers can edit permissions and groups so the complete form is
displayed in the view
- editors can't edit is_super_admin, permissions and groups.
So I test in the
This error is happening almost in all my routes.
One example is this:
admin:
url: /admin
param: { module: sfAdminDash, action: dashboard }
When you click on the link, it forwards to an error:
Empty module and/or action after parsing the URL "/admin/" (/).
What may be the problem? In _de
Hi,
I have a web page which is referenced by link_to_remote action.
This web page/template has yahoo user interface javascript api's.
When I call this page as normal form submission, I get the
functionality of yahoo user interface javascript api but not when it
is called as link_to_remote.
Ple
On Thu, 23 Jul 2009, mlu...@gmail.com wrote:
> showcategory:
> url: /category/:slug/:page
> param: { module: gamelists, action: category, slug: action, page:
> 1 }
> ...
>
> A corrresponding url look like
> /category/dress-up/1
>
> The call to link_top looks like this:
> link_to("dress-up
I tried what you tell me but this error comes out:
Unable to set the label on an unexistant widget ("from_date").
something like this should work.
$this -> widgetSchema -> setLabel("from_date", "From");
Daniel
On Jul 22, 8:08 pm, Germana Oliveira
w
Hi
I've just installed Symfony, and I'm busy going through th
jobeet doumentation to setup the example app.
I've got to the point of issuing this
command:
php symfony propel:data-load
and that gives me the following errors:
C:\work\sf_project\jobeet>php symfony propel:data-load
>> propelloa
something like this should work.
$this -> widgetSchema -> setLabel("from_date", "From");
Daniel
On Jul 22, 8:08 pm, Germana Oliveira
wrote:
> Hi!!
>
> Im trying to customize my UserFormFilter, so i have this in my setWidget:
> ...
> 'created_at' => new
> sfWidgetFormFilt
Thanks Eno,
I found a way which helped me return the absolute url for any location i
need through the public_path helper.
First i had to include the helper through the getConfigurations
sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url'));
and then just use the public_path('u
On Thu, 23 Jul 2009, Mo Mughrabi wrote:
>I was trying to generate an absolute URL inside my form classes using
> sfContext::getInstance()->getController()->genUrl(); but apparently genUrl
> only can be used when supplied a route or module/action but i cannot get it
> to return the absolute pa
Hello all,
I'm stuck here, I need help from the community.
Here is my schema :
MyUser:
> columns:
> sf_guard_user_id:
> type: integer(4)
> my_customer_id:
> type: integer
> email:
> type: string(255)
> relations:
> sfGuardUser:
> local: sf_guard_user_i
In the template? This is a function call though.
On Jul 23, 11:22 am, Dirk Hartmann wrote:
> getStatusObject[$key]->... Not Round brackets...
>
> Dirk Hartmann
> Schenckstr. 10
> 57074 Siegen
> m
>
> Am 23.07.2009 um 17:12 schrieb -gary- :
>
>
>
> > Apologies for replying to my own post, but do
In the template? This is a function call though.
On Jul 23, 11:22 am, Dirk Hartmann wrote:
> getStatusObject[$key]->... Not Round brackets...
>
> Dirk Hartmann
> Schenckstr. 10
> 57074 Siegen
> m
>
> Am 23.07.2009 um 17:12 schrieb -gary- :
>
>
>
> > Apologies for replying to my own post, but do
getStatusObject[$key]->... Not Round brackets...
Dirk Hartmann
Schenckstr. 10
57074 Siegen
m
Am 23.07.2009 um 17:12 schrieb -gary- :
>
> Apologies for replying to my own post, but does anybody have any idea
> on this one? I have no idea why I am getting this error.
>
> Thanks in advance.
>
> O
Apologies for replying to my own post, but does anybody have any idea
on this one? I have no idea why I am getting this error.
Thanks in advance.
On Jul 22, 7:43 pm, -gary- wrote:
> Hi,
>
> I am trying to do a multiple edit on a database table.
>
> Whn I output like this:
> [code]
> getStatusO
How do you make AJAX forms? Do you check each field immediately after
the user completes it (by adding a green border to it by example)? And
how can I make this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfon
Hi guys,
I'm just wondering, does someone implemented a way to do some "count"
verification at the end of a functional test file.
Kind of like unit testing, where we do :
$t = new lime_test(1, new lime_output_color());
Which mean indeed we gonna run 1 test.
Does something like that exist f
Hello everyone,
I was trying to generate an absolute URL inside my form classes using
sfContext::getInstance()->getController()->genUrl(); but apparently genUrl
only can be used when supplied a route or module/action but i cannot get it
to return the absolute path of my uploads folder. Any idea
Not using ajax for this call but thanks for the tip.
On Thu, Jul 23, 2009 at 2:28 PM, Gareth McCumskey wrote:
> Also make sure that if you have any ajax function calling your form that you
> set the "script"=>true option for example if you had used link_to_remote():
>
> link_to_remote("Link Text"
hmm, thats one way, but will not work as a solution for me.
Thanks anyhow.
On Thu, Jul 23, 2009 at 2:24 PM, Gareth McCumskey wrote:
> don't use the javascript: part.
>
> array( 'onclick' =>"setFilterCbValue('foobar');")
>
>
> On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse wrote:
>>
>> Hi
>>
>>
Also make sure that if you have any ajax function calling your form that you
set the "script"=>true option for example if you had used link_to_remote():
link_to_remote("Link Text", array(
"url"=>"module/action",
"update"=>"div_to_update",
"script"=>true
))
On Thu, Jul 23, 2009 at 2:09 PM, R
don't use the javascript: part.
array( 'onclick' =>"setFilterCbValue('foobar');")
On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse wrote:
>
> Hi
>
> Anyone know how to avoid filtering of javascript code in attributes
> passed to a widget?
>
> For example array( 'onclick' =>
> "javascript:setFilt
Hi
Anyone know how to avoid filtering of javascript code in attributes
passed to a widget?
For example array( 'onclick' =>
"javascript:setFilterCbValue('foobar');") gets sent but when the
filter renders to html:
onclick=""javascript:setFilterCbValue('foo');""
I think it is the htmlspecialchar
Hi,
I don't know if it's the best solution, but i hope it can help.
Create a plugin with a module that contain your partials.
Then you can share those partials between apps, you'll have just to
activate your module for your apps.
On 23 juil, 05:49, jskidmore wrote:
> I can only see how to sha
He's talking about seperate apps in the same project, not two different
projects. Like a frontend and backend app:
project_directory
apps
frontend
backend
On Thu, Jul 23, 2009 at 10:10 AM, Dennis wrote:
>
> Or create a symbolic link in both projects to a common project
> directory ind
OK thanks, I get it now.
On Jul 22, 5:37 pm, Gábor Fási wrote:
> the getCompanySlug is called camelCase, when the first letter is
> lowercase, every other first letter of a word is capital. Another was
> is to separate the words with an underscore, so companySlug is the
> same as company_slug,
Hi!
I have again a routing problem(It seems the routing system doesn't
like me very much :-))
On my site I have a category list, which shoes entries by category.
The routing is defined as:
...
showcategory:
url: /category/:slug/:page
param: { module: gamelists, action: category, slug: acti
Or create a symbolic link in both projects to a common project
directory individual files as needed?
Not really fancy, a little maintenance demanding, but MUCH faster :-)
On Jul 22, 8:49 pm, jskidmore wrote:
> I can only see how to share partials between modules in a single app.
> How can I sha
46 matches
Mail list logo