New answers tagged php
0
votes
How to Fix PHP Deprecated : Factory::getDocument() is deprecated
You can use this:
use Joomla\CMS\Factory;
$app = Factory::getApplication();
$document = $app->getDocument();
Or this:
use Joomla\CMS\Factory;
use Joomla\CMS\Document\FactoryInterface;
$container = ...
- 1
0
votes
How to get product id in the article text (j2store)
require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');
$product = F0FTable::getAnInstance('Product', 'J2StoreTable')->getClone();
if($product->get_product_by_source('...
- 87
1
vote
Accepted
How do I create a new PHP variable for a blog override from the result of JDatabase join query?
Firstly: the reason for the white page errors was that I was putting the code into the wrong file. Instead of adding it to blog_item.php it should be in blog.php. It worked once I'd moved the code.
...
- 313
0
votes
Display current article's specific custom field in module
I got the hint from here
Custom Fields inside Articles News Module in Joomla 4
And made my own module from mod_article_news.
Just kept the codes I need and deleted rest. Than added custom filed part ...
- 55
Top 50 recent answers are included
Related Tags
php × 758joomla-3.x × 336
mysql × 91
joomla-3.4 × 47
module × 44
javascript × 44
joomla-2.5 × 39
component × 38
development × 33
articles × 25
jquery × 24
extensions × 23
joomla-api × 23
joomla-4.x × 23
database × 22
plugin × 21
ajax × 20
templates × 19
sql × 18
xml × 18
jdatabase × 17
rsform × 17
custom-component × 16
k2 × 16
css × 15