I am not sure you can easily do that for now. The only good option will be
to create another dedicated application (FrontendKernel and BackendKernel).
With this solution you can customize all your previous points
On Wed, Jun 1, 2011 at 5:45 PM, keymaster ad...@optionosophy.com wrote:
Our site
Hi,
I started to use Assetic and that's really a great tool !
However, i wonder how to deal with images referenced in some CSS files.
Take jQuery UI for instance, the bundle comes with a css file and an
images dir next to it. All images in the css are referenced by
'images/.'.
How to deal
How about giving us the code that makes use of SwiftMailer? Kind of hard for
us to help you debug without seeing what might be buggy
On Mon, May 30, 2011 at 12:31 PM, Diego Henrique Oliveira
diegoholiveira...@gmail.com wrote:
Hey guys,
I'm getting a fatal error when i try to use
Hi everyone,
I am currently working on a basic CMS based on sf2. After upgrading from
beta1 to beta3 a strange thing happened , some data doesn't appear on the
page anymore; same database as in beta1. I must mention that data from the
same entity , some works some does not, but every time I
what if we extended the CRUDController, overwrote the crud actions with
something like:
function edit(){
IF (current route is not 'admin/') THEN
//setup things for front end.
set new layout template
set new edit template
set new edit form
Sounds like you'll be overriding the form's updateObject() method to
deal with your custom form fields by calling aSet and aGet on the
object.
On Wed, Jun 1, 2011 at 11:38 PM, John Kary johnk...@gmail.com wrote:
I are doing a project where we our client runs ~15 competitions each
year, but the
maybe... different namespaces...?
Sonata/AdminBundleFrontEnd
Sonata/AdminBundleBackEnd
Code is same in each.
In our config/config.yml, we map a different AdminClass and Entity for each
of the two AdminBundles to use.
We override the templates for AdminBundleFrontEnd as needed.
Feasable?
--
My SF2 application provides traditional pages using forms for
creating/updating entities. I'm also using the Neton\DirectBundle to
provide support for a rich Internet application build using Sencha's
ExtJS Javascript framework. DirectBundle allows me to publish
server-side controller actions
Le 02/06/2011 15:14, Paul Dugas a écrit :
My SF2 application provides traditional pages using forms for
creating/updating entities. I'm also using the Neton\DirectBundle to
provide support for a rich Internet application build using Sencha's
ExtJS Javascript framework. DirectBundle allows me
Inheritance worked quite good, when I worked with these on diem based
portal.
sfForked used inheritance initially, but as always, you have to make
the final mechanism to process inherited objects, so at current
version it's up to developer, whether he'll add inheritance, or not.
On Jun 1, 4:39
Hello,
Did you follow the update document closely:
https://github.com/symfony/symfony/blob/master/UPDATE.md
That's solved most of my update-related issues.
I know there are some bundles (WebServiceBundle for one) that were
broken in the last release or two. So, there could, possibly, be
Getting the identical error, also on Sf2 Beta3.
*Fatal error*: Call to a member function clearAll() on a non-object in
*C:\Program
Files
(x86)\Zend\Apache2\htdocs\Symfony\vendor\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php
* on line *822
Here is the code:
*
$message =
In your controllers you'll often load entities with IDs coming from
the URL. What's the recommended way to deal with the case that an
entity was not found?
In Symfony 1.4 it was
$id = $request-getParameter('id);
$this-forward404Unless($user = Doctrine_Core::getTable('User')-
find($id),
If you're using a DQL Query:
try {
$em-createQuery('...')-getSingleResult();
} catch(\Exception $e) {
return new Response('...');
}
Will throw an exception if no record is returned.
Same thing with getResult instead of getSingleResult should return
an ArrayCollection with a count of 0 if
Thanks for the pointer. As a followup, I post my working solution
here:
This is what I do in my controller:
private function getSignupForm($customer) {
$form = $this-get('form.factory')-create(new Form
\CustomerType(), $customer);
// remove regular email field
If you're talking about 1.4, there are PDF versions of all books available
here:
http://www.symfony-project.org/doc/1_4/
If you're talking about 2.0, then I'm sure it'll be available one Symfony is
actually relealsed.
On Thu, May 26, 2011 at 2:43 PM, Symfonier hrs...@gmail.com wrote:
A PDF
There is a CssRewriteFilter that should fix relative URLs like these. It’s
enabled in the SE by default as “cssrewrite” — try adding that to your asset.
k
On Thursday, June 2, 2011 at 3:33 AM, dbenjamin wrote:
Hi,
I started to use Assetic and that's really a great tool !
However, i
Ok, i added the cssrewrite filter to my assets but i'm not sure how to use
it.
{% stylesheets filter='cssrewrite,?yui_css'
'@MvalSiteBundle/Resources/css/jquery/jquery-ui.css'
'@MvalSiteBundle/Resources/css/reset.css'
'@MvalSiteBundle/Resources/css/style.css'
%}
Something like the following:
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class EntityController extends Controller
{
public function getEntityAction($id)
{
$em =
Hi all,
I'm using some ajax features with Symfony2 and jQuery. All is working well,
except the case when an ajax request encounters an AccessDeniedException.
The behavior in the usual case is to redirect to the login page, I'm ok with
that. But, when it's an XmlHttpRequest, with a Json
Not really a solution, more of a workaround, but might as well get an
answer up here :D
If you get the content in your action like this:
$content = $request-getParameter('content');
if(!$content) $content = $request-getContent();
that should allow you to test what you want by passing
There's also the CssEmbed filter than may be useful if your users tend
to actually use most of your images.
$0.02,
P
On Thu, Jun 2, 2011 at 11:53 AM, dbenjamin bd.web...@gmail.com wrote:
Ok, i added the cssrewrite filter to my assets but i'm not sure how to use
it.
{% stylesheets
Your AJAX request will use the same cookie/authentication as you use
normally. I would check the access control on the route you are
POSTing to with your AJAX request. My guess is that you are having an
issue with ROLEs or user type. Remember that firewalls/access control
(ROLES) can (and often
Symfony Users Home Page My Membership Leave Group
Anything else extremely simple i can help you with?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups
Just update to latest symfony and doctrinemongodb commit and
everything works well :).
On 25 Mai, 13:27, Conrad conrad.barthel...@googlemail.com wrote:
I don't. Need this working as well.
Thanks for finding this ticket :)
--
If you want to report a vulnerability issue on symfony, please send
Does the code transformer that Facebook put out called hip hop which
converts PHP to C++ work when I use the symfony framework?
I've read that it doesn't support php5.3 but some recent post say that
for the most part it does now.
Seeing as how the framework might use a lot of things like eval(),
Yes, I'm also very interested in this. I am currently looking around
for one as we speak and came across this thread. Your hard work will
be welcome!
On Jun 1, 11:51 am, Robert Gründler r.gruend...@gmail.com wrote:
Hi,
i'm one of the developers of the (never-finished) symfony 1.x eclipse
* Do people actually use Eclipse as their preferred IDE for Symfony / PHP
projects?
[..]
* Is there a Twig (or Jinja) Editor available for Eclipse - or does this
need to be part of the plugin?
I have been using Eclipse as my preferred IDE for years. I must say
that I have been doing fine
Tutorial how to run Unit tests on NetBeans
http://netbeans.org/kb/docs/php/phpunit.html
On Jun 2, 5:11 am, Diego Henrique Oliveira
diegoholiveira...@gmail.com wrote:
Thanks for the answer, but my problem it's not debug. :)
My problem is: how i can integrate the phpunit into netbeans in a sf2
Has anybody packaged 'The Book' on Symfony2 into a printable format
yet? I don't understand why there isn't an option to download this
reference guide. I know it is moving fast but would be a great
resource non-the-less.
Anybody?
--
If you want to report a vulnerability issue on symfony, please
There is obviously a problem with the service definition. I did not
look deeper in it though because it worked by using the FormFactroy
class in the controller. And I did not need this form as a service
necessarily.
On May 31, 2:40 pm, Sebastian sknu...@googlemail.com wrote:
Hi there,
so I
On 31 mei, 08:53, zemzoum89 ayed.cha...@gmail.com wrote:
Please help me, i'm in an internship and i'm working on a symfony
project, i'd like to make changes to my database but the problem is
that i don't have a schema.yml, i have a lot of other files that
contains the model of the database and
My clientele are cheap and they have a culture of break it apart and
jurry rig it if we can.
If I don't obfuscate or protect my source, i can be guaranteed its
going to show up in someone else's project.
Some of you might say go somewhere else then, but they pay so I'm
staying.
Anyway, php, bsd,
I have a rather long form with many different fields. In my Twig
template a few of them need special output, but most of them can be
handled with a call to form_row(). I do my rendering in a loop like
this:
{% for key, elm in form %}
{% if key != 'myfield' %}
{{ form_row(elm) }}
{% endif
Thank you for your answer, but it's not the point. You're right, in theory,
an AJAX request should not face an AccessDeniedException. But I'm just
playing with the framework, and wanted to see the behavior in case of.
So I throw my AccessDeniedException on purpose, for me to make a javascript
Hi Folks,
I am new to symfony1.4 and few issues are coming with link_to()
helper.
when i use write as link_to('text', '#), it throws error The route #
does not exist.
It was working in earlier versions of symfony.
How to render the anchor tag with # url?
Thanks
--
If you want to report a
36 matches
Mail list logo