did you read the documentation of myClass.php ? ++
________________________________ De : dziobacz <aaabbbcccda...@gmail.com> À : symfony users <symfony-users@googlegroups.com> Envoyé le : Samedi, 9 Mai 2009, 11h01mn 45s Objet : [symfony-users] Re: where should I place my own class ? Oh, sry - I can create my own folder 'my_class' for this file: '\sf_sandbox\lib\my_class\myClass.php' :D I thought I can't because I didn't use 'symfony cc' :D THX FOR HELP :) On 9 Maj, 10:53, dziobacz <aaabbbcccda...@gmail.com> wrote: > I found something: > '\sf_sandbox\lib\SYMFONY\my_class\myClass.php' <- doesn't work > '\sf_sandbox\lib\my_class\myClass.php' <- doesn't work > '\sf_sandbox\lib\myClass.php' <- WORKS !!!!!! > > So I must place my files in '\sf_sandbox\lib\'. I can't create my own > folder for my file in '\sf_sandbox\lib\' ?? > > On 9 Maj, 10:22, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > > > I have no idea then, it has always worked for me. May be it has > > something to do with sf_sandbox ... why are you using sandbox > > anyway??? > > > On Sat, May 9, 2009 at 7:37 PM, dziobacz <aaabbbcccda...@gmail.com> wrote: > > > > yes, I also changed name of class from myClass.php to > > > myClass.class.php and still nothing > > > > On 9 Maj, 09:30, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > > >> Did you symfony cc? > > > >> On Sat, May 9, 2009 at 7:18 PM, dziobacz <aaabbbcccda...@gmail.com> > > >> wrote: > > > >> > "They don't look so useful to me" - lol - :) > > > >> > I placed it in: '\sf_sandbox\lib\symfony\my_class\myClass.php' and I > > >> > have: "Fatal error: Class 'myClass' not found". > > > >> > On template I write: > > >> > $picture = new myClass(); > > >> > $picture->count_size_picture($location); > > > >> > Maybe I must use on template require_once '.....' to add this class or > > >> > something ?? > > > >> > On 9 Maj, 08:27, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > > >> >> They don't look so useful to me :P just kidding hehe > > > >> >> On Sat, May 9, 2009 at 6:25 PM, dziobacz <aaabbbcccda...@gmail.com> > > >> >> wrote: > > > >> >> > I have my own class with many my own very useful functions: > > > >> >> > class myClass > > >> >> > { > > > >> >> > public function __construct() > > >> >> > { > > >> >> > } > > > >> >> > public function __destruct() > > >> >> > { > > >> >> > } > > > >> >> > public function function_1() > > >> >> > { > > >> >> > ............... > > >> >> > } > > > >> >> > public function function_2() > > >> >> > { > > >> >> > .............. > > >> >> > } > > > >> >> > } > > > >> >> > Where should I place it ? > > > >> >> -- > > >> >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > > >> -- > > >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > > -- > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---