
Search In
Hello Readers, In this blog i am going to show you "How to add drop down attribute in product view & list page.
Lets Suppose, If you want to display the color and size attributes of the configurable product , then you can Use f
Hello readers, today we will discuss about WP menu.
If you want to get WP menu in array form , you can use below code and will get your menu in array.
<?php
/** Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_n
I have written code to know free space in sdcard
Here I use StatFs class to do this.
I just multiple available blocks which I got from getAvailableBlocks() and block size from getBlockSize().
StatFs st = new StatFs(Environment.getExternalStorage
If you are using PHP and want to get the current date time with respect to your time zone then just use the code below :-
$DateTime = new DateTime(null, new DateTimeZone('Asia/New Delhi'));
$DateTime->setTimezone(new DateTimeZone('Asia/New Delhi
To get the current page url in laravel 4.x is as follow
$webpageURL=URL::to('/');
By using the above code it will automatically take the web page url.
Example:
Lets take a example of findnerd.
**http://findnerd.com/account#url=/postblog/94
If you want to get access right in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: →
class test_partner_firstname(common.TransactionCase):
def setUp(self):
super(test_partner_firstname, self).setUp()
self.user_mode
If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def _get_invoice_id(self, uid, datas):
...
return {’ids’: [...]}
...
’actions’: [_get_invoice_id],
’result’: {’type’:’print’,
To get the full date with time you can use the below code. You can pass any date that you wan to change, I'm getting date in full date format in the below example:
/**
* Get full month day year format from Date
*
POST is a common mode of sending or passing the values from one page to another, But on getting what exact is inside the post PHP will offer you the code syntax.
Consider the example below:-
We will get the body part froma POST request or can say a
To maintain the data integrity sometimes we need the changes to database to occur when all of the actions have successfully finished. One of the examples is funds transfer from one account to another. One account should be debited and another a
