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.429 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