Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Date Picker no hendering

[SOLVED] Date Picker no hendering 02 Oct 2011 03:29 #72

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
Hello,

It is me again with another issue...

My first application was just a test, and I liked so much this app that I decided to really use it on a component that I have to build for a client.

So I followed all the steps and got to a satisfactory stage of the of where I want to go... I tested every thing on the option o Sandbox and worked perfect. Than I downloaded the component and installed it to my Joomla installation, but I'm having a problem and you can see the screenshot below



I opened the airticket.php file and it seems to be every thing in place
		<tr>
			<td align="right" class="key">
				<label for="date_from">
					<?php echo JText::_( "AIRTICKETS_FIELD_DATE_FROM" ); ?> :
				</label>
			</td>
			<td>
				<?
				echo JDom::_('html.form.input.calendar', array(
												'dataKey' => 'date_from',
												'dataObject' => $this->ticket,
												'dateFormat' => "%Y-%m-%d",

												'required' => true,
												));

				?>
			</td>
		</tr>

I just can not find where this issue is coming from

Thanks for your help
Paulo Griiettner
Last Edit: 02 Oct 2011 04:40 by griiettner.
The administrator has disabled public write access.

Re: Date Picker no hendering 02 Oct 2011 04:40 #73

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
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
Paulo Griiettner
The administrator has disabled public write access.
The following user(s) said Thank You: admin, doob

Re: Date Picker no hendering 02 Oct 2011 14:48 #79

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Solved for next version.

For now, just replace <? with <?php
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.112 seconds

Get Started