Hi,
I'm trying to call the following using Doctrine from within Symfony:
$result= Doctrine_Query::create()
-select('E.*')
-from('EventInstance EI')
-where('((SELECT MONTH(EI.datePerformed)) = ?)',
$date-month)
First off the cache is there to reduce memory consumption as when your cache
is clear symfony will need to rebuild all the cache files and so that first
run after a cleared cache is very high.
One way to reduce your memory footprint is in the Propel criteria you use
and the data returned.
Hi all,
I want your help for comparing date.
In my database, I have 1 column named start_time and it's type is
datetime.
Now, I want to display records by comparing date only. Time need to be
ignored while comparing. I dont know how to do this using criteria.
$c_iti = new Criteria();
Hello,
Did you clear your cache after you create the file ?
bye
Nairus
2009/9/26 ereallstaff ereallst...@gmail.com
Hi to everybody. About day 9 of propel jobeet tutorial, lime don't
recognize JobeetTestFunctional class.
I have written it correctly in lib/test directory
and used in
You probably have other ajax/javascript that runs after the user submits his
credentials. Try passing the script=true option with your ajax form call
and see if that resolves the issue.
On Fri, Sep 25, 2009 at 2:27 PM, Stefan birnbu...@gmail.com wrote:
Hi,
I've a website, where a user is
There are a few ways you can do this. One way is to create a criterion to
AND between the same date and two different times like:
$c = new Criteria();
$criterion = $c-getNewCriterion(ItineraryPeer::START_TIME, $date.
00:00:00, Criteria::GREATER_EQUAL);
Hey Garath,
Thanks a lot.. this is exactly what I wanted.
On Sep 28, 3:16 pm, Gareth McCumskey gmccums...@gmail.com wrote:
There are a few ways you can do this. One way is to create a criterion to
AND between the same date and two different times like:
$c = new Criteria();
Are you using Propel or Doctrine as your ORM?
On Mon, Sep 28, 2009 at 2:42 AM, dagger strategy.vs.lo...@gmail.com wrote:
Hi,
in my current project I have to connect to a remote system and execute
some stored procedures then get the returned data and save it on to
the local database... Is
Hi,
I'm working on a project where I have to deal with a database in
iso-8859-1.
I'm adding a simple blog-style (articles and categories) module (admin
generator-ed for the backend part).
I added 2 tables in the database : Articles and Categories.
Articles has 2 columns : Title and Content.
as it's a mass delete task, would be great to have the cleaned files
listed before really deleted.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Hi yes I have also tried that way
put class into lib/test/JobeetTestFunctional.class.php
and call it from test/functional/frontend/jobActionsTest.php
I think that something is really broken in my installation as also
task returns me strange error
On Sep 28, 8:51 am, NairuS
Hi as usual I come with my issue on following full tutorial for
jobeet. hope sincerely it can help also other newbies like me : DD
First of all, in my installation I didn't have lib/task folder. In
tutorial it says to check other task in symfony to see how they are
structured other files so it
I'm using propel as orm
--
Kind regards
Farrukh Abbas
On 28 Sep 2009, at 09:20, Gareth McCumskey gmccums...@gmail.com wrote:
Are you using Propel or Doctrine as your ORM?
On Mon, Sep 28, 2009 at 2:42 AM, dagger
strategy.vs.lo...@gmail.com wrote:
Hi,
in my current project I have to
I used htmlentities() on Title and Name in Articles.class.php and
Categories.class.php, in the save() method.
It works well.
(I should have thought about it immediately T_T)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi,
Thank you very much for your quick response. I'll keep this in mind while
querying and hydrating objects.
However, the problem is actually that i already have a very high memory
consumption even before anything from the database is queried. If you
check the trace, you'll notice that
Hello,
in the last days i have been thinking alot about some kind of
architecture for an upcoming project, but my limited experience in
that field makes it really hard to decide on possible solutions, so i
thought that id ask the symfony community for help :)
The basic setup is this:
On the one
Some thoughts:
1. The API reference browse code button could pretty easily
reference a named anchor to skip directly to the code for the method
in question. That would help A Whole Lot.
2. Wiki notes on the API pages, like php.net. I think this is such a
huge win that it's worth the energy
OK, so assuming I have in fact lost a connection during a script due
to inactivity, is there a way to open a doctrine connection in the
middle of a script, or is that just all taken care of at
initialization?
TIA,
Tom
On Sep 24, 8:58 am, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
I personally dislike the php.net api comments
they are full of junk.
the solutions are untested, undocumented, not working or messy.
Fabian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To
If you check the trace, you'll notice that already 16MB is consumed
before any
querying occurs...
This is PHP's overhead to compile the Symfony code. You probably don't
have APC enabled. Enable APC and watch this overhead disappear
completely (apart from the first request after you restart
yes when i kept the images in css folder directly it worked.
thanks, harinath
On Mon, Sep 28, 2009 at 1:00 AM, Casey casey.cam...@gmail.com wrote:
I think you are missing the images or they are in the wrong location.
If that is the issue that you need to look into the placement of your
Why not integrate the api with the snipped page... or smth like this...
It's a real happiness for a beginner to have a lot of exemples... and taht
all the example can be found in a central place...
or the comment could have some rating system...
On Mon, Sep 28, 2009 at 15:28, Fabian Lange
On Mon, Sep 28, 2009 at 15:28, Fabian Lange
fabian.la...@symfony-project.com wrote:
I personally dislike the php.net api comments
they are full of junk.
the solutions are untested, undocumented, not working or messy.
We can take a lesson from sites like digg or slashdot, where every
comment
I was actually thinking, when I menioned the comments sections on php.net,
about the snippets section. It would be great to link to that to give a nice
easily understandable example of usage.
We do have the various books and these are great but the comments/snippets
sections are great for looking
Tried to do a symfony clear:cache ?
On Mon, Sep 28, 2009 at 11:10 AM, ereallstaff ereallst...@gmail.com wrote:
Hi as usual I come with my issue on following full tutorial for
jobeet. hope sincerely it can help also other newbies like me : DD
First of all, in my installation I didn't have
For me, there is one major reason for the popularity and spread of the php
in the word: comments on the manual pages! Nobody can make a documentation
as good as the whole comunity can make together. There is allways a
different point of view, way of teaching and learning a specific subject.
Thats
You're all forgetting about http://snippets.symfony-project.org/ which
has all of these features already.
All that needs to be done is to place a ('show me examples') link at
the bottom of each manual page which links to snippets and displays
snippets tagged with the class or function
As a long term symfony user I personally want to use symfony
templating component for a new system.
Problem is I need to convince management. What are the advantages of
symfony over smarty (phptal etc etc) from a management point of view?
Thanks for your input / assistance.
Hi,
I'm working on a project where we are going to not use the presenation/
view layer of symfony to render pages. All the actions, business
logic and database access will be handled by Symfony but the
presenation/page generation will be handled using straight HTML/JS
(don't ask). Symfony in
not too much difference since both compile to php files.
Smarty has its own syntax though which you have to learn and which has
limits, while the symfonys template component uses standard php which
can do anything you want it todo without writing workarounds in
smarty...
also one could argue
On Mon, 28 Sep 2009, Simon Cast wrote:
One pitfall that I haven't resolved is how the HTML/JS pages and
Symfony are going to site on the same server and play nice together.
I could see problems with going to www.example.com and Symfony
index.php taking over but that is probably resolved by
You can use the function _compute_public_path($source, $dir, $ext,
$absolute = false)
$path = _compute_public_path('myfilename', 'myfolder','','absolute');
echo link_to('download file', $path);
On Sep 27, 2:54 pm, dagger strategy.vs.lo...@gmail.com wrote:
Hi,
A simple question... How can i
Hello
i have some problems with my embed forms and i can't find a
solution...
I have an Opinion with many Features..
Feature is: id, desc
OpinionFeature is: opinion_id, feature_id,score
In OpinionForm i'm inserting with [for each] all the features, but
when im creating a new opinion i always
Hello people.
I need to use symfony without change my Firebird database.
All that depends of sql, etc, is created.
I jus need that symfony give me the views working with my database
that is ready, complete.
can i do it? how to do it?
please! my boss will kill me :S
thank you.
Hi people.
My database is created.
I need to use symfony for the views and rules of business...
Can i do it withou change the database, or create new codes? For
example:
The db has triggers and 20 tables... how to make symfony respect the
triggers and talk with the tables
withou create
Thanks jeremy, and sorry,
i did not sow that the post was successful.
but i'm not understanding how to customize my schema.yml
i found it: ./symfony doctrine:build-schema
and it will take my db and reproduces it in schema.yml, right?!
and then?! don't worry anymore?! rs!
sorry, this
thanks people but this solves the purpose
a href=?php echo
public_path('/uploads/'.$support_activity-getFilePath()) ?
target=_blankdownload attachement/a
public_path returns a url like
http://localhost:8080/myproject/web/uploads/b3a2fe88caa89fa97a7443cdcf55e608.pdf
exactly what was needed...
Put comments on the manual and you will see
I completely agree with previous post!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
We've done a bit of work integrating Smarty in a Symfony project where
we want to be able to run templates written by users that we don't
trust with full access to everything PHP can do.
In that situation, you need Smarty, or something like it.
Outside of that situation there's not much need.
Another thought: have Python write to database tables set aside for
raw stuff from Python, and have PHP pick up and consume that data
periodically, deleting those records from the database and writing to
the prettier, more complete, more validated tables that you are
managing with your fancy
There is no comparison. If you had to choose between an MVC framework that
provides abstraction of logic and view as well as providing re-usable
partials for those views versus an aging and limited templating engine that
requires learning an entirely new syntax well really not a hard
Use the firebird dsn in your connection string, not the mysql one. Use the
crud generators to quickly produce Create, Read, Update, Delete forms for
your tables.
All of this is in the book
On Mon, Sep 28, 2009 at 6:33 PM, murilo.bodo
murilo.b...@nextvision.com.brwrote:
Hello people.
I need
Yes exactly that.
Now please please please go look at the book. EVERYTHING you have just asked
is clearly discussed in there
On Mon, Sep 28, 2009 at 7:06 PM, murilo.bodo
murilo.b...@nextvision.com.brwrote:
Thanks jeremy, and sorry,
i did not sow that the post was successful.
but i'm not
How many applications can you open on your desktop machine? How many
gherkins can you squeeze in a jar? How many inches in a stick?
We cannot answer that question. If you have crappy hardware, a slow network,
and overheated conditions you'll struggle to get one site running. However
if you had
Personally I don't see why you would even bother with symfony then. The
whole point is that symfony is an MVC, not just M and half a C. Sure, you
probably could just use the bits you want but if your not using symfony's
view/templating system why not just use Propel on its own, tack on your own
Sorry, but it is hard to understand what you need without asking...
Why to use symfony only to manage API calls? Symfony strength, IMO, is the
controller / context / configuration layer. And there
is also the view layer. But there is no standard Facade or Service layer and
the DB is managed by
On Mon, 28 Sep 2009, Gareth McCumskey wrote:
Oh why bother! Just try it out! If you see performance issues by more
machines then. Until then keep on adding and try to think things
through before spamming the mailing list all the time
What? You mean like read some docs and think a
On Mon, 28 Sep 2009, Farrukh Abbas wrote:
any suggestions to improve ?
Define 'improve' ?
--
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
write a filter on the requested hostname ?
kr,
Jan
dtwist schreef:
Hi Dagger,
I'm brand new to Symfony, so I can't speak to any ingrained abilities
it has with regards to subdomains (for instance, would routing
help?). I can offer two things though:
One, my own experience: We have
Hi Tom,
Thanks for the tip, I implemented APC and noticed that the login page now
dropped from 22 MB to just 7 MB. Still lots in my opinion but it is
already a good step in the right direction.
However I do notice as I am on a private Virtual private Server with just
512 MB that this APC is
Thanks for all your replies, sorry for asking irrelavant question.
On Tue, Sep 29, 2009 at 12:14 AM, Eno symb...@gmail.com wrote:
On Mon, 28 Sep 2009, Gareth McCumskey wrote:
Oh why bother! Just try it out! If you see performance issues by more
machines then. Until then keep on adding
Hi,
I've done a bit of searching on the mailing lists, wiki, forums etc,
to see if anyone has written some build scripts that help to
facilitate in the qa/production deployments.
I'm looking for something that will be able to compress the css and js
(with yui compressor), add a build number to
I think I just populate the cache directory from a saved copy (before
i deleted it with rm -rf cache/*) to get it back and working like
before...
However as i progressed to Day 3 of Joblet, I checked the browser @
http://jobeet.localhost/frontend_dev.php/job after setting up jobs
module and I see
Whoops, forgot to mention message includes a fatal error at end:..
[28-Sep-2009 15:29:37] PHP Warning: copy(C:\dev\symfony-workspace
\jobeet\cache\frontend\dev\config/config_autoload.yml.php) [a
href='function.copy'function.copy/a]: failed to open stream:
Permission denied in
Hi Bruno
On Mon, Sep 28, 2009 at 4:32 PM, Bruno Reis bruno.p.r...@gmail.com wrote:
For me, there is one major reason for the popularity and spread of the php
in the word: comments on the manual pages!
For me the popularity and spread of really bad and crappy code are the
comments on the
for me you don't need to ask this question, if you correctly read the
templating components documentation
you can see , that it was made to use WITH smarty, phptal and other
templating engine ( just need to code loader and renderer to use them )
and the template engine components is out but
On Mon, 28 Sep 2009, armyofda12monkeys wrote:
I think I just populate the cache directory from a saved copy (before
i deleted it with rm -rf cache/*) to get it back and working like
before...
However as i progressed to Day 3 of Joblet, I checked the browser @
On Mon, 28 Sep 2009, Davinder wrote:
I've done a bit of searching on the mailing lists, wiki, forums etc,
to see if anyone has written some build scripts that help to
facilitate in the qa/production deployments.
I'm looking for something that will be able to compress the css and js
(with
There is just one APC cache. That's a big part of the point. Unless
there is something wrong with your APC setup, or you don't have it set
up to use shared memory.
How are you measuring the memory impact of APC on Apache, exactly?
On Sep 28, 2:56 pm, Daniel Kucharski dan...@inspiran.be wrote:
Hey Eno,
I have cleared the cache though after deleting what was in the cache/
folder.
If i run:
$ php symfony cache:clear after this:
i only get 1 file in cache/ folder... 'project_autoload.cache'
If i run clear cache again, it disapears... and so on, etc
if i run:
$php symfony
On Mon, Sep 28, 2009 at 10:12 PM, Davinder davin...@mahal.org wrote:
Hi,
I've done a bit of searching on the mailing lists, wiki, forums etc,
to see if anyone has written some build scripts that help to
facilitate in the qa/production deployments.
I'm looking for something that will be
Think simply not writable, i have TortoiseSVN kinda handling the
folder for svn on windows. and i have full access to read and write. I
keep setting the jobeet folder Propertied to unchecked Read-only and
apply recursively to subfolders/files, but keeps coming back checked
to Read-Only possibly.
Hey Davinder,
I've been using the sfCombinePlugin for that, works very well.
My only issue is that it doesn't yet take the media parameter into
consideration, so by default it would lump a print stylesheet together
with screen ones.. Easy enough to manually add though.
Daniel
On Sep 28,
for instance i don't like using a href= /a ... something like link_to()
which would be coherent with the rest of the application/framework
and also that i could use sfConfig::get('sf_upload_dir_name') instead of
/uploads/ string (btw - why is this config variable removed from defaults
in sf 1.2?
On Mon, 28 Sep 2009, armyofda12monkeys wrote:
But I dont see a config_autoload.yml.php which i think my errors
suggest should be loaded.
Its automatically created and then cached after the first request.
--
--~--~-~--~~~---~--~~
You received this message
On Mon, 28 Sep 2009, armyofda12monkeys wrote:
Think simply not writable, i have TortoiseSVN kinda handling the
folder for svn on windows. and i have full access to read and write. I
keep setting the jobeet folder Propertied to unchecked Read-only and
apply recursively to subfolders/files,
Hi everyone,
I'll take a look at the suggestions given. Thanks for the great
information!
Davinder
On Sep 28, 2:52 pm, Richtermeister nex...@gmail.com wrote:
Hey Davinder,
I've been using the sfCombinePlugin for that, works very well.
My only issue is that it doesn't yet take the media
i think it's because when embedding the OpinionFeatureForms you're not
setting properly the foreign key to the objects, would be something like
for ( $i . ){
$opfeat = new OpinionFeature();
$opfeat-setOpinionId($this-getObject-getId());
$OFform = new OpinionFeatureForm($opfeat);
Hi all,
Let say I have URL like:
http://mydomain.com/people/james-brown
When there more than 1 person with slug 'james-brown', I want to
display a list. But when there is only one person, I want to either
redirect or symfony forward to something like
http://mydomain.com/person/1234
In this
On Tue, 29 Sep 2009, Sid Bachtiar wrote:
When there more than 1 person with slug 'james-brown', I want to
display a list. But when there is only one person, I want to either
redirect or symfony forward to something like
http://mydomain.com/person/1234
In this situation, SEO wise, which
Hello,
Im working with the propel admin generator. Code generated use by default
the styles:
link rel=stylesheet type=text/css media=screen
href=/sfPropelPlugin/css/global.css
view-source:http://mp/sfPropelPlugin/css/global.css /
link rel=stylesheet type=text/css media=screen
'The obscure/instricate things'. I couldn't agree more. There is about
20% of the php language that has got some kind of gotcha, where it
doesn't work in some circumstance in a way that you think it would.
The examples that people put in the comment sections on how they got
around, as found with
I know this is a very late reply, but just thought sharing what i found.
this behavior is because images are not placed properly and also u haven't
mentioned css style in view.yml (or probably it is not found in the
particular path, check if you are getting any 404 error for css files using
73 matches
Mail list logo