Search found 16 matches

by ghostrifle
Thu Oct 04, 2007 12:34 pm
Forum: Joombie Coding Q/A
Topic: how to fetch another model inside a view
Replies: 5
Views: 981

Re: how to fetch another model inside a view

Well,

I don't get any error message except that I can't call the method getAllOfAdvertisement() of the model I wanted to fetch.

Code: Select all

$adimage_model = $this->getModel('adimage'); 


$adimage_model is NULL... an emtpy var ! Therefore I say I'm receiving a null pointer...

Bye,
Alex
by ghostrifle
Thu Oct 04, 2007 12:00 pm
Forum: Joombie Coding Q/A
Topic: how to fetch another model inside a view
Replies: 5
Views: 981

Re: how to fetch another model inside a view

Hi  :)

It's in the same directory as the other models from my component:

Code: Select all

models:
 adimage.php
 redlight.php
 redlights.php


Bye, Alex
by ghostrifle
Wed Oct 03, 2007 10:28 pm
Forum: Joombie Coding Q/A
Topic: how to fetch another model inside a view
Replies: 5
Views: 981

how to fetch another model inside a view

Hi there, I'm coding at present the admin interface of a demo component. In the view works so far... but the model (database table) is using another table too... so I thought I write another model to store the data of the second table. Storing the data works without any problems... but now getting t...
by ghostrifle
Wed Oct 03, 2007 9:59 pm
Forum: Joombie Coding Q/A
Topic: What API calls to add upload option?
Replies: 6
Views: 1173

Re: What API calls to add upload option?

Well... I found the error... I nested two forms ... it works now, thanx for your help !
by ghostrifle
Wed Oct 03, 2007 4:52 pm
Forum: Joombie Think Tank
Topic: The J!1.5 Code Snippets / CookBook Thread
Replies: 3
Views: 1848

Re: The J!1.5 Code Snippets / CookBook Thread

Using JButton in your component: Here's a small snippet for using JButton and it's derived classes in your component. <?php jimport('joomla.html.toolbar.button.popup'); // creating a popup button, however the menus etd are still getting displayed in the menu (how can we change that??) $popupbutton ...
by ghostrifle
Wed Oct 03, 2007 9:19 am
Forum: Joomla! Coding 101
Topic: usage of buttons and modal dialogs
Replies: 1
Views: 672

Re: usage of buttons and modal dialogs

Well, I think I got it now how tu create a popup button: jimport('joomla.html.toolbar.button.popup'); $popupbutton = new JButtonPopup(); echo $popupbutton->fetchButton( $type='Popup', $name = 'some-popup-button', $text = 'hello', $url = 'http://www.some-link.de', $width=640, $height=480, $top=0, $le...
by ghostrifle
Wed Oct 03, 2007 8:34 am
Forum: Joombie Think Tank
Topic: The J!1.5 Code Snippets / CookBook Thread
Replies: 3
Views: 1848

Re: The J!1.5 Code Snippets / CookBook Thread

Using JPane and laoding templates from within a template: Well, let us assume our template is called form.php. My template holds this code to create a pane and to display some content in the pane: <?php jimport('joomla.html.pane'); /* creating the pane */ $pane =& JPane::getInstance('tabs'); // chan...
by ghostrifle
Wed Oct 03, 2007 7:56 am
Forum: Joombie Think Tank
Topic: The J!1.5 Code Snippets / CookBook Thread
Replies: 3
Views: 1848

Re: The J!1.5 Code Snippets / CookBook Thread

Using JHTML to display calendar input , dates etc: When I looked through the joomla api reference to implement a calendar input field, I was wondering how I could do that 'cause in the joomla source code I found JTHML:_(bla bla) all over the place.. but the API reference told me something different...
by ghostrifle
Wed Oct 03, 2007 7:50 am
Forum: Joombie Think Tank
Topic: The J!1.5 Code Snippets / CookBook Thread
Replies: 3
Views: 1848

The J!1.5 Code Snippets / CookBook Thread

Hi there, I thought a snippets thread with many small code examples of specific problems would come handy for many developers out there starting with Joomla 1.5 development. So, don't let discuss us here but post snippets new or collected ones from the forums ! PLEASE DISCUSS ABOUT THIS THREAD IN AN...
by ghostrifle
Wed Oct 03, 2007 7:43 am
Forum: Joombie Think Tank
Topic: snippets or cook book need !?
Replies: 4
Views: 1783

Re: snippets or cook book need !?

Hi Amy,

I will start such a thread 'cause I think it's very handy for many coders out there !

A good morning from germany  :)
by ghostrifle
Wed Oct 03, 2007 7:40 am
Forum: Joombie Coding Q/A
Topic: What API calls to add upload option?
Replies: 6
Views: 1173

Re: What API calls to add upload option?

Uhh... I'm using POST to send the file....  so.... I have to differ between GET and POST while retrieving a task?... that's the thirst thing I read now considering joomla tasks.... where can I get further information about this topic and the GET and POST differences in joomla tasks !? Thanx, Alex
by ghostrifle
Tue Oct 02, 2007 10:56 pm
Forum: Joombie Think Tank
Topic: snippets or cook book need !?
Replies: 4
Views: 1783

snippets or cook book need !?

Hi there, how about creating a snippets page or a cook book for specific joomla coding problems or tasks like .. adding a jcalendar.. a button... uploading files etc... the snippets should be small in the size of code. I think this would be a great source for the experienced (and newbies too) develo...
by ghostrifle
Tue Oct 02, 2007 10:30 pm
Forum: Joombie Coding Q/A
Topic: What API calls to add upload option?
Replies: 6
Views: 1173

Re: What API calls to add upload option?

Well... I tried your example code but I doesn't work 'cause the task doesn't get called. I implemented the upload-function in my controller where I edit, add and display all other single entries of my component. Changing the input string of JRoute to match with my component doesn't work also: <form&...
by ghostrifle
Tue Oct 02, 2007 7:38 pm
Forum: Joomla! Coding 101
Topic: usage of buttons and modal dialogs
Replies: 1
Views: 672

usage of buttons and modal dialogs

Hi there, I'm not familiar yet with the joomla api resources.. so I don't quite understand how to create a jbutton.. for example opening a modal window. The way I create a calendar is clear to me: <?php echo JHTML::_( 'calendar',$this->rl_ad->valid_to,'valid_to','valid_to'); ?> but.... how can I cre...
by ghostrifle
Tue Oct 02, 2007 6:49 pm
Forum: Joomla! Coding 101
Topic: [SOLVED] How to implement calendars in a form??
Replies: 2
Views: 1021

Re: How to implement calendars in a form??

The solution to my problem is quite easy: remove all the code from above and replace with this code for displaying a date value with a popup calendar: <?php echo JHTML::_( 'calendar',$value,$name,$id); ?> Have a look at this api doc for further information: http://api.joomla.org/svn/Joomla-Framework...
by ghostrifle
Tue Oct 02, 2007 2:29 pm
Forum: Joomla! Coding 101
Topic: [SOLVED] How to implement calendars in a form??
Replies: 2
Views: 1021

[SOLVED] How to implement calendars in a form??

Hi there, I'm trying to use the calendar provided with joomla in the component. I'm using the following code to display the calendar: <input class="inputbox" type="text" name="valid_from" id="valid_from" size="15" maxlength="10" value="<?php echo $this->rl_ad->valid_to; ?>" /> <a href="#" onclick="r...