私はimagecreatefrompng
joomlaの機能を利用しようとしています。components/mycomponent/views/imgview/tmpl/default.php 内でその関数を使用しています。画像の URL administrator/components/mycomponent/images/img.png を渡す必要があります。
私は多くの方法を試しました。しかし、どれも機能していません。URLをその関数に渡す特定の方法はありますか。すなわち。として渡す必要がありますか
$img = imagecreatefrompng('administrator/components/mycomponent/images/img.png');
また
$img = imagecreatefrompng('http://localhost/joomla/administrator/components/mycomponent/images/img.png');
また
$img = imagecreatefrompng('/var/www/joomla/administrator/components/mycomponent/images/img.png');
どんな助けでも大歓迎です。