
Search In
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
By using next statement, control will go to next iteration of the loop.
Terminates the execution of a block if it will be called in that block.
Example
for i in 0..8
if i < 3 then
next
end
puts "Value of i is #{i}"
end
This
Drupal database abstraction layer allow's the use of different database servers using the same code base i.e it provides
with the ability to support multiple database servers easily. The system is built a top PHP's PHP Data Objects database API and
Hello Readers
In php we count the number of elements of an array by two ways:
1. sizeof()
2. count()
sizeof()
sizeof() function is an alias of count() and it is used to count the elements of an array.
Syntax of the function sizeof():
sizeof(a
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’,
Sometimes we need to rapidly hit the same API . Like ,"http://myAPI.php?param=123456"
There is a caching problem in IE. Swf hits URL first time and store in to the cache and shows the same result in each response. So to resolved the issue we just add
Write custom query in magento -
$resource = Mage::getSingleton('core/resource'); //---create a connection
$readConnection = $resource->getConnection('core_read');
//-----------read mode connection (fetch data)--------
$writeConnection = $resour
Below is the code to get remaining months between two dates
date1 = '2011-03-31'
date2 = '2011-02-25'
(date1.to_date.year * 12 + date1.to_date.month) - (date2.to_date.year * 12 + date2.to_date.month)
Above will gi
This blog will show you how to create an xml from sql query having sql data. Write down the followng query to generate xml:-
WITH XMLNAMESPACES ('http://www.dossia.org/v2.0/xml/phr' as phr)
Select OrderResultID,OrderID ,PatientID ,SpecimenNumber ,Ac
Writing test cases is most important key activity performed by tester in software development life cycle(SDLC). This is the first step, followed by tester to identify, define & analyze the requirement.
Test Cases: A test case is a set of conditi
