MODX: A CMS framework designed with PHP developers in mind

Hi all,
I bet that a lot of people here is a PHP developer (and so they love oneye!).
I’ve just read an interesting article about a CMS framework I didn’t know about, so I want to report here the link because some of you may be interested in it! Enjoy!

Link to the article on the PHPClasses site

Posted in Luca Ferrario | Comments Off

Integrate webapps into oneye via eyeIframize

I’m sure that some of you don’t know the power of eyeIframize, a great application of oneye/eyeOS series 1.x.
With eyeIframize, even a kid can integrate an existing webapp into oneye in a minute. Since eyeOS SVN 7258, eyeIframize supports 5 input parameters, while before it only supported one, the URL. These parameters are:

  1. URL: If not specified, a dialog will appear asking the user the address and all the following parameters will be ignored
  2. TITLE: This is the title of the Window. If not specified or set to 0, it will default to “eyeIframize”
  3. WIDTH: The window width, in pixels. If not specified or set to 0, it will default to 75% of the eyeApp screen width
  4. HEIGHT: The window height, in pixels. If not specified or set to 0, it will default to 75% of the eyeApp screen height
  5. START MAXIMIZED: If it is set to 1, the window will be opened maximized (100% of eyeApp screen area). If the user presses the maximize button of the window, it will be resized to WIDTH and HEIGHT, if they have been specified (otherwise, it will be resized to 75% of the screen area)

To take advantage of the improved eyeIframize, you can either install the patch on your existing eyeOS 1.9.x installation, or make a brand new install, by downloading the latest eyeOS 1.x SVN. If you use the original eyeOS 1.9.x eyeIframize you can still open iframes, but you can’t specify the title and the window size.

For example, to integrate Wikipedia into oneye, you just have to right click on an empty space on your oneye desktop and choose “New launcher”:

  

In the command line, I typed: eyeIframize.app http://www.wikipedia.org Wikipedia 900  500 1
So my application will open the page http://www.wikipedia.org, will have the title “Wikipedia” and will be opened maximized. 900 and 500 pixels is the size of the window if the user presses the “Maximize” button of the window.

On the desktop we have now the Wikipedia launcher and the site is perfectly integrated into the oneye system:

    

Posted in Development, Luca Ferrario, oneye, Tutorials | Comments Off

1. PHP – JavaScript, PHP or both?

Together PHP and JavaScript rule the web development market. Both are used on small, middle and even high-level sites, but before talking about the languages itself, we should clarify the way client and server work together. The following images show, what happens when you trigger a simple web address:

PHP
This C-like language is especially designed for server usage and simplicity while developing. It’s possible to use a lot more languages on the server-side, but PHP is pre-installed in nearly all web hosting offers.
PHP supports class-based object-oriented programming even though its core functionality is procedural. The PHP project is hosted at www.php.net, where they offer PHP and its nice documentation.
PHP is a powerful platform, but integrated functions do not follow unified rules for names and parameters. Additionally PHP offers a wide range of syntax elements and – sadly – some alternative syntaxes, making it more difficult for beginners to read sources from different developers.

<?php
$product = 'eyeos';
if ($product === 'oneye') {
	echo 'You are already using the latest community.';
} else {
	echo 'Please update your community.';
}
?>

Did you know?
“PHP” stands for “PHP: Hypertext Preprocessor” and as such it’s a recursive acronym (source).

Posted in JavaScript, PHP or both?, Lars Knickrehm | Comments Off