Thanks, it worked like a charm! Only one thing that I can't quite get to float; using ISO-8859-1 character set instead of UTF-8. I've tried changing the UTF-8 setting within the helper, but it seems as if it doesn't really care what I change it to. I'm using extended characters åäö as I live in Sweden and I'm trying to figure out how to solve this issue. Anyone got a hint for me?
As I said, it works real good so no complaining at all there, just trying to figure out how to get the extended character set working. Would it perhaps mean I have to make changes in the regular expressions? Regards DrLaban On Jul 4, 4:18 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > Here is the Bakery's implementation as a helper > :-https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/bakery/views/h... > > Basically in the view you call $bbcode->format($this->data['ModelName'] > ['bbcode']); > > Geoff > --http://lemoncake.wordpress.com > > On Jul 4, 11:30 am, DrLaban <[EMAIL PROTECTED]> wrote: > > > Hey all and thank you for reading this post! > > > I'm a newbie on cakePHP but it's a really fascinating project and > > slowly I'm getting the hang of things. It might be that I'm going a > > bit too fast and get a bit ahead of myself, but really, I can't see > > why I have such problems with components. I'm trying to wrap my head > > around some other minor things, I'll mention them below. > > > Short: > > This is for a guestbook I've done. I need to interpret bbCode inside > > each users message and translate those into proper html. > > I can't really get the grips on what's needed for it to work, perhaps > > I'm looking in the wrong direction, but a component seems appropriate. > > > Longer: > > I've tried creating a component using the guide on cakePHP.org. Now, > > everything works after doing some extensive search on google and > > whatnot. I have problems in the Model/Controller/Component-block. If I > > add a file ("Guestbook.php") in the components folder, along with the > > code snippets from cakePHP.org I get a fatal error on MySQL telling me > > that 'startup' isn't a valid query. Someone in a newsgroup post > > mentioned that this could be due to the fact that I haven't defined > > the functions in the model. So, I added them there and everything is > > fins so far. But no matter what I add to the component file, I get > > errors until I add them to the model too. This makes the component > > file obsolete, since the functions become duplicated. > > What am I missing here? > > > Short 2: > > How do I access instance variables or variables in general? There > > aren't getters in cake as far as I've gathered and I find it tricky to > > figure out how to get to a specific piece of data within a variable in > > a class. I'm sure there's an easy way to read data from variables, but > > I just haven't found it. > > > Thanks for your time, I hope I didn't mess everything up with my > > descriptions! > > > Regards > > DrLaban --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
