Thursday, March 4, 2010

Re: Wordpress templating using CakePHP

If you're not using Helpers then there's nothing stopping you just
including the elements in your Wordpress theme.

But if you are using Helpers in the element, or interfacing with the
View itself then the element needs to be rendered through the Cake
View. And the View is given most of its attributes automatically by
the Dispatcher. If you're not accessing the View you could just
manually instantiate and configure each of the Helpers needed.

I would probably recommend just attempting to remove the Cake
dependencies from the elements you want to share.

--
Varisan International <http://www.varisan.com.au/>

On Mar 5, 2:31 am, Jorgepedret <jorgeped...@gmail.com> wrote:
> Hi everybody,
>
> So, I'm planning to build an application in CakePHP but I'm also going
> to be using Wordpress to handle only my blogging part. The blog is
> currently working fine, I fixed the url and all that stuff, but my
> problem comes when I'm thinking of creating the wordpress theme.
>
> Is there a way I can somehow use CakePHP elements (view/elements/*) in
> my wordpress template?
>
> I know it's a weird question, since there's a lot of processing in
> those files before it actually renders, but if someone can think of a
> way. I'm just thinking of the hassle to modify two parts of the code
> every time you want to make a code change...
>
> Thanks in advance!
>
> Jorge

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: