Hi,
i would like to replace the lines
function *{
by
function *{echo "The function starts here."
where * is what ever.
Any idea how to do that in Python?
Regards
Javi
Hi,
i have this code:
if(sfContext::getInstance()->get('form_signin')){
//...
}
but im getting this error:
The "form_signin" object does not
exist in the current context.
Any right way to check if a variable saved in sfContext is set or not ?
Regards
Javi
Hi,
any time i write this:
$this->setTemplate('module/action');
I'm getting this error:
The template
"module/actionSuccess.php" does not
exist or is unreadable in "".
So.. how to set a template from another module ?
Javi
Hi,
I have registered mydomain.com now i want to redirect to my IP hosting account.
The DNS editor shows two fields: Name and Address.
In Address i wrote the IP i want the domain redirects.
And in Name I wrote mydomain.com.
After submitting the form, the page shows this line:
Name Type Record
mydomain.mydomain.com. A 173.203.58.251
I expected it shows this:
Name Type Record
mydomain.com. A 173.203.58.251
Is that OK? or am i doing some wrong?
Regards
Javi
Hi,
i have this two lines:
var_dump($parametros_post_signin);
$this->redirect('prueba/aux?email='.$parametros_post_signin['signin']);
the first one prints this:
array
'signin' =>
array
'email_address' => string '' (length=0)
'password' => string '' (length=0)
the second one takes to another action where i have this code:
var_dump($request->getParameter('email'));
that prints this:
string 'password' (length=8)
I expected it to print something like this:
string '' (length=0)
What should i do to the get value of the 'email_address' field ?
Regards
Javi
Hi,
sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
sfGuardUser:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(128)
notnull: true
unique: true
As you can see 'username' has the feature "notnull:true". Now i want
to create a register form that is not using 'username' but the email
address of the user.
When a user wants to register, it is showed this:
Validation failed in class sfGuardUser
1 field had validation error:
* 1 validator failed on username (notnull)
Any idea?
Javi
Hi,
imagine i have made a co. Then if I remove a folder and create another one with the same name. Then if i try to ci I get:
svn: Commit failed (details follow):
svn: Directory '/opt/lampp/htdocs/prueba4/apps/frontend/modules/moto/.svn' containing working copy admin area is missing
laptop@laptop:/opt/lampp/htdocs/prueba4$ sudo svn st
~ apps/frontend/modules/moto
If i tried to add that folder i get:
svn: warning: 'apps/frontend/modules/moto' is already under version control
What should i do?
Regards
Javi
Hi,
i want to show a select which options are the character '-' and a range of integers.
I have this:
$years = range(14,130);
new sfWidgetFormChoice(array('choices' =>
array_merge(array('' => '-',array_combine($years,$years)));
The problem: between the '-' and the range of integers there is a "0" (bold and italic).
Any help?
Regards
Javi
Hi,
i have this line:
<?php include_component('sfGuardRegister', 'register') ?>
when it's executed i get a blank page. I have debugged include_component() and the flow processing is not entering inside of it, i mean:
function include_component($moduleName, $componentName, $vars = array())
{
die("enter");
echo get_component($moduleName, $componentName, $vars);
}
Any idea?
Hi,
why should i use a component instead of an action that renders a partial?
If actions can render partials, when is better using components?
Give me light about it..
Javi
Hi,
when i go with the mouse pointer on the function it doesn't show the location, class...
i have this problem in one of my projects. All is executed ok so the functions are there :).
Build id: 20090920-1017
Any idea?
Javi
Hi,
i have these methods in module1/actions/actions.class.php:
public function executeMethod1(sfWebRequest $request){
$a = 10;
sfContext::getInstance()->set('a', $a);
return $this->redirect('module1/method2');
}
public function executeMethod2(sfWebRequest $request){
echo sfContext::getInstance()->get('a');
}
When i execute module1/method1 i get this error:
"The "a" object does not exist in the current context."
Any idea?
Javi