Im starting to create a nice simple helper for formating elements for
my blog app, im just wondering what would be the best way of doing
parts of it.

Im basicly wanting to do stuff like $formating->title($before,$after);
or $formatting->content(); but i dont really want to have to pass
through the $post['Post]['content']; and such through the helper.

I attempted to GLOBAL $post but it didnt pass through to the
$formatting helper, should i create some form on
$formatting->hasPosts(); function that i could pass the $post too and
then global it there?

Now i know this would make the $helper not all that helpful as it would
be restricting what can be passed through it, but i wish to make it a
little simpler/cleaner for my views.

If anyones got any thoughts on how i could archive this that would
great.

Although while writing this i think it may just be simpler to just have
the $formatting helper do the actual changes and just pass the values
through it.

Im looking at doing some stuff like a autoParagraph() function and bits
and bobs like that, could be quite useful for some of us bloggers :)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to