Google for "symfony generator chapter 14" there are about all things put here, not in detail. For details and help I recommend IRC network.
-In the list view you'll have to create template _myimage.php, modify your generator.yml list: fields: [ _myimage ] then in the _myimage.php you'll have access to the domain object (if you object model is named myObjectModel then you'll have a var named $myObjectModel and can access properties naturally like $myObjectModel['myimage'], then you can put a <img src="..."/> to display the image for example). -You can init form vars in many places, you can set defaults in you schema.yml. A good place might be the action where the form is instanciated and where the object is retrieved from route -Yes you can, in the generator.yml config: fields: myimage: credentials: ["myimage/read/"] for example, then, users will need the "myimage/read/" credential to be able to see the field. -look at the sfForm::embed() method. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 8:04 PM, Darren884 <[email protected]> wrote: > Hi guys, I am developing with Symfony 1.4 and have generated my > backend, however there are some problems I have ran into. > > Is there anyway to customize the way fields are displayed in the list > view? E.g. say if I have an image and I wnat to customize how it looks > in a list view. > > Also how do I initially set values? I have a department based > eCommerce system I am making and in the order status dropdown I > initially want it to show 'placed' when they go to the New Order page. > > Also is there any way to limit what fields are being viewed by users > based on their department (credentials)? > > Lastly, is there any way for me to display and combine related > database objects when people edit a field? For instance I have a > customer id attached to a customer, and would like them to view it in > the list view along with that information. > > I have already read the book and looked through the documentation > however I cannot find solutions to these issues. If there are ways to > do these in YAML I would prefer but I can also do them in PHP code. > > I am willing to pay money for an advisor to advise me if necessary > when I need help as well. > > Thanks, > Darren > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > >--
You received this message because you are subscribed to the Google Groups "symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
