I am using Symfony 1.2.9 (with Propel ORM), to build a website. I have obly started using the admin generator.
I have got the admin generator to work so far (thanks to the folks here at SO). The one remaining thing is that I want to change the urls generated by the admin generator. I dont like the fact that it lists the module names pla...
I am using Symfony 1.2.9 (with Propel ORM) to create a website. I have started using the admin generator to implement the admin functionality.
I have come accross a slight 'problem' however. My models are related (e.g. one table may have several 1:N relations and N:N relations). I have not found a way to address this satisfactorily yet....
Hello everyone,
I am interested in the PHP framework, especially by symfony and ZendFramework, but I am not sure of one thing: I saw the need to type command lines to create a project with these frameworks. Ok, but once the project is finished, is it possible to move files to another server without installing anything (except for Apache...
I am using Symfony 1.2.9 (with Propel ORM) to create a website. I have started using the admin generator to implement the admin functionality. I am having all manner of problems getting the admin manager to display an object (blog) that has one 1:N relation (blogposts) and one N:M relationship (blogroll).
This is proving to be far more ...
Hi,
I am creating a very custom form on a symfony project and currently I have something like this:
foreach ($foo as $c) {
$fields['crit_v_'.$c->getId()]=new sfWidgetFormInput(array('label'=>''));
$fields['crit_m_'.$c->getId()]=new sfWidgetFormTextarea(array('label'=>__($c->getName(),array(),'messages')));
}
As you can ...
there are two templates i am using for view and edit(is having the form to update),
the view will contain edit(link or button), on clicking the edit button i want that the edit template should be loaded (using Ajax, without refreshing the page).
and after editing it should be redirected to view again (using ajax same as above).
is there...
My problem is very simple, yet I feel lost while looking at it ...
I am currently working on a Symfony project located on an SVN repository.
It has worked well all day but suddenly it crashed...
Now I cant launch any page of my site. They all return me the same error message
Fatal error: sfAutoload::require() [function.require]: Faile...
Hi guys !
I am trying to put a symfony project on a client server for production.
The website worked fine on our company's server, but now i have this error :
500 | Internal Server Error | Doctrine_Connection_Exception
PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql...
I'm starting a new project - my first with Symfony - and I'm trying to figure out how to construct a route that incorporates information about an associated object. The documentation that I can find is light, to say the least, and I'm struggling. I'm using v1.4.1 w/ Propel (backwards compatibility with some existing stuff) and have:
A n...
Hi there!
Can anyone tell me how can I define and use a specific layout for a model (not a template)? I would like to do this for my custom 404 error page.
Thanks in advance,
Best regards!
...
I use the Symfony PHP MVC framework. I'm using JSON to pass an AJAX response, and I need an action's template HTML to be one of the values passed. Does Symfony have a method along the lines of renderTemplateToString() ?
Even for those unfamiliar with Symfony, is there an obvious way to do this?
...
I'm running the latest MAMP (i think so) on my Mac (10.5.8, PPC G4) and i added the following to my .profile - file in my home directory:
export PATH=/Applications/MAMP/htdocs/lib/vendor/symfony/data/bin:$PATH
But my Terminal is somehow unable to find the command, and all i get is the following errors:
: command not found
: command n...
I'd like to set up an additional log file in symfony, so that some messages (payment processing in my case) would go to a different file from the rest of symfony. Is it possible? Here's my current log configuration from factories.yml:
all:
logger:
param:
level: debug
loggers:
sf_file_debug:
param:
...
I have a Page object whose uniqueness comes from its PageDomain. The schema is configured such that the page table contains a page_domain_id field to create the relationship. To show a page, I have an executeShow action and a custom handler. My route looks like this:
page_show:
url: /:domain_slug/:slug
class: sfPropelRoute
o...
I haven't done much file uploading in Symfony to this point and I'm trying to figure out how to do it in 1.2+
I can get the files submitted to the action and retrieve them via:
$files = $request->getFiles();
How can I get then save the file to the file system? I don't see any documentation besides the old 1.0 depreciated code.
It l...
i have problems inserting multiple records in symfony what happens is the 2nd up to the last records just updates the first record
ex:
$n = new Object();
// start loop until i = 5
$n->count = $i;
$n->text = 'a'.$i;
$n->save();
i++;
//end loop
after this loop theres only 1 record... count = 5, text= a5;
is there a way to clear $n so...
I want understand what the widget can I use to generate such html:
<input name="users[]" value="Robert" type="checkbox"> Robert
<input name="users[]" value="Bob" type="checkbox"> Bob
Or perhaps symfony doesn't have that widget and I have to write it myself?
Thanks
...
I'm looking for CMS built in symfony framework. Any examples?
...
I have a defined route that displays a dynamic page:
page_show:
url: /:domain_slug/:slug
class: sfPropelRoute
options:
model: Page
type: object
method: doSelectByDomain
param: { module: page, action: show }
requirements:
sf_method: [get]
This works great, but now I want my homepage URI to route to a spec...
The following two statements should be identical, yet the commented out statement does not work. Can anyone explain ?
$peer = GeneralToolkit::getPeerModel($model);
//return call_user_func(get_class($peer).'::retrieveByPK',array($comment->getItemId()));
return $peer->retrieveByPK($comment->getItemId());
PS: I am using PHP 5.2.11
...