All PHP files need the namespace statement. It is annoying, but until something is done, that is how it will be. On Apr 19, 2014 6:26 AM, "Brian Ramsay" <brian.ram...@gmail.com> wrote:
> I'm having a problem converting an old theme of mine to the newest version > of Habari. > > Without 'namespace Habari;' in theme.php I get errors saying that it can't > find the class 'Theme', 'Format', 'Post', etc. But if I put 'namespace > Habari;' in it tells me it can't find my theme's class. > > *Error:* Class 'Janus' not found in system/classes/themes.php line 383 > > > The only way I can get it to work is if I explicitly use 'Habari\' on > every object, which is getting a litlle annoying, and I don't see this in > other themes that I look at. I can't tell what other themes are doing to > resolve this because I don't notice anything different about theme.php. > > I'm assuming that I just don't know enough about PHP namespaces. Can > anyone point me in the right direction? > > Thanks, > Brian > > -- > -- > To post to this group, send email to habari-dev@googlegroups.com > To unsubscribe from this group, send email to > habari-dev-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/habari-dev > --- > You received this message because you are subscribed to the Google Groups > "habari-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to habari-dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- To post to this group, send email to habari-dev@googlegroups.com To unsubscribe from this group, send email to habari-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/habari-dev --- You received this message because you are subscribed to the Google Groups "habari-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to habari-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.