
Search In
Hi. If you are looking for code to alert user if his cookies are enable or not, Then look the code as below:-
paste the code in you file
<?php
if (isset($_COOKIE['cookieCheck'])) {
echo 'Your cookie is Enable';
} else {
if (isset($_GET[
When using _inherit but leaving out _name, the new model replaces the existing one, essentially extending it in-place. This is useful to add new fields or methods to existing models (created in other modules), or to customize or reconf
The __openerp__.py file has containing list of dependencies,conditioning startup order,data files to load at module install,always load groups first and load access rights after groups.
For example code below.
{'name' : 'SHIVA',
'version' : '1.0',
The action manager can be invoked explicitly from javascript code by creating a dictionary describing an action of the right type, and calling an action manager instance with it.
In below example I have written javascript to Include only parent level
Workflows can be moved along by sending them signals. Instead of using the top-level execute_kw, signals are sent using exec_workflow. For example code is like below.
client = models.execute_kw(
db, uid, password,
'res.partner', 'search_read
Hello friends,This code is to make custom right bar button in UINavigation bar. it helped me to make custom right bar button in UINavigation bar, Hope this will help you too.
UIButton *homeButton = [UIButton buttonWithType:UIButtonTypeCustom];
Loading Levels, Play,Pause and Exit in Unity 3D scene :
Example :
btn is a string.
void OnClick ()
{
if(btn=="Play")
{
Application.LoadLevel("MyScene");
}
}
Play a Game :
Time.timeScale=1;
Pause a Game :
Time.timeScale=0;
Exit from the Game
To check a function exist or not in PHP we use a built-in function function_exists(). This function check that the function exists or not.
Syntax:
function_exists(function_name);
It includes one parameter i.e., the name of the function which you
AngularJS has some built-in directives, and these directives allows us to extend HTML element.
Here we are going to discuss about the two directive that are used for data binding. One is ng-model and second one is ng-bind
Data binding is one of the m
Sometimes, you may need to call a method at runtime. If you know the name of the function you can invoke it as a string. You can call a function as a string. You are basically achieving eval of javascript indirectly.
Lets say, there is a fun
