Ok Alexander. I will try those things. Thanks a lot for your help.
Vikram On Feb 17, 4:46 pm, Alexandru-Emil Lupu <gang.al...@gmail.com> wrote: > you might have 2 options: > insert all those stuff in some classes as static methods > either you make a Helper usually "[any of your]lib/helper/yourHelper.php" > an load it with "sfLoad::helpers(array())" if i recall right ... > > On Tue, Feb 17, 2009 at 4:57 AM, SeeVik <vikramvmalhotra1...@gmail.com>wrote: > > > > > Here are the contents of the file that I put in lib folder..... > > > /apps/$app_name/lib/myFunctions.php > > ----------------------------------------------------------------- > > <?php > > function fncName( $check ) > > { > > return "The value is : ".$check; > > } > > > On Feb 17, 11:50 am, SeeVik <vikramvmalhotra1...@gmail.com> wrote: > > > I put the file in the folder apps/$app_name/lib/ . I named the file > > > myFunctions.php. Yes I cleared the cache and I am using dev > > > controller. > > > > On Feb 17, 11:47 am, Eno <symb...@gmail.com> wrote: > > > > > On Mon, 16 Feb 2009, SeeVik wrote: > > > > > 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? > > > > > Which lib folder did you put them in? > > > > > Did you clear cache or are you using a dev controller? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---