Recommended Links
Common For all pages
This section shows you how you can have editable content which is the same throughout the site ( NOTE: It is language specific ) .All the navs below are generated using snippets that are included with the framework, edit this content to see how it was generated
Sub Nav:
Main Nav:
Footer Nav:
Unique Per Page
CURL
The CURL library provides functions to Make cURL requests ( Web Requests ) and also has functions to perform FTP uploads including entire directory uploads.
Example:
//This is a function within a controller
public function curl()
{
//Include the CURL library
require_once 'libs/standalone/CURL.php';
$host = 'host';
$username = 'username';
$password = 'password';
//Create the curl instance
$curl = new CURL($host, $username, $password);
//Set the local path and the destination path
$local_path = 'Config.php';
$target_path = '/Config.php';
//Perform the upload
$return = $curl->uploadFile($local_path, $target_path);
//The Curl class also comes with some static methods as well
//print_r( CURL::curlForwardArray('http://mac.freehostia.com/demo/', array('ajaxRequest'=>'true') ) );
}