Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Class ContentImages not found 01 Aug 2013 09:35 #10656

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hello,

We are trying to make a small Module that render some data from our ready J-Cook Component.

Using :
<?php echo JDom::_('html.fly.file', array(
'attrs' => array('center','fit','format:png'),
'dataKey' => 'icon',
'dataObject' => $row,
'height' => 26,
'indirect' => true,
'root' => '[DIR_XXXXXCATEGORIES_IMAGE]',
'route' => array('view' => 'xxxxcontent','layout' => 'contentd','filter_category_id' => $row->id),
'width' => 26
));?>

Produces the error : Class ContentImages not found

Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/xxxx/administrator/components/com_xxxxx/dom/html/fly/file/image.php on line 74

Everything went fine with strings and text data but not with Images.

It gives up the message "Class ContentImages not found"

Please help ASAP !

Thank you in advance.

Please Log in or Create an account to join the conversation.

Class ContentImages not found 03 Aug 2013 15:25 #10669

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, this is normal.
It is not explained yet because no documentation....

Add this in your view or template file, before to call JDom
$dom = JDom::getInstance();
$dom->set('extension', 'com_xxxxxx');

Note : When you get 'Not suported' image, it often means that the size is not allowed because not present in the expected predefined sizes.

Hope it works now for you.

I am so sorry I could told you this before.
Coding is now a piece of cake
The following user(s) said Thank You: Stordia

Please Log in or Create an account to join the conversation.

Class ContentImages not found 06 Aug 2013 21:53 #10697

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Dear Admin,

Thank you it works,

Now it has another problem with the view.

When i click on the image (Link) it shows joomla error 500 ... something i have to change to the route section of image !
'route' => array ( 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),

http://localhost/cine = root of the site

the link now : http://localhost/cine/cinema?view=movie&layout=movie&cid%5B0%5D=5

must be : http://localhost/cine/movies?view=movie&layout=movie&cid%5B0%5D=5

How can i do that inside my module ?

Please Log in or Create an account to join the conversation.

Last edit: by Stordia.

Class ContentImages not found 07 Aug 2013 16:23 #10709

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you tried this :
'route' => array ( 'option' => 'com_cinema', 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.085 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started