--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
Checking through the source code of 3.8.7 it appears to use JFactory not Factory.Mike
On Sat, May 5, 2018 at 10:14 AM 'pranay851' via Joomla! General Development <joomla-de...@googlegroups.com> wrote:
--Hello,I was trying to read through the documentation on Joomla and can't figure out this part :-why when i replace $app = JFactory::getApplication();with$app = Factory::getApplication();I get a class does not exist errorJFactory is a class that shows under Joomla 2.5 when i search the Joomla API site ( https://api.joomla.org/)Factory is a class that shows under Joomla 3.8 when i search the Joomla API site ( https://api.joomla.org/)Also there is a mapping between these classes that i can find on GitHub (https://github.com/joomla/joomla-cms/blob/3.9-dev/libraries/classmap.php#L300)so shouldn't $app = Factory::getApplication(); work exactly the same as $app = JFactory::getApplication(); ?
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
Yes,
JFactory works, but the documentation for 3.8 says to use Factory instead. Confusing , not sure what is the best way to use the documentation without wasting time on errors that can be avoided? any suggestions ?
On Saturday, May 5, 2018 at 7:23:02 PM UTC+10, ms wrote:
Checking through the source code of 3.8.7 it appears to use JFactory not Factory.Mike
On Sat, May 5, 2018 at 10:14 AM 'pranay851' via Joomla! General Development <joomla-de...@googlegroups.com> wrote:
--Hello,I was trying to read through the documentation on Joomla and can't figure out this part :-why when i replace $app = JFactory::getApplication();with$app = Factory::getApplication();I get a class does not exist errorJFactory is a class that shows under Joomla 2.5 when i search the Joomla API site ( https://api.joomla.org/)Factory is a class that shows under Joomla 3.8 when i search the Joomla API site ( https://api.joomla.org/)Also there is a mapping between these classes that i can find on GitHub (https://github.com/joomla/joomla-cms/blob/3.9-dev/libraries/classmap.php#L300)so shouldn't $app = Factory::getApplication(); work exactly the same as $app = JFactory::getApplication(); ?
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
Use \Factory::getApplication()
'pranay851' via Joomla! General Development <joomla-de...@googlegroups.com> schrieb am Sa., 5. Mai 2018, 12:37:
Yes,
JFactory works, but the documentation for 3.8 says to use Factory instead. Confusing , not sure what is the best way to use the documentation without wasting time on errors that can be avoided? any suggestions ?
On Saturday, May 5, 2018 at 7:23:02 PM UTC+10, ms wrote:
Checking through the source code of 3.8.7 it appears to use JFactory not Factory.Mike
On Sat, May 5, 2018 at 10:14 AM 'pranay851' via Joomla! General Development <joomla-de...@googlegroups.com> wrote:
--Hello,I was trying to read through the documentation on Joomla and can't figure out this part :-why when i replace $app = JFactory::getApplication();with$app = Factory::getApplication();I get a class does not exist errorJFactory is a class that shows under Joomla 2.5 when i search the Joomla API site ( https://api.joomla.org/)Factory is a class that shows under Joomla 3.8 when i search the Joomla API site ( https://api.joomla.org/)Also there is a mapping between these classes that i can find on GitHub (https://github.com/joomla/joomla-cms/blob/3.9-dev/libraries/classmap.php#L300)so shouldn't $app = Factory::getApplication(); work exactly the same as $app = JFactory::getApplication(); ?
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/joomla-dev-general
> <https://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> https://groups.google.com/group/joomla-dev-general
> <https://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.