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

TOPIC:

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

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

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

Last edit: by griiettner.

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

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 following user(s) said Thank You: admin, doob

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

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

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

For now, just replace <? with <?php
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.127 seconds

I'm playing around with the new mvc and the FORK feature is FANTASTIC!!! it's saving me a lot of time! you are doing a very good job!!

Tomaselli (Forum)  

Get Started