[symfony-users] Re: Custom view_class
Just bear in mind that smarty IS a templating with its own special markup and as you say Daniel, it has loads of documentation already. Probably easier just to incorporate Smarty than trying to make your own - Original Message - From: "Richtermeister" To: "symfony users" Sent: Wednesday, September 30, 2009 6:59:32 PM GMT +02:00 Harare / Pretoria Subject: [symfony-users] Re: Custom view_class Hey Simone, ah I see.. so, like a small templating setup? Sounds like a good use to me. I'm probably going to use that myself some time soon, but I haven't decided on what template syntax to use. I want to stick with one of the "official" template engines out there, so that there's existing documentation.. Thanks for inspiration :) Daniel On Sep 30, 3:14 am, Simone Fumagalli wrote: > Ciao Daniel. > > The application I'm working on it allow user to create HTML templates > with few "dynamic" part on them. > These dynamic part will be inserted with "special" syntax by the user > and then with mycustom"view_class" I'll create a PHP template. > > What do you think ? It's a good way to usecustomview_class ? > > -- > Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Custom view_class
Hey Simone, ah I see.. so, like a small templating setup? Sounds like a good use to me. I'm probably going to use that myself some time soon, but I haven't decided on what template syntax to use. I want to stick with one of the "official" template engines out there, so that there's existing documentation.. Thanks for inspiration :) Daniel On Sep 30, 3:14 am, Simone Fumagalli wrote: > Ciao Daniel. > > The application I'm working on it allow user to create HTML templates > with few "dynamic" part on them. > These dynamic part will be inserted with "special" syntax by the user > and then with mycustom"view_class" I'll create a PHP template. > > What do you think ? It's a good way to usecustomview_class ? > > -- > Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Custom view_class
Ciao Daniel. The application I'm working on it allow user to create HTML templates with few "dynamic" part on them. These dynamic part will be inserted with "special" syntax by the user and then with my custom "view_class" I'll create a PHP template. What do you think ? It's a good way to use custom view_class ? -- Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Custom view_class
Simone, I'm actually curious - I've seen that I could use custom view classes, but so far I don't get why I would want to do that. Could you explain what you're using your custom class for? Just for educational purposes :) Thanks, Daniel On Sep 29, 8:20 am, Simone Fumagalli wrote: > Hello > > I'm trying to override sfPHPView because I need few more features. > > I've created my new class sfMYView and saved it in a file called > sfMYView.class.php. > Then I've added these lines to my_module/config/module.yml > > all: > enabled: true > view_class: sfMY > partial_view_class: sf > > The point is that when I try to view the page I get : > Fatal error: Class 'sfMYView' not found in /home/... / > sfController.class.php on line 376 > > I think that the class sfMYView is not loaded. > Where Do I have to save the file sfMYView.class.php ? I've tried to > put it in /symfony/lib/view/ or mymodule/lib/ > > Where am I wrong ? > > Thanks > > -- > Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Custom view_class
I hate when I forget these basic things !!! a symfony cc solved everything ! Thank you Gabor ! -- Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Custom view_class
Did you clear your cache after creating the file? On Tue, Sep 29, 2009 at 17:20, Simone Fumagalli wrote: > > Hello > > I'm trying to override sfPHPView because I need few more features. > > I've created my new class sfMYView and saved it in a file called > sfMYView.class.php. > Then I've added these lines to my_module/config/module.yml > > all: > enabled: true > view_class: sfMY > partial_view_class: sf > > The point is that when I try to view the page I get : > Fatal error: Class 'sfMYView' not found in /home/... / > sfController.class.php on line 376 > > I think that the class sfMYView is not loaded. > Where Do I have to save the file sfMYView.class.php ? I've tried to > put it in /symfony/lib/view/ or mymodule/lib/ > > Where am I wrong ? > > Thanks > > -- > Simone > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---