This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// admin / controllers / helloworld.php | |
jimport('joomla.application.component.controllerform'); | |
class HelloWorldControllerHelloWorld extends JControllerForm | |
{ | |
//... | |
public function save($key = null, $urlVar = null) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Plugin do tipo user | |
// No direct access | |
defined('_JEXEC') or die('Restricted access'); | |
jimport('joomla.plugin.plugin'); | |
class plgUserNomedoplugin extends JPlugin { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Snippet code to emulate argv on browser like on CLI | |
* Author: Emerson Rocha Luiz (http://fititnt.org) License: WTFPLv2 | |
*/ | |
if ( !isset($_SERVER['HTTP_USER_AGENT']) ) { | |
$arguments = $argv; | |
} else { | |
$arguments = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="package_test_build" default="build"> | |
<target name="clean"> | |
<echo msg="Cleaning directories" /> | |
<delete dir="packages" includeemptydirs="true" /> | |
<delete file="pkg_everything.zip" /> | |
</target> | |
<target name="build"> | |
<echo msg="Building package" /> |
NewerOlder