Actions

J2.5 talk

Difference between revisions of "Developing a MVC Component/Adding configuration"

From Joomla! Documentation

(Zip files not accessable anymore: new section)
(Zip files not accessable anymore)
Line 46: Line 46:
 
When I try to download the zip file I get this message:
 
When I try to download the zip file I get this message:
 
leyar.com This Web page is parked for FREE, courtesy of GoDaddy.com.
 
leyar.com This Web page is parked for FREE, courtesy of GoDaddy.com.
 +
 +
Which means that the zip file cannot be downloaded from leyar anymore.

Revision as of 14:51, 30 September 2012

In the function

	/**
	 * Overloaded load function
	 *
	 * @param       int $pk primary key
	 * @param       boolean $reset reset data
	 * @return      boolean
	 * @see JTable:load
	 */
	public function load($pk = null, $reset = true) 
	{
		if (parent::load($pk, $reset)) 
		{
			// Convert the params field to a registry.
			$params = new JRegistry;                 
                       // loadJSON is @deprecated    12.1  Use loadString passing JSON as the format instead.
                       // $params->loadString($this->item->params, 'JSON');
//------------------------------------------------------------
                       $params->loadJSON($this->item->params);
//------------------------------------------------------------
 
			$this->params = $params;
			return true;
		}
		else
		{
			return false;
		}
	}

The line bracketed above is actually, $params->loadJSON($this->params); I am not sure which is 100% correct.

Just done a quick test and the one WITHOUT the 'item' is correct.



After changing files from 0.12 to 0.13 and downloading part13.zip I can't reach FrontEnd of HelloWorld component. I receive erorr 500. :( CodeBY 04:48, 4 May 2012 (CDT)

Zip files not accessable anymore

When I try to download the zip file I get this message: leyar.com This Web page is parked for FREE, courtesy of GoDaddy.com.

Which means that the zip file cannot be downloaded from leyar anymore.