Free PHP, HTML, CSS, JavaScript editor (IDE) – Codelobster PHP Edition

February 5, 2012 · Leave a Comment
Filed under: CakePHP, CodeIgniter, IDE Tools, Joomla, PHP, PRADO, Symfony, Zend 



For valuable work on creation of sites you need a good comfortable editor necessarily. There are many requiring paid products for this purpose, but we would like to select free of charge very functional and at the same time of simple in the use editor – Codelobster PHP Edition .

Free PHP, HTML, CSS, JavaScript editor (IDE) - Codelobster PHP Edition

    Let us consider some important possibilities and advantages of this program:

  • All code highlights depending on a type, the also mixed code is thus supported, so the area of HTML will be highlighted as HTML, PHP as PHP, and Javascript as Javascript in a the same file. Thre is possibility of choice from color schemes, including popular IDEs.
  • Powerful autocompletion for HTML, PHP, CSS and Javascript, including HTML5 and CSS3. For PHP the structure of project is fully recognized, and the complete list of methods falls out in the proper places.
  • HTML/CSS inspector on the type of Firebug, which allows easily to correlate the selected elements of page with a code and proper style.
  • Context help on all supported languages. By pressing F1 key the page with detailed description for current tag, attribute or function will be opened.
  • PHP debugger. PHP debugger allows to execute PHP scripts incrementally, watching the values of all variables in every line.
  • SQL manager allows to produce all necessary actions with a database – to add, delete, edit a structure and records in tables, to export data, execute SQL queries. Highlighting and autocompletion works for SQL files also.
  • Support of FTP allows to work straight with a remote server and to do all necessary changes with files;
  • The portable option allows to use editor without the preliminary installation.
  • Other useful utilities: pair highlighting, possibility of blocks selection, collapsing, tooltips, navigation on descriptions of functions and included files at withholding of the key of CTRL, viewing of structure of files and project, preview in a browser, book-marks, and all other standard possibilities for work with a code

Also there are special plugins for work with

  • CMS: Drupal, Joomla
  • PHP frameworks: CakePHP, CodeIgniter, Symfony, Yii
  • JavaScript libraly: JQuery
  • WordPress blogging engine
  • Smarty template engine
Developer: Codelobster Software
Language: English, Russian, German, Spanish, French, Portuguese
Supported: OS Windows 2000, Windows XP, Windows Vista, Windows 7
Download link:

CookPHP CakePHP manual

October 21, 2009 · Leave a Comment
Filed under: CakePHP 

Requirements

CakePHP need following things

  1. An HTTP server (with url rewrite
    feature prefered)
  2. PHP 4.3.2 or greater. .
  3. A database engine MySql refered

Section 3

Installing CakePHP

Get Most stable version of cakePHP

There are a few ways you can secure a
copy of CakePHP: getting a stable release
from CakeForge, grabbing a nightly build, or
getting a fresh version of code from SVN.
To download a stable version of code,
check out the files section of the CakePHP
project at CakeForge by going to http://cakeforge.org/projects/cakephp/.
To grab a nightly, download one from http://cakephp.org/downloads/index/nightly.
These nightly releases are stable, and often
include the bug fixes between stable
releases.
To grab a fresh copy from our SVN
repository, use your favorite SVN client and
connect to https://svn.cakephp.org/repo/trunk/cake/
and choose the version you’re after.

Unpacking

Now that you’ve downloaded the most
recent release, place that compressed
package on your web server in the webroot.
Now you need to unpack the CakePHP package.
There are two ways to do this, using a
development setup, which allows you to
easily view many CakePHP applications under
a single domain, or using the production
setup, which allows for a single CakePHP
application on the domain.

Section 4

Setting Up CakePHP

The first way to setup CakePHP is
generally only recommended for development
environments because it is less secure. The
second way is considered more secure and
should be used in a production environment.

NOTE: /app/tmp must be
writable by the user that your web server
runs as.

Development Setup

For development we can place the whole
Cake installation directory inside the
specified DocumentRoot like this:

/wwwroot
    /cake
        /app
        /cake
        /vendors
        .htaccess
        index.php

In this setup the wwwroot folder acts as
the web root so your URLs will look
something like this (if you’re also using
mod_rewrite):

www.example.com/cake/controllerName/actionName/param1/param2

Production Setup

In order to utilize a production setup,
you will need to have the rights to change
the DocumentRoot on your server. Doing so,
makes the whole domain act as a single
CakePHP application.
The production setup uses the following
layout:

../path_to_cake_install
    /app
        /config
        /controllers
        /models
        /plugins
        /tmp
        /vendors
        /views
        /webroot <-- This should be your new DocumentRoot
        .htaccess
        index.php
    /cake
    /vendors
    .htaccess
    index.php

Suggested Production httpd.conf

DocumentRoot /path_to_cake/app/webroot

In this setup the webroot directory is
acting as the web root so your URLs might
look like this (if you’re using mod_rewrite):

http://www.example.com/controllerName/actionName/param1/param2

Advanced Setup: Alternative Installation
Options

There are some cases where you may wish
to place Cake’s directories on different
places on disk. This may be due to a shared
host restriction, or maybe you just want a
few of your apps to share the same Cake
libraries.
There are three main parts to a Cake
application:

  1. The core CakePHP libraries – Found
    in /cake
  2. Your application code (e.g.
    controllers, models, layouts and views)
    – Found in /app
  3. Your application webroot files (e.g.
    images, javascript and css) – Found in
    /app/webroot

Each of these directories can be located
anywhere on your file system, with the
exception of the webroot, which needs to be
accessible by your web server. You can even
move the webroot folder out
of the app folder as long
as you tell Cake where you’ve put it.
To configure your Cake installation,
you’ll need to make some changes to
/app/webroot/index.php
(as it is
distributed in Cake). There are three
constants that you’ll need to edit: ROOT,
APP_DIR, and CAKE_CORE_INCLUDE_PATH.

  1. ROOT should be set to the path of
    the directory that contains your
    app
    folder.
  2. APP_DIR should be set to the path of
    your app folder.
  3. CAKE_CORE_INCLUDE_PATH should be set
    to the path of your Cake libraries
    folder.

/app/webroot/index.php (partial,
comments removed)

if (!defined(‘ROOT’))

{

define(‘ROOT’,
dirname(dirname(dirname(__FILE__))));

}

if (!defined(‘APP_DIR’))

{

define (‘APP_DIR’,
basename(dirname(dirname(__FILE__))));

}

if (!defined(‘CAKE_CORE_INCLUDE_PATH’))

{

define(‘CAKE_CORE_INCLUDE_PATH’,
ROOT);

}

An example might help illustrate this
better. Imagine that I wanted to set up Cake
to work with the following setup:

  1. I want my Cake libraries shared with
    other applications, and placed in
    /usr/lib/cake.
  2. My Cake webroot directory needs to
    be /var/www/mysite/.
  3. My application files will be stored
    in /home/me/mysite.
Here's what the file setup looks like:

/home
    /me
        /mysite                  <-- Used to be /cake_install/app
            /config
            /controllers
            /models
            /plugins
            /tmp
            /vendors
            /views
            index.php
/var
    /www
        /mysite                  <-- Used to be /cake_install/app/webroot
            /css
            /files
            /img
            /js
            .htaccess
            css.php
            favicon.ico
            index.php
/usr
    /lib
        /cake                    <-- Used to be /cake_install/cake
            /cake
                /config
                /docs
                /libs
                /scripts
                app_controller.php
                app_model.php
                basics.php
                bootstrap.php
                dispatcher.php
            /vendors

Given this type of setup, I would need to
edit my webroot index.php file (which should
be at /var/www/mysite/index.php, in this
example) to look like the following:

It is recommended to use the ‘DS’
constant rather than slashes to delimit file
paths. This prevents any ‘missing file’
errors you might get as a result of using
the wrong delimiter, and it makes your code
more portable.

if (!defined(‘ROOT’))

{

define(‘ROOT’, DS.’home’.DS.’me’);

}

if (!defined(‘APP_DIR’))

{

define (‘APP_DIR’, ‘mysite’);

}

if (!defined(‘CAKE_CORE_INCLUDE_PATH’))

{

define(‘CAKE_CORE_INCLUDE_PATH’,
DS.’usr’.DS.’lib’.DS.’cake’);

}

Section 5

Configuring Apache and mod_rewrite

While CakePHP is built to work with
mod_rewrite out of the box, we’ve noticed
that a few users struggle with getting
everything to play nicely on their systems.
Here are a few things you might try to get
it running correctly:

  1. Make sure that an .htaccess override
    is allowed: in your httpd.conf, you
    should have a section that defines a
    section for each Directory on your
    server. Make sure the
    AllowOverride
    is set to
    All
    for the correct Directory.
  2. Make sure you are editing the system
    httpd.conf rather than a user- or
    site-specific httpd.conf.
  3. For some reason or another, you
    might have obtained a copy of CakePHP
    without the needed .htaccess files. This
    sometimes happens because some operating
    systems treat files that start with ‘.’
    as hidden, and don’t copy them. Make
    sure your copy of CakePHP is from the
    downloads section of the site or our SVN
    repository.
  4. Make sure you are loading up
    mod_rewrite correctly! You should see
    something like LoadModule
    rewrite_module libexec/httpd/mod_rewrite.so

    and AddModule mod_rewrite.c
    in your httpd.conf.
  5. If you are installing Cake into a
    user directory (http://example.com/~myusername/),
    you’ll need to modify the .htaccess
    files in the base directory of your Cake
    installation, and in the app/webroot
    folder. Just add the line “RewriteBase
    /~myusername/
    “.
  6. If for some reason your URLS are
    suffixed with a long, annoying session
    ID (http://example.com/posts/?CAKEPHP=4kgj577sgabvnmhjgkdiuy1956if6ska),
    you might also add “php_flag
    session.trans_id off
    ” to the .htaccess
    file at the root of your installation as
    well.

Section 6

Make Sure It’s Working

Alright, lets see this baby in action.
Depending on which setup you used, you
should point your browser to http://www.example.com
or http://www.example.com/cake. At this
point, you’ll be presented with CakePHP’s
default home, and a message that tells you
the status of your current database
connection.

Cakephp Session object destruction failed / session_regenerate_id

September 20, 2009 · Leave a Comment
Filed under: CakePHP, Featured 

While writing a webapp I suddenly started getting this error:

Session object destruction failed

Apparently it is related to session_regenerate_id(). For now I have solved it by setting security.level to medium in core.php.

On my todo list for a proper fix before release.

Fixing default cakePHP pagination in FBML

September 9, 2009 · Leave a Comment
Filed under: CakePHP, Featured 

cakePHP pagination generates relative URLs that look like

/posts/view/page:5

when you use

$paginator->prev()
$paginator->numbers()
$paginator->next()

This doesn’t work in FBML, so you need to sort of hack the PaginatorHelper to display it as

http://apps.facebook.com/someapp/posts/view/page:5

So you change function link() to

function link($title, $url = array(), $options = array()) {
        $options = array_merge(array('model' => null, 'escape' => true), $options);
        $model = $options['model'];
        unset($options['model']);

        if (!empty($this->options)) {
            $options = array_merge($this->options, $options);
        }
        if (isset($options['url'])) {
            $url = array_merge((array)$options['url'], (array)$url);
            unset($options['url']);
        }
        if(!isset($_SERVER['HTTP_X_FB_USER_REMOTE_ADDR']) ) {
            $url = $this->url($url, true, $model);
            $obj = isset($options['update']) ? 'Ajax' : 'Html';
            $url = array_merge(array('page' => $this->current($model)), $url);
            $url = array_merge(Set::filter($url, true), array_intersect_key($url, array('plugin'=>true)));
        } else {
            //if its part of the facebook app, preprend http://apps.facebook.com/dev_zenmanga to the $url
            $obj = isset($options['update']) ? 'Ajax' : 'Html';
            $url = 'http://apps.facebook.com/someapp' . substr(parent::url($url), true);
        }
        return $this->{$obj}->link($title, $url, $options);
    }
$_SERVER['HTTP_X_FB_USER_REMOTE_ADDR']

will print out the server IP that your facebook app is hosted on, so if that is set, then we know we are running on the facebook server.

A better way will be to write in your config/bootstrap.php

    if(isset($_SERVER['HTTP_X_FB_USER_REMOTE_ADDR'])){
        Configure::write('App.base', 'http://apps.facebook.com/dev_zenmanga/');
    }

PHP Frameworks – Zend, Prado, CakePHP and Symphony | itSpice.net

September 5, 2009 · Leave a Comment
Filed under: CakePHP, Featured, php framework, PRADO, Symfony, Zend 

PHP Frameworks:

PHP is finally getting the attention that i deserves, yes I have always believed that PHP is one of those neglected languages, neglected because they are used in abundance but there isn’t enough programs or as we call them frameworks to work on PHP. But that was until the release of PHP 5. After the release of PHP, there is a range of Frameworks available.

Today we review and understand closely the various frameworks available for PHP. Some of the most popular frameworks for PHP are:

  1. The Zend Framework.
  2. The Prado Framework.
  3. CakePHP Framework.
  4. Symphony Framework.

These frameworks are ofcourse the most popular ones and there are more than 40 frameworks for PHP and it is very difficult to know which framework suits you the best and will be the most productive for your web development and enterprise goals.
Ofcourse all these frameworks are free and provide a host of services to satisfy almost all of the web development needs of a web designer or a website owner. Some of the most common features of all these PHP Framework are as follows:

  • PHP 5: Thats obvious! All the frameworks support both PHP 5 version of the PHP.Only “The Prado Framework” support the PHP 4.x version of the PHP as well as the PHP 5 version of the PHP.
  • Multiple DBs: All the above mentioned frameworks support multiple databases to be used without making any setup and configuration changes.
  • Validation: All the four frameworks have an inbult validation and a filtering component which can be used.
  • MVC: All the four frameworks have the MVC that is the Model View Controller setup.

So, these are the few components and controllers that are common in most of the PHP based frameworks and therefore one should look out for these components when downloading or using a PHP framework.

Now let us see a brief introduction about each of these PHP based frameworks and their salient features:

  • Zend Framework:Zend Framework is a component based framework with components for almost all of the programming needs of a PHP programmer or PHP developer.

Some of the components in the Zend Framework are:

  1. zend_acl
  2. zend_auth
  3. zend_cache
  4. zend_config
  5. zend_consolegetop and many more.

  • Prado Framework: The Prado framework provides the following benefits for web application developers.

  1. reusablility
  2. Ease of use
  3. Robustness
  4. Performance
  5. Team Integration

  • CakePHP:

Some of the important features of CakePHP are as follows:

  1. Model, View, Controller Architecture
  2. View Helpers for AJAX, Javascript, HTML Forms and more
  3. Built-in Validation
  4. Application Scaffolding
  5. Application and CRUD code generation via Bake
  6. Access Control Lists
  7. Data Sanitization
  8. Security, Session, and Request Handling Components
  9. Flexible View Caching

Like all other frameworks cakePHP is also component based framework.

  • The Symphony Framework:

Some of the features of the symphony framework are as follows:

  1. simple templating and helpers
  2. cache management
  3. smart URLs
  4. scaffolding
  5. multilingualism and I18N support
  6. object model and MVC separation
  7. Ajax support
  8. enterprise ready

Thus these are the best options available for frameworks relating to PHP and one should review all these features of all these frameworks against his needs and choose the appropriate framework to work on!

Any suggestions and comments as always are welcome.

PHP Frameworks – Zend, Prado, CakePHP and Symphony | itSpice.net

September 5, 2009 · Leave a Comment
Filed under: Featured, Symfony 

PHP Frameworks – Zend, Prado, CakePHP and Symphony

PHP Frameworks:

PHP is finally getting the attention that i deserves, yes I have always believed that PHP is one of those neglected languages, neglected because they are used in abundance but there isn’t enough programs or as we call them frameworks to work on PHP. But that was until the release of PHP 5. After the release of PHP, there is a range of Frameworks available.

Today we review and understand closely the various frameworks available for PHP. Some of the most popular frameworks for PHP are:

  1. The Zend Framework.
  2. The Prado Framework.
  3. CakePHP Framework.
  4. Symphony Framework.

These frameworks are ofcourse the most popular ones and there are more than 40 frameworks for PHP and it is very difficult to know which framework suits you the best and will be the most productive for your web development and enterprise goals.
Ofcourse all these frameworks are free and provide a host of services to satisfy almost all of the web development needs of a web designer or a website owner. Some of the most common features of all these PHP Framework are as follows:

  • PHP 5: Thats obvious! All the frameworks support both PHP 5 version of the PHP.Only “The Prado Framework” support the PHP 4.x version of the PHP as well as the PHP 5 version of the PHP.
  • Multiple DBs: All the above mentioned frameworks support multiple databases to be used without making any setup and configuration changes.
  • Validation: All the four frameworks have an inbult validation and a filtering component which can be used.
  • MVC: All the four frameworks have the MVC that is the Model View Controller setup.

So, these are the few components and controllers that are common in most of the PHP based frameworks and therefore one should look out for these components when downloading or using a PHP framework.

Now let us see a brief introduction about each of these PHP based frameworks and their salient features:

  • Zend Framework:Zend Framework is a component based framework with components for almost all of the programming needs of a PHP programmer or PHP developer.

Some of the components in the Zend Framework are:

  1. zend_acl
  2. zend_auth
  3. zend_cache
  4. zend_config
  5. zend_consolegetop and many more.

  • Prado Framework: The Prado framework provides the following benefits for web application developers.

  1. reusablility
  2. Ease of use
  3. Robustness
  4. Performance
  5. Team Integration

  • CakePHP:

Some of the important features of CakePHP are as follows:

  1. Model, View, Controller Architecture
  2. View Helpers for AJAX, Javascript, HTML Forms and more
  3. Built-in Validation
  4. Application Scaffolding
  5. Application and CRUD code generation via Bake
  6. Access Control Lists
  7. Data Sanitization
  8. Security, Session, and Request Handling Components
  9. Flexible View Caching

Like all other frameworks cakePHP is also component based framework.

  • The Symphony Framework:

Some of the features of the symphony framework are as follows:

  1. simple templating and helpers
  2. cache management
  3. smart URLs
  4. scaffolding
  5. multilingualism and I18N support
  6. object model and MVC separation
  7. Ajax support
  8. enterprise ready

Thus these are the best options available for frameworks relating to PHP and one should review all these features of all these frameworks against his needs and choose the appropriate framework to work on!

Any suggestions and comments as always are welcome.

Original Article Posted at
http://comparelinux.com/2007/05/15/php-frameworks/

CakePHP Application Development eBook Free Download

August 30, 2009 · Leave a Comment
Filed under: CakePHP, Featured 
CakePHP Application Development: Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework by Ahsanul Bari, Anupom Syam

Publisher: P??kt ?ublishing 2008, 332 pages, Format PDF, Size 5.3 MB

Cake is a rapid development framework for PHP that uses well-known design patterns and provides a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss of flexibility. It means you can code faster, your code is better, and it makes writing Web 2.0-style apps a snap.

This book offers step-by-step instructions to learn the CakePHP framework and to quickly develop and deploy web-based applications. It introduces the MVC pattern and coding styles using practical examples. It takes the developer through setting up a CakePHP development and deployment environment, and develops an example application to illustrate all of the techniques you need to write a complete, non-trivial application in PHP. It aims to assist PHP programmers to rapidly develop and deploy well-crafted and robust web-based applications with CakePHP.

What you will learn from this book?

* Develop well-structured applications faster, using CakePHP’s MVC

* Install and set up CakePHP

* Create and configure your database to build a bookmark manager interface step by step

* Build a model that that integrates with your database and provides basic features to your application: inserts, updates, deletes, searches, and relationships

* Create views that present the user interface in an attractive, organized, and maintainable way

* Develop controllers to interact with model classes, use callback functions, and create reusable components

* Prototype applications fast using scaffolding to auto-generate user interface code

* Create custom user interfaces using layouts, elements, helper classes, and CakePHP’s FormHelper

* Build complex data models with multiple related tables, using Cake associations

* Enhance your data models by adding new functionalities like user authentication and data validation

* Automate repetitive tasks and speed up development using shells

* Reduce the amount of code you write yourself using Bake to automatically generate essential code based on your database design

* Add interactivity using JavaScript and AJAX

* Work with user pages, search, pagination, and RSS

Code Igniter Framework Overview

  1. PRESENTATION NAME
  2. Getting started with CodeIgniter
  3. How To Remove index.php from your Codeigniter application URL
  4. CodeIgniter Global XSS Filtering Bypass Vulnerability
  5. CodeIgniter PHP Framework
  6. Introduction to CodeIgniter
  7. CodeIgniter User Guide Version 1.6.3
  8. CodeIgniter
  9. Professional CodeIgniter
  10. Technology Overview

More Information download from here http://openpdf.com/ebook/codeigniter-pdf.html