I've used the PHP MVC framework Symfony to build an on-demand web app.
It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds such as this one did not help me.
I intend not to migrate to Symfony 1.1 (which fix...
I always tend to forget these built-in symfony functions for making links.
...
Hi all
This may seem like a daft question, but i was wondering about how to use MVC frameworks on hosted servers.
I am playing about (albeit slowly) at home with the RoR on Ubuntu and understand that if i want to do a live site then i need hosting with Rails and Ruby.
However, what happens about the PHP frameworks. For example i have ...
I'm part of a group that's considering a PHP-based system to serve a community for communications purposes, including collaboration, event calendars, and a photo gallery. We're also loking into social networking integration (particularly Facebook) and maybe payment processing for community events.
The two main CMSs we're considering ar...
I tried symfony only. It was a little tricky (also because there is no command line or ssh connection in my hosting plan) to rearrange directory and linking in order to work on my hosting service, I did the same tricks on the local version to make the deployment easy but sometimes (don't know if is a cache problem or what) there were dif...
What is the best way of working with calculated fields of Propel objects?
Say I have an object "Customer" that has a corresponding table "customers" and each column corresponds to an attribute of my object. What I would like to do is: add a calculated attribute "Number of completed orders" to my object when using it on View A but not on...
OK, sorry in advance for the length of this question!
I've spent ages reading about the pros and cons of all the major PHP Frameworks (i.e. Zend, CakePHP, Symfony, CodeIgniter, etc., etc.). I've also read most of the questions and answers already posted in here about PHP Frameworks and I STILL can't make up my mind as to which one I sho...
I'm using symfony and propel, and I'm trying to invoke a specific culture on an object and output some fields of that object to the screen in that specific culture. However, if the object's mapped database record doesn't have those fields in that specific culture, I would like it to default to the base culture (in this case, en_US)
I'm ...
I want to select records that are 1 month old or newer.
The query is: SELECT * FROM foobar WHERE created_at > DATE_SUB(curdate(), INTERVAL 1 MONTH)
Using Propel in Symfony, I do:
$c = new Criteria
$c->add(FoobarPeer::CREATED_AT, "DATE_SUB(curdate(), INTERVAL 1 MONTH)", Criteria::GREATER_THAN);
What Propel generates is: SELECT...
I am using sfOpenID plugin for Symfony, which doesn't support OpenID 2.0. That means, for example, that people using Yahoo! OpenID can't login to my site.
There is an OpenID 2.0 plugin that works with sfGuard, but I am not using nor planning to use sfGuard. Plus, it requires to install Zend framework, too, which is an overkill in my sce...
I am making a waitlist application. I'd like to be able to send applications a unique confirmation code - and later on be able to find a user either by confirmation code or by username.
Will Symfony be able to call Models to say either:
Code->findUser($code_string);
User->getCode();
I believe that the below schema has the relationshi...
With Symfony's Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user is successfully authenticated?
...
I'd love to use PHP variables in my CSS files but I don't want to load up the whole Symfony stack for each file load. Any one have any best practices and/or plugins to manage their CSS files in Symfony?
...
I'm trying to do an Outer Join in Symfony. Here's the bit of code that seems like it would work if Criteria supported OUTER_JOIN:
$user = sfContext::getInstance()->getUser();
$petCriteria = new Criteria();
$petCriteria->add(PetInfoPeer::ACCOUNT_ID, $user->getProfile()->getAccountId());
$petCriteria->add(LostPetPeer::PET_INFO_ID, Criteri...
My team at work is considering to use a framework for developing web sites and applications. Some of the seniors are convinced we should use the Zend Framework because it is easier to pick-and-choose the features so the framework we will be light-weight.
I'm afraid however that they are only looking at the technical advantages that a l...
I built an on-demand web app on Symfony 1.0. Other than brutal memory consumption, I am happy with it. Should I upgrade to 1.1/1.2? What are the main practical benefits you have enjoyed most after upgrading?
...
I have to disable chinese, japanese, cyrillic (and so on) alphabets to be entered by users in my website, at validation time (only server side validation). At the same time I want all latin accented characters to be allowed.
I use symfony 1.1 and PHP 5.2, using utf-8, of course.
Any hint?
...
Hi,
Is there any possible way to convert the MySQL object into criteria object?
I tried this query
"select p.disrepid, p.subject, p.body, c.disrepid as disrepid1, c.subject as subject1, c.body as body1 from discusreply as p, discusreply as c where p.distopid='.$this->id.' and (c.disrepid = p.parentid or c.parentid = p.distopid) order by...
I'm using symfony framework, and my db is Postgres. I export data from my tables into XML format. The european characters (those with umlaut) are messed up, inspite of using UTF-8 encoding. Any suggestions on how to fix this?
...
I'm finding the documentation very difficult to understand regarding the symphony routing system and I need a bit of help with this.
I would like to format my external URL to look like the following...
mySite/module/illinois/chicago/
Via a form the user can search by city, state, or city and state.
I think the routing rule would be s...