Open Source

PHP-NTJS, Code Javascript Everywhere!

Posted on

A long time ago, I was using it for my PHP projects. So, here now PHP-NTJS will help you coding javascript everywhere. What’s PHP-NTJS PHP-NTJS allows to dynamically manage your javascripts, stylesheets, and scripts so you can focus on your code. You can code your javascript using PHP class, or write directly in the PHP […]

symfony

Dynamic Web Service using ckWebServicePlugin

Posted on

To implement Web Service in symfony, ckWebServicePlugin can offer integration of symfony module as web service. The instruction detail can be found at http://www.symfony-project.org/plugins/ckWebServicePlugin/3_0_0?tab=plugin_readme. But, to make the plugin installation work, you need additional files: ckWsdlGenerator ckWsdlGenerator can be checked out from http://svn.symfony-project.com/plugins/ckWebServicePlugin/branches/ckWsdlGenerator and must be placed under [project]/plugins/ckWebServicePlugin/lib/vendor/. Addendum Addendum can be checked out […]

symfony

Adding Access Logging to Symfony Application

Posted on

sfAccessLoggerPlugin introduces a way of logging your site visits. To accomplish this logging, the others plugin is needed: sfGuardPlugin for User management. sfPropelUuidBehaviorPlugin for generating Universally Unique Identifier (UUID). sfRemoteIPPlugin, an extract of function found in sfPropelAuditPlugin by Sacha Telgenhof Oude Koehorst to detect the remote IP Address. sfBrowscapPlugin, a simple symfony wrapper for phpbrowscap […]

symfony

Using Multiple Primary Keys in Admin Generator

Posted on

Sometimes, the table we’re using force us to use multiple primary keys as shown in the schema below (config/schema.yml): connection: propel defaultIdMethod: native package: lib.model classes: State: tableName: state columns: id: { type: varchar, size: 2, primaryKey: true } country_id: { type: varchar, size: 2, primaryKey: true } name: { type: varchar, size: 50, index: […]

symfony

Hacking Symfony Application in A Shared Hosting

Posted on

In a shared hosting environment, you may not have a full access to the server. Everything has already been installed. But a least they provide a secure shell (SSH). I have successfully deploy a syfmony 1.2 application in a shared hosting, surely with a hacking. PDO Hack Symfony 1.2 at least need PHP 5.2.4 and […]

symfony

Panduan Pemula Symfony

Posted on

Catatan: Tutorial ini menggunakan Sistem Operasi Windows. Instalasi Webserver, PHP, dan MySQL Webserver: Apache HTTPD Sebagai webserver, coba Apache HTTPD (http://httpd.apache.org), download versi terakhir (2.2.x) kemudian install. Setelah instalasi selesai, buka browser: http://localhost Dan hasilnya “It works!”, ini menandakan instalasi apache telah selesai, selanjutnya kita akan mengkonfigurasi httpd agar bisa menyajikan aplikasi symfony. Database: MySQL […]

symfony

A Newbie Guide for Symfony

Posted on

Note: This tutorial using Windows Operating System. Webserver, PHP, and MySQL Instalation Webserver: Apache HTTPD For a webserver, try Apache HTTPD (http://httpd.apache.org), download the latest version (2.2.x) and install. After the instalation is finished, browse to: http://localhost And it say “It works!”, then the apache installation is done, next we will configure the httpd configuration […]

symfony

Symfony 1.2: sfDbConfigPlugin, a sfConfig Counterpart

Posted on

Symfony has a file based configuration, and with sfDbConfigPlugin, it can handle a database based configuration. sfDbConfigPlugin provide the following feature: sfDbConfig class sfDbConfig class provide a counterpart methods of sfConfig class: sfDbConfig::set(‘MYSETTING::TEST’, ‘test value’); // set the value sfDbConfig::get(‘MYSETTING::TEST’, ‘default’); // get the value, return ‘default’ if not defined $exist = sfDbConfig::has(‘MYSETTING::TEST’); // check […]

symfony

Symfony 1.1 Form: Urgently Needed

Posted on

Eveybody like symfony 1.1 form, but there are several fatures of symfony 1.0 forms which are not yet available under symfony 1.1. The missing widgets in symfony 1.1 which all peoples should have, are rich textarea, rich input date time, and so on. Looking up at the form helper code, I decided to make it […]

symfony

Hyperlink Between Application in Symfony 1.1

Posted on

Symfony 1.1 introduce a new class named sfApplicationConfiguration which replace flat application front controller script into object oriented way. One of the benefit of this class is used to hyperlink between application. Now hyperlink between aplication using symfony internal routing name is possible. This is hard to achieve in previous symfony release–symfony 1.0–hyperlink must be […]