Hi I am trying below
=
TO ADD A FOREIGN KEY TO AN EXISTING TABLE (I couldn't see a good
example) you can do this:
alter table users add foreign key(favGenre) references products_genre
(gid);
Where favgenre is the column of the
Hi,
How can I add a column to the mysql table which refers a foreign table ?
I have added a column project_type in project_table but this refers to
projecttype_table.
Regards
Deepak Bhatia
On Thu, Mar 26, 2009 at 6:11 PM, Dheeraj Kumar Aggarwal <
dheerajcom...@gmail.com> wrote:
> Hi Deepak,
>
That was my first thought as well. Log onto the command line of the server
your application is sitting on, and try to connect via the mysql command
line client to the remote server. That cannot connect error is synonomous
with either incorrect connection details or lack of priviledges on the
remote
Ok, this is actually caused by sfErrorHandlerPlugin, if i move it out
of my plugins folder, the page loads fine now. Looks like it may be
sfErrorHandlerPlugin being a bit over zealous in reporting errors if
its catching @ suppressed errors...
-J
On Tue, Mar 31, 2009 at 7:44 AM, Fabian Lange
wr
did you check the mysql connection using mysql command line? It is
possible that mysql server is not set to allow remote connections or
that the user has not privileges.
Pablo
On Tue, Mar 31, 2009 at 6:45 PM, Joshua wrote:
>
> I'm trying to move my project to the production server and its havin
I'm trying to move my project to the production server and its having
trouble connecting to the remote database. The development server used
localhost.
[Tue Mar 31 18:40:34 2009] [error] [client xx.xx.xx.xx] Unable to open
PDO connection [wrapped: SQLSTATE[HY000] [2003] Can't connect to MySQL
ser
How about
$last_line = system('dir c:\\', $retval);
or maybe
$last_line = system('dir c:\', $retval);
Tomasz Ignatiuk wrote:
> for
> $last_line = system('php.exe -v', $retval);
> $last_line = system('dir c:\\php5', $retval);
> $last_line = system('dir c:\\php\\php5', $retval);
> there is
>
> -
I deleted /usr/share/PEAR and reinstalled pear that fixed it
--~--~-~--~~~---~--~~
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 fr
2009/4/1 Daniel González
> 2009/3/31 Joshua
>
>>
>> [root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
>> this gave me a PHP fatal error memory exhausted. i updated php.ini
>> memory_limit to 32MB then restarted
>>
>> [root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
>> Ignori
2009/3/31 Joshua
>
> [root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
> this gave me a PHP fatal error memory exhausted. i updated php.ini
> memory_limit to 32MB then restarted
>
> [root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
> Ignoring installed package symfony/symfony
also
[root@ ]# /usr/share/bin/pear uninstall symfony/symfony-1.2.2
No package to uninstall given
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us
[root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
this gave me a PHP fatal error memory exhausted. i updated php.ini
memory_limit to 32MB then restarted
[root@ ]# /usr/share/bin/pear install symfony/symfony-1.2.2
Ignoring installed package symfony/symfony
Nothing to install
[root@ ]# /
for
$last_line = system('php.exe -v', $retval);
$last_line = system('dir c:\\php5', $retval);
$last_line = system('dir c:\\php\\php5', $retval);
there is
--
Last line of the output:
--
Return value: 127
--
Last li
Ahhh! Thank you!!!
The URL should be:
http://localhost:8080/frontend_dev.php/job/edit/id/1
YEAH! I'm on to Day 4.
-- Emily
At 01:35 PM 3/31/2009, Fà SI Gábor wrote:
>You linked screenshots for two different screens: one for the job
>list, one for an edit job page.
>Just checked jobeet day
Cool, it works
Still to find php.exe ;)
Try this:
';
$last_line = system('php.exe -v', $retval);
echo '
Last line of the output: ' . $last_line . '
Return value: ' . $retval;
Can you verify anyhow if this is correct path? "c:\\php5\\php.exe"
Or, try also this:
';
$last_line = system('dir c:\
You linked screenshots for two different screens: one for the job
list, one for an edit job page.
Just checked jobeet day 03, seems like the url is incorrect, it should
be like /job/edit/1 or something like that.
On Tue, Mar 31, 2009 at 22:27, Emily Berk wrote:
>
> I've gone through Day 3 of the
I've gone through Day 3 of the tutorial. When I call up the thing at
the end of the day, I see something that looks like this:
http://www.flickr.com/photos/armadillosoft/3402686504/
Is this correct? But it's SUPPOSED to look like this:
http://www.symfony-project.org/images/jobeet/1_2/03/job.
Hello, Jon.
Thank you for response. But it looks like it is false alarm. At present time
while importing fixtures, Doctrine could count my fixture as NestedSet in 2
cases:
1) It looks similar to this:
> ProfileStat:
> NestedSet: yes
>
Notice indentation level - it is same as regular err... Pro
FusionCharts frontend.php js sfProtoculousPlugin
backend.php frontend_dev.php robots.txt sf_cc_webscript.php
backend_dev.php imagessfFormExtraPlugin uploads
css index.php sfPropelPlugin
--
Last
Something not good...
Let's try with system commands, erm... maybe "dir"?
';
$last_line = system('dir', $retval);
echo '
Last line of the output: ' . $last_line . '
Return value: ' . $retval;
Tomasz Ignatiuk wrote:
> It returned
> -
It returned
--
Last line of the output:
--
Return value: 127
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send e
Ok, try this:
';
$last_line = system('c:\\php5\\php.exe -v', $retval);
echo '
Last line of the output: ' . $last_line . '
Return value: ' . $retval;
Tomasz Ignatiuk wrote:
> I used \, then \\ and each time it is stripped out
>
> *Fatal error*: Uncaught exception 'sfException' with message 'P
I used \, then \\ and each time it is stripped out
*Fatal error*: Uncaught exception 'sfException' with message 'Problem
executing command sh: line 1: c:php5php.exe: command not found ' in
/home/users/iwitch/public_html/pd/lib/symfony/task/sfFilesystem.class.php:291
Stack trace: #0
/home/users/iwi
"c:/php5/php.exe" will not work for windows:
But "c:\\php5\\php.exe" a must.
Let's simplify, for example:
sh('c:\\php5\\php.exe -v');
echo $res;
Let me know if above works for you.
Thanks.
Tomasz Ignatiuk wrote:
> I thought it should be a path to project, hehe.
>
> So now there is
>
> c:/php
I thought it should be a path to project, hehe.
So now there is
c:/php5/php.exe -c c:/windows/php-isapi.ini
"/home/users/iwitch/public_html/pd/lib/symfony/command/cli.php" cc
*Fatal error*: Uncaught exception 'sfException' with message 'Problem
executing command sh: line 1: c:/php5/php.exe: No su
Yes, now I see windows :)
And now it's another error:
Fatal error: Uncaught exception 'sfException' with message 'Problem
executing command sh: line 1: c:php5php.exe: command not found '
See "line 1: c:php5php.exe: command not found"? This is actual error. It
lost "\" from $command var.
Try to
Command:
c:\php5\php.exe -c -n c:\windows\php-isapi.ini "/home/users/iwitch/
public_html/pd" cc
My project is in "/home/users/iwitch/public_html/pd" I use '/' because
this is how symfony shows errors
This is for PHP5 on my server. Asmin gave me this path: c:
\php5\php.exe -c -n c:\windows\php-is
Hmm. This looks like another similar bug. Can you create a ticket and we'll
troubleshoot the scenario to see what is going on.
Thanks, Jon
On Tue, Mar 31, 2009 at 6:20 AM, Andrei Dziahel wrote:
> Hi, all.
>
> I have an model class that acts as NestedSet and I18n simultaneously. When
> I'm trying
It is currently not possible. You can create a ticket but I think one might
already exist for this similar issue.
- Jon
On Tue, Mar 31, 2009 at 4:09 AM, Loïc Vernet wrote:
> I am embedding an i18n form of a table "a la Jobeet", this works great. But
> i'd like to be able to group this form / fi
sfSympalForumPlugin has not been created yet.
- Jon
On Tue, Mar 31, 2009 at 8:29 AM, jmaicher wrote:
>
> Hey!
>
> I've been spending hours looking for a forum dedicated to 1.2 and
> doctrine.
> I read about a sub plugin for sfSympal called sfSympalForumPlugin but
> unfortunately it's not integra
Today I read something about a with_wildcards_route option. Is this in
effect for the batch actions to work properly?
I don't get a 404 error (which is normal when you have a route
problem), but the CSRF attach error as noted above. That's why I think
the with_wildcards_route option doesn't cause
On Tue, 31 Mar 2009, sachin jain wrote:
> how to use generator.yml in frontend
Remember, the symfony command-line tool has built-in help:
$ symfony help propel:generate-admin
Usage:
symfony propel:generate-admin [--module="..."] [--theme="..."]
[--singular="..."] [--plural="..."] [--env="
Campezzi, thanks a lot! This indeed works! I did the Jobeet tutorial,
but oviously I read over it.
public function generateFileFilename(){
return 'testnow.pdf';
}
My file has a neat testnow.pdf file name on upload.
On 31 mrt, 15:05, Campezzi wrote:
> I didn'
Hi,
could be error reporting.
The four digit file exists, because it is the new file that shall replace
the old one. Due to the way it is implemented in PHP we need to remove the
file .yml before we move the . to its place. However the unlinking fails
which sucks...
I am open for ideas and will
you can use check out the swDoctrineAssetsLibraryPlugin, works with doctrine
and sf1.2
http://trac.symfony-project.org/browser/plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.2
On Tue, Mar 31, 2009 at 11:10 AM, mathiasv wrote:
>
> Hi,
> Look at his : http://raw.trac.symfony-project.org/tick
You can do it by doing something like this:
sfContext::getInstance()->getController()->dispatch('myModule',
'myAction', array('param'=>'test'));
The parameters you want to pass are an array.
This way you still keep all your code in actions, and you can use
templates you've created for your emai
Sorry for multiple posts ..
See:
http://groups.google.com/group/symfony-users/browse_thread/thread/bb2ad23ac986fff9
On 31 Mrz., 11:30, Julian Maicher wrote:
> Hey!
>
> Does anybody know a forum plugin which works with doctrine and 1.2?
>
> Thanks for your ideas,
>
> Julian
--~--~-~--~--
hello,
i speak a little english.
I have to manage users (group and permission) for multiple application
SSO with CAS server.
I found the plugin sfGuard (management of users, group, permission)
and I have a library phpCAS. My only problem is that authentication is
not http or LDAP auth, but by
It's pretty simple .. you created a class which extends sfForm?!
If so you just have to implement the configure()-function where you
can create widgets (I hope you did that so far).
With $this->setValidators you can specify validators for each widget
or you can add a post validator.
little exampl
Hey!
I've been spending hours looking for a forum dedicated to 1.2 and
doctrine.
I read about a sub plugin for sfSympal called sfSympalForumPlugin but
unfortunately it's not integrated in the latest release of
sfSympalPlugin.
Does anybody know if there is really a sfSympalForumPlugin? Or any
oth
Hi,
Look at his : http://raw.trac.symfony-project.org/ticket/5608
M.
On 9 mar, 18:58, Big Al wrote:
> I've been searching for an answer to this all day with no luck.
>
> Can anyone help shed some light onto whether or not there is soon
> going to be Symfony 1.2 compatible versions of sfMediaLib
Hey!
Does anybody know a forum plugin which works with doctrine and 1.2?
Thanks for your ideas,
Julian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to sy
Hi, I get this exact same problem - an sfLegacyException because it
tries to unlink a cached view.yml file. What is odd is that the
view.yml file in question does kind of exist, except that it ends with
xxx_view.yml. (with the final four digits being a four digit
number). This only happens in
hi,
i'm using symfony 1.2.5 and have problems with internationalized
models in the backend.
i tried to reproduce te internationalization-paret of the jobeet-
tutorial at http://www.symfony-project.org/jobeet/1_2/Propel/en/19
i have the following schema:
# config/schema.yml
category:
_attri
hi,
it seems a very good job! thks for sharing!
2009/3/31 Tom Boutell
>
> > John Wage: won't be porting sympal to Propel himself...
>
> Yeah, the same goes for pkContextCMS. There are reasons why Doctrine
> is so compelling to us CMS-codin' types.
>
> Over time I think programmers will vote with
I wonder what happend about Nicolas' sfEmailPlugin... It was supposed
to be in sf1.2. Does anyone have any news about it?
Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to t
I asked this question before,
1. if you are using syfmony 1.2, no more sendEmail() function is good, just
write it dierectly into your task
2. as running in cli, no request_uri is good, just hard code the url
This is my experience
On Tue, Mar 31, 2009 at 9:21 AM, kusum wrote:
>
>
> Hi ,
> ho
Hi ,
how i can send email in batch script using sendEmail and set
request parameter for email.
Thanks,
Kusum
On Mar 31, 5:18 pm, kusum wrote:
> Hi ,
> how i can send email in batch script using sendEmail and set
> request parameter for email.
>
> Thanks,
> Kusum
>
> On Mar 28, 7:
yes that is what I have to do now, no longer to seperate email into a
seperate action. Only that if many place need to send one similiar email? It
is no longer as convenient as that in symfony 1.0, but hopefully, this kind
of occurance is not high.
On Tue, Mar 31, 2009 at 9:14 AM, Tom Boutell wro
I really like the way SwiftMailer integrates with Symfony. My
sfDoctrineApplyPlugin uses it for confirmation emails.
My own feeling is that separate actions for emails are a pain because
in the action that wants to send the email in the first place you
usually have all of the necessary data ready
I didn't test this, but I remember seeing something like that in the
Jobeet tutorial:
"If a generateLogoFilename() method exists in the model, it will be
called by the validator and the result will override the default
generated logo filename. The method is given the sfValidatedFile
object as an
>From what I could gather, the problem is that this is a dynamic form,
where the user can add new fields on the fly. When the form is
submitted, the script doesn't know exactly how many checkboxes exist
(because the user could have created 2, 3, 10, or 50 of them). That's
why Mark can't use $reque
Thanks to everyone, your responses where invaluble!
This is what I ended up using:
public function execute($request)
{
$manager=new ReportManager();
$response=$this->getResponse();
$response->setContentType("text/csv");
$response->setHttpHeader('Content-Disposition', 'attachm
> John Wage: won't be porting sympal to Propel himself...
Yeah, the same goes for pkContextCMS. There are reasons why Doctrine
is so compelling to us CMS-codin' types.
Over time I think programmers will vote with their feet and Doctrine
will tend to replace Propel, but we shall see.
--
Tom Bou
"Fatal error: Uncaught exception 'sfException' with message 'Problem
executing command sh: line 1: */etc/php5/apache2: is a directory*"
Make sure you have correct command, for example first parameters must be
full path to php binary, NOT directory.
Let me know how your $command var finally looks
Hi Mark,
You can use the method sfAction::renderText() to render a given string
bypassing the normal view layer. As others pointed out above, use the
methods in sfResponse to change the content type.
public function execute($request)
{
$manager=new ReportManager();
$this->getResponse()->
Hi ,
how i can send email in batch script using sendEmail and set
request parameter for email.
Thanks,
Kusum
On Mar 28, 7:43 pm, Kris wrote:
> Kasum,
>
> Which version of Symfony are you using?
>
> In your batch script, do you have:
>
> define('SF_ENVIRONMENT', 'cli');
>
> This setting will
$response = $this->getResponse();
$manager=new ReportManager();
$response->setContent($manager->getReport());
$response->sendHttpHeaders();
$response->sendContent();
throw new sfStopException();
On Tue, Mar 31, 2009 at 1:58 PM, Dheeraj Kumar Aggarwal <
dheerajcom...@gmail.com>
Hi Smith,
u can set your content type by
$response->setContentType('text/csv');
//$response->setContentType('text/x-csv');
//$response->setContentType('application/csv');
$response->setHttpHeader('Content-Disposition', 'attachment; filename=' .
$file_name);
On Tue, Mar 31, 2009 at 5:16 PM, cokke
try to return SfView::NONE
or disable layout in module/view.yml
greets
Sven
Mark Smith schrieb:
> Hi,
>
> I am trying to add an action that just returns a report as raw CSV
> data.
>
> Is it possible to bypass the template layer and just set my own
> content?
>
> My code looks like this so f
Hi, all.
I have an model class that acts as NestedSet and I18n simultaneously. When
I'm trying to import following fixture.yml via symfony doctrine:data-load,
it throws "Unknown method ProfileStat::setChildren" error message. symfony
1.2.4, Doctrine 1.0.*8* (I've updated Doctrine to latest 1.0 af
Hi,
I am trying to add an action that just returns a report as raw CSV
data.
Is it possible to bypass the template layer and just set my own
content?
My code looks like this so far:
public function execute($request)
{
$response = $this->getResponse();
$manager=new ReportManager();
Thank you Very much For your Reply.
And iam in little confusion where i have to write that code.
Please Can you give the Example.
On Mar 23, 8:26 pm, Fási Gábor wrote:
> You can use the validators described in the Forms book, appendix
> Bhttp://www.symfony-project.org/book/forms/1_2/en/B-Valid
supply "frontend" as argument in generator CLI
On Tue, Mar 31, 2009 at 11:37 AM, sachin jain wrote:
> how to use generator.yml in frontend
>
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" gr
The generator.yml file allows on-the-fly configuration of the generated
admin only. You cannot use it to automatically render a frontend website
which I think is what you might be expecting. Please elaborate on your query
and someone might be able to help you.
Steve
2009/3/31 Paolo Mainardi
>
>
On Tue, Mar 31, 2009 at 11:43 AM, sachin jain wrote:
> Its in french I need to know how to use generatoir.yml in frontend not to
> backend
>
What you mean ?
>
>
> On Tue, Mar 31, 2009 at 3:10 PM, Paolo Mainardi
> wrote:
>
>>
>>
>> On Tue, Mar 31, 2009 at 11:37 AM, sachin jain wrote:
>>
>>> how
Its in french I need to know how to use generatoir.yml in frontend not to
backend
On Tue, Mar 31, 2009 at 3:10 PM, Paolo Mainardi wrote:
>
>
> On Tue, Mar 31, 2009 at 11:37 AM, sachin jain wrote:
>
>> how to use generator.yml in frontend
>
>
> :)
>
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
>
On Tue, Mar 31, 2009 at 11:37 AM, sachin jain wrote:
> how to use generator.yml in frontend
:)
--
Paolo Mainardi
CTO Twinbit
Blog: http://www.paolomainardi.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
how to use generator.yml in frontend
--~--~-~--~~~---~--~~
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 em
I am embedding an i18n form of a table "a la Jobeet", this works great. But i'd
like to be able to group this form / fields like the standarts one, i tried
several things but it does not work, i'd like somethink like that:
form:
display:
"Id": [=id]
"Infos":
This looks nice, but not working. Maybe because this is Windows server
and it has something to do with shell commands?
Fatal error: Uncaught exception 'sfException' with message 'Problem
executing command sh: line 1: /etc/php5/apache2: is a directory ' in /
home/users/.../public_html/pd/lib/symfo
I guess you can all disregard my previous post. I bit the bullet and got the
admin to switch to APC cache which now doesn't cause the segmentation fault
but for some reason the data is not being stored correctly.
Using the following code:
public static function doSelect(Criteria $criteria, $con =
Sometimes there are two different *.ini locations for php: one for CLI
and one for the webserver.
You should check that out.
Michael
On 31 Mrz., 08:53, sachin jain wrote:
> [PropelException]
> [wrapped: mysql extension not loaded [User Info: Array]]
>
> in linux I am am getting what could be
Hi again all,
Well it seems I was able to find the problem myself. It seems the
eAccelerator suffers intermittent segmentation fault issues with Apache 2
and that the symfony cache classes invoke this response on attemtoing to
retrieve cached values, possibly due to the size of the data stored in
Hi all,
A while back I posted about an idea to improve performance using the memory
caching classes of eaccelerator. We now have eaccelerator installed on the
server, and its running fine so today I decided to persue my plan and begin
overwriting the doSelect and save methods of a few select model
75 matches
Mail list logo