joomla1.6

How can I unit test a Joomla 1.5 or 1.6 module with PHPUnit?

纵饮孤独 提交于 2020-01-05 07:41:40
问题 I can not find a tutorial on the subject. Before running the unit test, the Joomla framework must be loaded ... A code example would be welcome, thanks ! 回答1: You might be looking for the official Joomla Unit Testing Documentation - It contains example tests and more stuff to help you getting started. 来源: https://stackoverflow.com/questions/6559553/how-can-i-unit-test-a-joomla-1-5-or-1-6-module-with-phpunit

Joomla PHP: Checkbox won't uncheck

有些话、适合烂在心里 提交于 2019-12-23 19:33:27
问题 Making a simple component. If I save a new record with the box checked, it saves fine. If I go back and uncheck a previously checked item it reverts back to checked. I thought it had something to do with a hidden field, played with putting one of those in manually but that didn't fix it either so took it out. Here's where I'm at: An xml snippet: <fieldset name="checks"> <field name="checkbox1" type="checkbox" label="First Checkbox" value="1" filter="intval" /> <field name="checkbox2" type=

Access Joomla 1.6+ object from External PHP

帅比萌擦擦* 提交于 2019-12-23 05:33:08
问题 I have read up on doing this, and actually implemented this, for v1.5 but will like some help on v1.6+. v1.5 samples: http://forum.joomla.org/viewtopic.php?p=1559295 This is a follow on to my query here: Joomla 1.6 External PHP Interaction Issue which got no response ... maybe a bit too long and rambling. Thanks for any help given. 回答1: Starting with Joomla 1.6 the CMS is separated from the underlying Joomla platform, therefore you should look into using the Joomla platform to be able to use

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 31436096 bytes)

陌路散爱 提交于 2019-12-12 15:26:35
问题 I'm new to Joomla and I'm now using Joomla 1.6 The problem I encounter is when I try to upload an extension via the admin tool and I get the following error message: "Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 31436096 bytes) in C:\AppServ\www\libraries\joomla\filesystem\file.php on line 295" I've read some relevant messages but didn't get it solved. The phpinfo returns a value which I think may be relevant: 1)upload_max_filesize local value=200; master

Making JSON AJAX response in custom Joomla component

自闭症网瘾萝莉.ら 提交于 2019-12-11 13:43:40
问题 I am been trying to make AJAX communication between my jQuery frontend and my custom Joomla component. My JSON response is ready but the problem is that the component prints HTML instead and the JSON code is shown in it. I have no idea what I am doing wrong. Thanks in advance for any clues 回答1: Make sure when using GET request in the frontend, you've attached param: format=raw to your URL request or $.ajax({ data : 'format=raw', dataType: 'json' }), or when posting a form you have attached:

Joomla: How to keep main menu item highlighted while navigating through separate submenu items?

空扰寡人 提交于 2019-12-11 12:13:57
问题 I'm trying to make a horizontal, "category" main menu and a vertical submenu, separated from the main one. When I select a category its main page is displayed. But when I select another page from the submenu, that is supposed to be from the same category, then the "category" item from main menu stops being highlighted. All the menus are defined as a "stand-alone" modules and I'm using Joomla 1.6.3. 回答1: Any type of highlighting or effect is based upon CSS classes which are assigned in the

Significance of a using colon in Joomla URL

随声附和 提交于 2019-12-11 11:57:10
问题 I need to know, if joomla gives any significance to a colon in within component or view? Is there something in this naming convention? 回答1: The colon is only used in the 'id' parameter to separate the numeric id from the slug used for SEF URLs. With view & component names you should not use any colons. Eg: Non-sef URL - /index.php?option=com_content&view=article&id=45:my-article-title Sef URL - /my-article-title.html Also when actually using the id, you should only use the numeric part, which

Joomla 1.6 External PHP Interaction Issue

久未见 提交于 2019-12-11 10:11:21
问题 I am new to working with Joomla and I am adapting an external php class I wrote for v1.5. Without going into all the details, basically, I use a function to load the Joomla environment after which everything in Joomla is available to the class. This is essentially done using the index.php file. It works fine with v1.5 and has done for a while but trying to adapt it for v1.6, it falls over. Here is the function: private function loadJoomla() { $path_base = rtrim($this->joomFullPath, '/'); //

My Joomla! site loads too slowly

大城市里の小女人 提交于 2019-12-11 03:54:54
问题 My Joomla! site loads very slowly and sometimes return an error which is: Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\6926666\html\libraries\joomla\environment\request.php on line 11 Note that the D:\Hosting\6926666\html\libraries\joomla\environment\request.php on line 11 alayws changes (not the same path). Hint : In local my site working very good, the problem happened when the site and the database are on the server, or the database is only on the server. My

Joomla: Write and call a helper function in a component

*爱你&永不变心* 提交于 2019-12-11 03:12:45
问题 Fledgling Joomla / PHP developer, hitting a wall understanding how to do this. Everything I found searching has been for older versions of Joomla or other frameworks and so it's all confusing the first time around. I want to have a helper function that I can call from anywhere in my component. Basically it takes a userID input and returns their full name, let's say hair color and height. Here's the function: function get_profile_info($userID) { $db =& JFactory::getDBO(); $query = $db-