Yes James. I eventually found that out. Now I have created a php file which acts like a repository of functions. But the module where I am calling these functions are not able to locate them. Is there a need of doing some include or import or something like that?
Thanks and Regards Vikram On Feb 17, 10:41 am, James <thenet...@gmail.com> wrote: > that is what the "lib" directory is for. > > If you want all applications to see them then it's > > sf_root_dir/lib/yourstuff > > If only a specific application > > sf_root_dir/apps/frontend/lib/yourstuff > > If only a specific module > > sf_root_dir/apps/frontend/modules/mymodule/lib/yourstuff > > You should read "the book" it explains all this. > > James > > On Feb 16, 2009, at 7:45 PM, SeeVik wrote: > > > > > Also where can I put my classes? Like if I create some php classes and > > interfaces, in which folder should I place them in Symfony directory > > structure? > > > Thanks and Regards > > Vikram > > > On Feb 17, 9:43 am, SeeVik <vikramvmalhotra1...@gmail.com> wrote: > >> hello all, > > >> I have a code snippet in php that I want to be accessible to all the > >> modules in my application. I want to ask in which layer should I put > >> this code? > > >> This code does not contain any database handling, so it shouldn't be > >> in model layer. > >> There is no html, so it shouldn't be there in view layer either. > > >> This function can be considered to be, let us suppose a binary-to- > >> decimal converter. It just takes some binary value and returns some > >> decimal number. Where should I put this code? > > >> Thanks and Regards > >> Vikram --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---