Jump to content

Luglio7

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Luglio7

  1. Yep, but change the core is something that makes me sad :)

    Anyway i've got an idea: Create a file/class with a namespace. within this file include the processwire system api and then include the file in Kohana.

    I'm not (yet) good with namespaces but this should do the trick, gonna try it now.

    ps: forgive me for my english :)

    update:

    i must learn namespaces (isn't working)

  2. Hi all, i'm new to Processwire and i'm very curious about this minimal cms, i'm also a great lover of php frameworks and currently i'm working with Kohana.

    I love the fact that Processwire has a simple and detailed api and the "include & bootstrap" feature is killer (my 2 cents). Anyway, i tried to implement it with Kohana and i found 2 errors.

    The first is the double declaration of the __() function (error: "Cannot redeclare __()")

    fortunately is possible deactivate the translation system in kohana, but the second one is something i cannot solve without modify the core:

    ErrorException [ Fatal Error ]: Cannot instantiate abstract class Session

    This makes me think that Processwire uses a class named 'Session', and this name collide with the same Kohana Class. I don't really know how to solve this. Is there a way to create a wrapper for the processwire api or i must just hope that a future versione of Processwire will prefix every core class ? (es: Pw_Session) :(

×
×
  • Create New...