
Search In
Hi
If you want a condition where you can load another model inside you model. you can do as I code, see the example below
App::import('Model', 'MyModel'); $my_model = new MyModel();
Or you can write
$this->SomeModel->MyModel;
if you hav
Hello if you want to disable you website's caching complety you just need to write configure code in core.php file
ex
You will have to look into /app/config/core.php and look for the line
Open app/config/core.php file and try to find
Configure::wr
For the skype field first we have to go in .py file (python file)
After that we have to decide where you want to give skype field and then give attribute of skype to that field.
Like below python code in .py file :
from openerp.osv import osv,fi
Below is the way to define the States of object in openerp-7 & Openerp-8(Odoo)
First we have to define the States After that, We have to add a ‘state’ field to object, in the
_columns collection
See below code Example-
<pre>
_columns = {
Hello Reader!
If you looking to fix a default language prefix for your all url in cakePhp then you can follow the steps which is the easiest and clean way :-
Open file routes.php from the location Config/routes.php
There in first line write the co
Hello readers!, If you are having a project in PHP and need to calculate the distance from lat and longs you can use the code below:-
Here all the entries are saved in table('business')
(SELECT name, ACOS(SIN(RADIANS($latitude))*SIN(RADIANS(busines
Below I have written a code to split a string.
Suppose we have a string name imagePath and we are going to split by "/" by using split method in java.
String delimiter = "/";
String[] img;
if (imagePath.contains("/")) {
img = imagePath.split
To change placeholder font add the following code:
[[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setFont:[UIFont fontWithName:@"Helvetica" size:12.0]];
and,to change the font for the SearchBar textField add the following lines:
[[U
Hello Reader's If you need to make ajax request that send the email in backgournd page then you can use the code below:-
$('#submit').click(function() //specify your selector of form
{
$.ajax({
url: sendemail.php, // your action page
How can you create image as a link in html.
You can make an image as an link as through following coding.This make your link more eye-catchy and you can also make logo as link thus making your page more effective.
<a href="default.asp">
<
