Tutorial by Examples

return : http://www.example.com/
return : http://www.example.com/my-product.html
Odoo can be installed in three different ways: Packaged installers (easiest, less flexible) Source install (takes sometime to setup, very flexible) An official docker image from docker.com Official packages with all relevant dependency requirements are available on odoo.com. Windows Downlo...
PropertyPossible Valuesdisplaygrid / inline-grid The CSS Grid is defined as a display property. It applies to a parent element and its immediate children only. Consider the following markup: <section class="container"> <div class="item1">item1</div> &lt...
If you want to use your own templates (be it HTML, XML, JSON or any other format) for a TYPO3 extension using fluid templating, you can add additional template paths. An extensions template/partial/layout paths are usually set in TypoScript setup under the properties plugin.tx_<extensionkey>...
Mage::getSingleton('admin/session')->getUser();
Mage::helper('customer')->getCustomer(); or Mage::getSingleton('customer/session')->getCustomer();
Sometimes, it's not possible to list the number of parameters a function could need. Consider a sum function: func sum(_ a: Int, _ b: Int) -> Int { return a + b } This works fine for finding the sum of two numbers, but for finding the sum of three we'd have to write another function: f...
If you want to display to your users meaningful errors instead of simple "sorry, something went wrong", Rails has a nice utility for the purpose. Open the file app/controllers/application_controller.rb and you should find something like this: class ApplicationController < ActionContro...
/** * Parameters * * @param int $int * @param string $string * @param array $array * @param bool $bool */ function demo_param($int, $string, $array, $bool) { } /** * Parameters - Optional / Defaults * * @param int $int * @param string $string * @param ...
If you ever wanted to determine the html content to be printed on a page during run time then, rails has a very good solution for that. It has something called the content_for which allows us to pass a block to a rails view. Please check the below example, Declare content_for <div> <%=...
You can run tasks in series, by passing a second parameter to gulp.task(). This parameters is an array of tasks to be executed and completed before your task will run: var gulp = require('gulp'); gulp.task('one', function() { // compile sass css }); gulp.task('two', function() { // ...
Accessibility of symbols declared in a module can be controlled using private and public attributes and statement. Syntax of the statement form: !all symbols declared in the module are private by default private !all symbols declared in the module are public by default public !symbols in t...
You can rollback and then migrate again using the redo command. This is basically a shortcut that combines rollback and migrate tasks. Run command: 5.0 rake db:migrate:redo 5.0 rails db:migrate:redo You can use the STEP parameter to go back more than one version. For example, to go ba...
The border-radius property allows you to change the shape of the basic box model. Every corner of an element can have up to two values, for the vertical and horizontal radius of that corner (for a maximum of 8 values). The first set of values defines the horizontal radius. The optional second ...
The border-style property sets the style of an element's border. This property can have from one to four values (for every side of the element one value.) Examples: border-style: dotted; border-style: dotted solid double dashed; border-style can also have the values none and hidden. They ...
It is possible to limit the tests executed by manage.py test by specifying which modules should be discovered by the test runner: # Run only tests for the app names "app1" $ python manage.py test app1 # If you split the tests file into a module with several tests files for an app $ p...
Drupal Console The new CLI for Drupal. A tool to generate boilerplate code, interact with and debug Drupal. First, we need to install Drupal Console. Drupal Console is needed not only for this time, but for future installations. # Run this in your terminal to get the latest project version: cur...
<PROJECT_ROOT>\app\build.gradle is specific for app module. <PROJECT_ROOT>\build.gradle is a "Top-level build file" where you can add configuration options common to all sub-projects/modules. If you use another module in your project, as a local library you would have another...
/** * The buildscript {} block is where you configure the repositories and * dependencies for Gradle itself--meaning, you should not include dependencies * for your modules here. For example, this block includes the Android plugin for * Gradle as a dependency because it provides the addition...

Page 266 of 1336