CodeIgniter
Codeigniter: Only variable references should be returned by reference
Edit filename: core/Common.php, line number: 257 Before return $_config[0] =& $config; After $_config[0] =& $config; return $_config[0];
Edit filename: core/Common.php, line number: 257 Before return $_config[0] =& $config; After $_config[0] =& $config; return $_config[0];
In your theme functions.php create a function function cosmowhiz_setup() inside the function add the following code to register menus as follow:
In your theme functions.php create a function function cosmowhiz_setup() inside the function add the following code to register menus as follow: For Mpre details http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus
In your theme functions.php add your css and js like:
WordPress Form Value WordPress Data Validation: sanitize_email() sanitize_file_name() sanitize_html_class() sanitize_key() sanitize_mime_type() sanitize_option() sanitize_sql_orderby() sanitize_text_field() sanitize_title_for_query() sanitize_title_with_dashes() sanitize_user() sanitize_meta() sanitize_term() sanitize_term_field() Escaping: Securing Output: esc_html() we should use anytime our HTML element encloses a section of data we’re outputting. esc_url() should be used on all URLs, including those in the ‘src’ Read more…
Note: In above code i use a function named decodeURIComponent() this function give the query string data with spaces
Navigate to application/config/routes.php you will find a line like set your controller name whatever you want like:
By default, the index.php file will be included in your URLs: First Enable Your Apache server rewrite_module enable, And Create a .htacces file in your root folder with the following code:
Suppose you hav a url like this: and you need the color_id use the following code :
Suppose you have an array like this: If you need to insert above data into 3 different tables named product_door_type, product_door_design , product_door_color : in your controller: