Try to look here
http://www.symfony-check.org/ - Delete /backend.php/ from your uri
Thursday, July 9, 2009, 3:49:42 AM, you wrote:
Guys, how can I achieve the following:
I have a working frontend in the rootdir. And the backend I want
to be inside the '/admin' directory. It possible, I
Use symlinks to point from your admin directory to your common web dir.
Am 09.07.2009 um 02:49 schrieb Sid Ferreira:
Guys, how can I achieve the following:
I have a working frontend in the rootdir. And the backend I want to
be inside the '/admin' directory. It possible, I don't want to
try to clean your cache, and if it doesn't work, get a look at
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_components
to learn how to create a component.
From what I can understand, the problem comes from the page you want
to display, not the layout.
- Julien
Hi
i think you should try sfConfig::get('sf_root_dir')
2009/7/9 Reynier Pérez Mira rper...@uci.cu
Hi every:
It's possible access to SF_ROOT_DIR value from a actions wich not
extends from sfProjectConfiguration? I try using
sfProjectConfiguration::getRootDir() directly and I get this error:
Hi,
After an interesting discussion with Jon and Russ
(http://trac.symfony-project.org/ticket/6708) I would like to open a
follow-up thread.
What are your strategies for initial application deployment and for
delivering updates? Do you do a SVN checkout on the server or use the
project:deploy
Well we are currently in Beta of a symfony development app and we originally
used the symfony deploy command as it seemed (at the time) the easiest to
use and allowed us to control when we update but it suffered from a few
drawbacks where we had to push our local copies to the remote server and we
I didn't wanted any of those... I wanted to have the dispatcher files
(index.php from backend and backend.php) inside a directory.
All assets be prefixed with '/..' (wich actually works) and the urls be
generated properly (my-domain.com/admin/backend_dev.php/route1) [wich
doesn't works]
Sidney G
Maybe way to add a prefix to the URL, even before the script_name if used?
Sidney G B Ferreira
Desenvolvedor Web
On Thu, Jul 9, 2009 at 07:19, Sid Ferreira sid@gmail.com wrote:
I didn't wanted any of those... I wanted to have the dispatcher files
(index.php from backend and
You'll need an entry like the below for each subdomain in your httpd-
vhosts.conf file:
The below is setup for having a central symfony install with multiple
apps using it, if you aren't doing that (ie: you just have the symfony
install in your projects lib folder) then you won't need the alias
Im posting this cause I had this issue and Im sharing the solution I found:
In factories.yml there's two 'all:' settings, line 27 and 34. If you
uncomment the second one, it kinda resets the first one and you loose the
block
routing:
class: sfPatternRouting
param:
sf1.2 doctrine
Hi,
I'm trying to create a change log for a table and I was wondering if
there was a way to get the values of a record before they were modified
so that I could add them to the log:
in the save method:
$log = new Log()
$log-old_value = $this-getOldValue();
$log-new_value =
They way I have it set up at the moment, is overriding the save() method
of the model class. It works fine, I create a log entry with the new
value. But what I want to include is the value of the db record before
it was updated so that I can have in the log something like:
DATE | USER | FIELD
If you don't checkout the entire project into the web root directory it
doesn't matter if you leave the config files such as databases.yml in the
project directory as users have no access there anyways.
i.e. checkout like we have to /usr/local/project_name and not /var/www/.
Then use Apache's
Just one comment on a trigger. They work great but they will break any
database abstraction you are hoping for in as much as triggers are unique
for specific database implementations and some don't even support them. This
then breaks one of (in my opinion) symfony's biggest strengths is database
The best way to do this is create an audit table and write a simple
trigger to insert records on each change
If you want to do it programmatically you can create a behavior.
Steve
On Jul 9, 9:14 am, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
sf1.2 doctrine
Hi,
I'm trying to
Why would you svn co and not svn export?
Gareth McCumskey wrote:
If you don't checkout the entire project into the web root directory it
doesn't matter if you leave the config files such as databases.yml in
the project directory as users have no access there anyways.
i.e. checkout like
Hi cleve,
I also use SVN to deploy my project's (ähm currently only one :-))
I use svn propedit svn:ignore to ignore that files on commit and
commit that files as .dist as example: database.yml.dist
I use a self made script on my clients servers to update theier repos.
set the permissions and
Hi Steve,
Do you known a way to do that with doctrine integrated tools?
Currently i use my getModified() way ...
Thank you,
Rene Jochum
Steve the Canuck schrieb:
The best way to do this is create an audit table and write a simple
trigger to insert records on each change
If you want to do
My deployment process is simple. Here is a sample deployment of some
changes.
Note: This all assumes you are working on a production svn export which is
in sync with the tag 1.0.1. We will make some changes and tag it as 1.0.2
and upgrade.
* Open up file and make some changes
vi index.php
*
Hi Tom,
I do that by,
class MyBook extends BaseMyBook
{
public function preSave($event)
{
$modified = $event-getInvoker()-getModified(true);
$log = new Log();
if (array_key_exists('value', $modified) {
Unforntately, I haven't used Doctrine. Sorry.
On Jul 9, 10:22 am, Rene r...@pc-dummy.net wrote:
Hi Steve,
Do you known a way to do that with doctrine integrated tools?
Currently i use my getModified() way ...
Thank you,
Rene Jochum
Steve the Canuck schrieb:
The best way to do this
Agreed. And if you want to just pick up your application and migrate
it to another database with no hassles, then you are better off
building an application based solution to this kind of problem such as
what symfony offers.
However, IMHO the application based solution is not as architecturally
Svn update is bad because it can fail half way through, if you have
connection problems it could die part way through and you are left with
broken code that is sometimes hard to fix quickly. Svn update is slow, so
even if it does finish, you have this period of time where the code is
throwing 500
I'm still in the latter stages of development, but my strategy is to
allow my deployment to easily rollback to the previous version and
avoid any mistakes in terms of SVN syncing.
I see it going something like this:
load desired svn tag in my development copy
smoke test development copy
disable
One update do this - I omitted below that you also need to change the
'prefix' in the context array, which I also obtain via lookup. For
development, it's: '/frontend_dev.php'.
Thanks,
Steve
On Jul 9, 3:15 am, Steve the Canuck steve.san...@gmail.com wrote:
There are some other posts on this,
Good point. I have always worked with svn in the local network so svn
update was quite quick, but patching is even faster. Great suggestion,
thanks,
Pablo
On Thu, Jul 9, 2009 at 11:12 AM, Jonathan Wagejonw...@gmail.com wrote:
Svn update is bad because it can fail half way through, if you have
$task = new Task (new sfEventDispatcher, new sfFormatter);
$task-run($arguments, $options);
should do the trick. if it complains about not being in the correct
dir, use a chdir() call to the symfony root directory. To know in
which format to put the arguments and options array, try to execute
On Thu, 9 Jul 2009, Jonathan Wage wrote:
Now the above commands are all done manually but a lot of times I just have
simple capistrano scripts that do all this the same each time with one
command and a set of arguments.
I spent some time playing with Capistrano a long time ago but the
They are just ruby scripts :) You just write ruby code essentially to
automate some commands in to a script that can be invoked easily across lots
of machines.
Honestly, the deployment of something is not the job of symfony. The way to
do this has existed for a long time, outside of symfony. I
For me it's very important, to automate that task so a user can run the
complete upgrade without the need of my help.
The upgrade process should run on a unix (Mac/BSD/Linux) box, without
the requirement of ruby.
But using patches as you described, is something i have to implement.
Also i
You can write the scripts in PHP then instead of Ruby.
- Jon
On Thu, Jul 9, 2009 at 12:18 PM, Rene r...@pc-dummy.net wrote:
For me it's very important, to automate that task so a user can run the
complete upgrade without the need of my help.
The upgrade process should run on a unix
Best solution would probably be to edit .htaccess, so that every URL
starting, with 'admin' is routed to admin/backend.php, and then you
would would be able to link to images in the directory beow it.
On Jul 9, 12:27 pm, Sid Ferreira sid@gmail.com wrote:
Maybe way to add a prefix to the
This is something that makes total sense. I do it all the time. Since
you are good with PHP, use it in command line to automate things
instead of struggling with Bash (which is not difficult but takes time
to learn the ins and outs) or other languages.
Pablo
On Thu, Jul 9, 2009 at 1:22 PM,
There are many methods for deployment. My preferred method is Cappistrano. My
reasons for this are:
Deploy to more than on server at a time
Use any SCM
Can carry out additional tasks before and after the deployment e.g. disable
the site, update database, run patches, clear cache, enable the site.
Hello,
Whats the status, a lot of noise and .??
-Pablo
On 6/29/09, Marijn marijn.huizendv...@gmail.com wrote:
I just put some of my code in the 1.2-marijn branch. I've got some
splitting out to do as most of it is related to the actual
implementation of the service provider that I use.
Never mind, this seems to do the job well:
http://www.symfony-project.org/plugins/sfWidgetFormTreePlugin
On Fri, Jul 10, 2009 at 9:36 AM, Sid Bachtiarsid.bacht...@gmail.com wrote:
Hi,
What's the best way for creating checkbox group with sfForm? E.g.: one
label with many checkboxes.
From
What are your strategies for initial application deployment and for
delivering updates? Do you do a SVN checkout on the server or use the
project:deploy task?
I keep my project self-contained (including plugins and generated
artifacts) in a Git repo and deploy via Vlad (also a Ruby tool but
Hi,
I am a PHP Professional. I want to learn Symfony. Can anybody tell me
how to learn Symfony in an easy way so that I can develop my projects
using symfony.
I would be very thankful.
---
Thanks
Apul Gupta
Senior PHP Developer
--~--~-~--~~~---~--~~
You received
On Thu, 9 Jul 2009, Romildo Jozué Paiter wrote:
I need help, have one server Win2k3, with PHP and Apache, which runing
the framework Symfony, but stop run without explication.
Any error messages? Did you check the logs?
--
--~--~-~--~~~---~--~~
You
Agreed to some degree. I have found though that the problem with large
projects (and even small ones) is the stuff you have not predicted so
leaving your options open is the best bet. Example: We are working on a
rather large application developed in symfony and we will only ever use the
Hi,
overwrite the setValue method and save the old value there:
public function setValue($v)
{
$this-setOldValue($this-getValue());
parent::setValue($v);
}
Frank
Am 09.07.2009 um 15:53 schrieb Tom Haskins-Vaughan:
They way I have it set up at the moment, is overriding the save()
41 matches
Mail list logo