
Search In
If you want to create a model in OpenERP use like below code -
from openerp.osv import fields, osv
class course(osv.osv):
_name='course'
_columns= {
'name':fields.char("Name",size=128,domain=[('name', '=',2)]),
Removing the white spaces from a string is a easy task, but for doing this in whole of you website you need the recursive function in Cakephp
The 'array_walk_recursive()' will recursively get the request(GET/PUT) data and remove the white/blank spac
Joomla contains Favicon inside templates/your_templatename/ directory. To change this icon you need to replace that file with the one you want instead of it. Process of changing favicon is described below:
First, you need to create a 16x16 pixel im
Let us discuss some of the HTML Events Attributes:
1. oninput
2. onselect
3. onchange
4. onsubmit
5. onkeypress
6. onresize
Let us discuss it one by one
1. oninput - When an element get the user input, this attribute fires automatically.
This
Sections and Categories:
Sections and Categories in Joomla are used to organise or manage the articles. A section have one more categories and a category have one or more articles assigned to it. An Article in Joomla is associated with exactly one c
Many user will make a helper in app folder but if you want to use helper the best practice and best place to use Laravel 4.x helper in app/libraries folder.
So all the basic function and helper we should define in app/libraries.
Advantage of librar
Laravel is very useful when we want to do basic operation .Suppose if we have a condition that we have to
Insert a new record if not exist and update if exist, If we do this task in php then we have to put if-else condition But In Laravel 4.x we have
We can create controller and make command using artisan.The syntax for writing command for controller is:
Syntax for writing Controller:
php artisan controller:make ControllerName
Example for writing Controller:
php artisan controller:make User
Now there are n number of site which we have to make multilingual. In Laravel we have the facility to make
our site multilingual. In Laravel 4.x we will also make multilingual routes.There are few steps we have to follow to create multilingual transl
Retrieving GET and POST data inside controller in the basic requirement which should know everyone when we are working in any framework. In Laravel 4.x It is very easy to get "Get & Post" data.
Examples:
The Example for Get data is
$currentTab
