wordpress

  • In this tutorial we discuss about the basic principal of MVC using Yii Framework. How to create Model extends from CFormModel which we collect data from it, to create related Controller and finishing at View. 1. Generate webapp from Command Prompt yiic webapp myapps 2. Uncomment gii on myapps/protected/config/main.php. Set your prefered password. This allow us…

    Baca catatan

  • Todays note…. 1. Load Google Map API function init_google_map(){ wp_enqueue_script(‘google-maps’ , ‘http://maps.google.com/maps/api/js?sensor=true’ , false , ‘3’); } add_action(‘init’, ‘init_google_map’); 2. Load Map function loadmap(){ // register your script location, dependencies and version wp_register_script(‘custom_script’, get_bloginfo(‘url’) . ‘/wp-content/themes/gdirectory/gdirectory.js’, false, ‘1.0’ ); // enqueue the script wp_enqueue_script(‘custom_script’); } add_action(‘init’, ‘loadmap’); function init_google_map(){wp_enqueue_script(‘google-maps’ , ‘http://maps.google.com/maps/api/js?sensor=true’ , false , ‘3’);}add_action(‘init’,…

    Baca catatan