
Search In
Joomla provides two methods to access database:
1. The below method is used to access the Joomla database.
JFactory->getDBO() (Internal database access)
2. This method is used to access the database other than joomla database i.e, an exte
Use below method to create Google Maps in OpenERP
1- use this code .py file in openerp
from openerp.osv import osv,fields
class launch_map(osv.osv):
_inherit = "res.partner"
def open_map(self, cr, uid, ids, context=None):
if cont
In web development field we face different situations in order to fulfil the requirements. Sometimes we have to customize the well managed CMS/frameworks. Today we are going to take an sample example of wordpress plugin development. There is one situ
Many times in an application we need to populate a dropdown list from enum.In the following article
I will show how to implement the same using SelectListItem.
First we create an enum, FileType, under the Models folder as shown below.
namespace D
To know what is a cookie and about the optional parameters for the cookie see click the link below.
http://findnerd.com/list/view/What-is-a-cookie/13459/
Here we will see how to create a cookie and modify the cookie and how the cookie expires.Fo
Inheritance
When one class acquires the functionality of some other class, it is called inheritance. i.e reusing the same properties and functions. The class which is inherited is known as the super class and the class which inherits the properties
After creating a ViewPager (as I also described here ViewPager) we need to catch the changing of slides event.
To do this we have a listener OnPageChangeListener i.e, ViewPager.OnPageChangeListener that invokes whenever we chance the page or increme
Hello Friends,
To create an array of dates between two dates you may use the following code:
1.Create an NSMutableArray
NSMutableArray *datesArray = [NSMutableArray new];
2.Set the date formatter according to your requirement. &n
Hi All,
To share data between two controller you should have your factory return an object and let your controllers work with a reference to the same object:
A simple example in which two controllers are sharing name of a user.
TEST.html
<!D
Hi friends,
Sometimes we want to read the content from a file and save into our database. So we can achieve this in rails we do following:
1) First you need to add a column in your model where you want to save the content of the
