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

TOPIC:

[SOLVED] Date problem in form (Edited by admin) 28 Sep 2011 09:00 #31

  • doob
  • doob's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2
Hi,

J!1.7 ... own jQuery menu, sobipro nothing else ...

After installation of generated component, contained date type field in administration Item form I doesn't have date input, instead of that I have

Date : 'date', 'dataObject' => $this->event, 'dateFormat' => "%Y-%m-%d", 'required' => true, 'validatorHandler' => "datetime", )); ?>

When I submit that form I receive normal JS error form validation and ...

Warning: get_class() expects parameter 1 to be object, array given in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/models/event.php on line 201


I turned on E_ALL and I received that :

Here is only few random notices, there is much more ....

Notice: Undefined property: JDomHtml::$options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 304

Notice: Undefined property: JDomHtml::$options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 316

Notice: Undefined index: options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 316

Notice: Undefined index: styles in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 304

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

Last edit: by admin.

Re: [ hello | problem | component after instalation ] 30 Sep 2011 08:05 #43

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I tried to download and test your component, it seems to work.

Try it on a fresh install of 1.7 and please give a review.


The JDom notices will be cleaned in next version.
Coding is now a piece of cake

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

Re: [ hello | problem | component after instalation ] 02 Oct 2011 11:16 #75

  • doob
  • doob's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2

griiettner wrote: Ok.. I found the Issue and it is a bugg on the system

<?
echo JDom::_('html.form.input.calendar', array(
									'dataKey' => 'date_from',
									'dataObject' => $this->ticket,
									'dateFormat' => "%Y-%m-%d",
									'required' => true,
									));
?>

As you can see on the code above the PHP tag is open as short tag, and this can lead to miss interpratarion of some servers... so... I just added the <?php and worked perfect... so... this may a bugg when generating the component package.. I think it is a very easy thing to solve



Thanks to griiettner we know solution! j-cook :) Do not use SHORT_TAG :) :P

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

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

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started