Not Echo JFactory in getOptions #227

Closed
opened 2018-01-27 11:24:41 +00:00 by ebrahimiali9005 · 4 comments
ebrahimiali9005 commented 2018-01-27 11:24:41 +00:00 (Migrated from github.com)

hello.
when create custom field
not write Jfactory in "public function getOptions()"

	/**
	 * Method to get a list of options for a list input.
	 *
	 * @return	array		An array of JHtml options.
	 */
	public function getOptions()
	{
		$db =  ::getDBO();
		$query = $db->getQuery(true);
hello. when create custom field not write Jfactory in "public function getOptions()" ``` /** * Method to get a list of options for a list input. * * @return array An array of JHtml options. */ public function getOptions() { $db = ::getDBO(); $query = $db->getQuery(true); ```
ro-ot commented 2018-01-27 12:10:10 +00:00 (Migrated from github.com)

You need to explain more, you can't just remove all expected details from issue and expect us to help you.

You need to explain more, you can't just remove all expected details from issue and expect us to help you.
ebrahimiali9005 commented 2018-01-28 08:03:10 +00:00 (Migrated from github.com)

Hello
Good time
When you create a custom field
And connect it to another table
In the getOptions function in the file
components \ com_library \ models \ fields \ libraries.php
Is written
$ db = :: getDBO ();

Which should write
$ db = JFactory :: getDBO ();

Hello Good time When you create a custom field And connect it to another table In the getOptions function in the file components \ com_library \ models \ fields \ libraries.php Is written $ db = :: getDBO (); Which should write $ db = JFactory :: getDBO ();

This is an error you made, not JCB.... let me show you:
Human Error
So that means you must have removed it, just putt the string back.

Yet you did not give use all the info we need

When you open an issue on Github, there are fields you need to submit

Steps to reproduce the issue

Expected result

Actual result

System information (as much as possible)

  • OS Name & Version:
  • MySql Version:
  • Apache Version:
  • PHP Version:
  • Joomla Version:
  • JCB Version:
  • Browser:

Additional comments

Please provide us the details we need, since it makes it so much easer to debug.

This is an error you made, not JCB.... let me show you: [![Human Error](https://img.youtube.com/vi/OMnRlwNI7xc/0.jpg)](https://www.youtube.com/watch?v=OMnRlwNI7xc) So that means you must have removed it, just putt the string back. # Yet you did not give use all the info we need > When you open an issue on Github, there are fields you need to submit ### Steps to reproduce the issue ### Expected result ### Actual result ### System information (as much as possible) - OS Name & Version: - MySql Version: - Apache Version: - PHP Version: - Joomla Version: - JCB Version: - Browser: ### Additional comments > Please provide us the details we need, since it makes it so much easer to debug.
ebrahimiali9005 commented 2018-01-29 16:19:37 +00:00 (Migrated from github.com)

Thanks.

Thanks.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#227
No description provided.