Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Twital #12

Closed
DavidOliver opened this issue Aug 22, 2014 · 3 comments
Closed

Using Twital #12

DavidOliver opened this issue Aug 22, 2014 · 3 comments

Comments

@DavidOliver
Copy link

Would it be possible to use Twital with Cake + TwigView?

If so, are you able to explain how I should go about it?

Many thanks.

@DavidOliver
Copy link
Author

I've just found Twital for Developers which I'll have a read of, but my PHP is not good so if you have any pointers please do share. Thanks.

@WyriHaximus
Copy link
Collaborator

Hey @DavidOliver the commit I made yesterday should make it possible to hook onto the event like this and wrap Twital:

function (Event $event) {
    $event->result['loader'] = new Goetas\Twital\TwitalLoader($event->data['loader']);
}

(Please note that the change has only been made on the cake3 version.)

@DavidOliver
Copy link
Author

Many thanks for that! It's a Cake 2.5 app in which we're looking to switch from PHP views, so I think we'll have to see if we can backport the necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants