These are my enabled mods:
alias auth_basic authz_default authz_groupfile authz_host authz_user autoindex deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status
I'm attempting to reduce Apache's memory footprint as much as possible.
Can anyone guide me in the right direction as to which of these I absolutely need and...
If a certain condition is met, is it possible to tell symfony not to cache the current request? I'm aware of the contextual configuration flag, but this is an action, and not a partial or component, so I don't think it applies.
Context: I'm running a multi-site CMS. Each site can have multiple domain names associated with it, but one is...
I'm doing a blog engine in Symfony. Here's part of my schema :
Content:
connection: doctrine
tableName: ec_content
columns:
id:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: true
(...)
relations:
Author:
local: author_id
foreign: id
type: one
...
Hi all,
I'm coming from a php world and am now initaiting a project in .NET environment.
After looking around, I noticed that the combination of MVC, spring.net and NHibernate might work for me.
In PHP I created applications using Symfony (with propel or doctrine) that combined all these in one framework.
The Jobeet tutorial ( http://...
In the administration generated by symfony, how do I override the method executeIndex() ?
I want to list only the items that have a specific state, and all I found in cache/backend/dev/modules/auto.../ was :
$this->pager = $this->getPager();
How do I change the query used by the pager ?
...
Hi!
Currently, I am developing an application which domain model should prevent objects duplication according the equality or not of some object fields.
So, I am thinking to handle this comparison on the save method of the class: if some existing object has some properties equal to the object to be saved, the save should be prevented.
...
Situation:
I have 3 tables: Student, Address, StudentAddressLink As follows Note* not EXACT yaml file but you get the idea
Student:
column:
id: blah blah
name: blah blah
Address:
column:
id: ~
street: ~
StudentAddressLink:
column:
id:~
student_id: ~
address_id: ~
relations:
Student:
...
In a template I display the day and month of a specific date :
<div class="jour"><?php echo date('d',strtotime($content->getCreatedAt())) ?></div>
<div class="mois"><?php echo date('M',strtotime($content->getCreatedAt())) ?></div>
This works fine, problem is the month name is in English. Where do I specify that I want the month names ...
Hello,
in my application, I have a menu which is a partial (_menu.php)
I need in my menu which is on the entire application, to have access to that :
$this->user = $this->getUser()->getGuardUser();
$this->unread = Doctrine::getTable('sfSocialMessageRcpt')->countUnreadMessages($this->user);
But how to create an action for my partial...
i am using Symfony 1.4, to create my project. i have tried to deploy project using the command and methods given in chapter-16 in symfony book. but i am not able to deploy my symfony project from my local computer to web server. Can i directly copy paste my symfony project to my web server?? will that work?? or is there any other method?...
http://www.doctrine-project.org/documentation/manual/1_0/ru/behaviors:core-behaviors:softdelete
You are required to enable DQL callbacks in order for all executed queries to have the dql callbacks executed on them. In the SoftDelete behavior they are used to filter the select statements to exclude all records where the deleted_at fla...
My site is multilingual and if a user requests a page without specifying the two-letter language code, he'll be redirected to the proper language (using IP or previous cookie settings). For example you can try going to http://colnect.com and see you'll be redirected to colnect.com/en or colnect.com/es or other (53 languages are supported...
Hi, I've added a profile class to sfDoctrineGuard, and in the admin I'm trying to edit the profile part while editing the user, using embed forms as explained here:
http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin
Editing users works, but when I add
"User": [username, password,
p...
Hello,
I'm completely new with Symfony and Doctrine. I have generated a project with a the Doctrine ORM, my database schema is fully well generated.
Now I just want to create basic services (in simple .php pages) that do some actions according to parameters in a HTTP POST request.
I tried to create an app through the generate:app comma...
Hi, I'm trying to remove some fields from the form generated by sfDoctrineGuard.
I don't care about the name or email of my users, I just want them to have an username and a password.
I've tried editing /lib/form/doctrine/sfDoctrineGuardPlugin/sfGuardUserForm.class.php :
class sfGuardUserForm extends PluginsfGuardUserForm
{
public ...
I want to rename the "web" folder to "html" in symfony 1.4, unfortunately searching for documentation on this has lead me nowhere except for how this would be accomplished in 1.0, which does not seem to be working.
...
Ive got in app.yml some configration data, and I want to foreach them in action. I try do this by get them by sfConfig::get('app_datas') but it fails. Lets show them in details:
YAML:
all:
datas:
foo: bar
foo2: bar2
and in the actions.class.php I try use this code:
foreach (sfConfig::get('app_datas') as $key => $value) {
...
I'm trying out symfony so i started installing it on a remote mashine thru ssh (normal user, no root access)
when getting to the part where i want to generate the db-schema out of a existing mysql database with doctrine by issuing the following command:
./symfony doctrine:build-schema
i get the following errors:
Warning: require_on...
I have a symfony 1.4 project that uses Mongo db, but now I come to set up the deployment tasks with Capifony I can't get deployment to work as Capifony seems to take for granted the fact that I will be working with the databases.yml file, and either Doctrine or Propel - which I'm not in this case.
Is there an easy way to work round this...
My usual hosting environment is a dedicated server, however for one project I am required to deploy Symfony onto a Linux shared hosting account.
The project itself works fine, however, when I SSH in to the server the command line does not work as expected.
For example, if I navigate to data/symfony/bin then type:
php symfony
this r...