Слава Україні
Glory to Ukraine
Save the World
Жыве Беларусь
Live Belarus



Уроки

Главная » Уроки

Обучающий онлайн урок
Термины

Г Гедан - нижний уровень телаПримеры: Гедан-цуки, Гедан-барай, Гедан учи-барай. Д Дзедан - верхний уровень телаПримеры: Дзедан аге-укэ Ч Чудан - средний уровень тела; уровень солнечного сплетения

Читать урок >>

Обучающий онлайн урок
ACMF's Library

aURL(string $aURN, string $aURLPrefix = ANGELS_URL):string

Читать урок >>

Обучающий онлайн урок
SetObject - Set / Множество

Properties - Methods SetObject::add(item[, item[, ...]]):this - add item(s) into the set object.

Читать урок >>

Обучающий онлайн урок
Configuration

User's Git ignore file Add next lines in your %USERPROFILE%\.gitignore file # Ignore Eclipse IDE files /.settings /.buildpath /.project Composer and required packages Install composer. Install phpunit/phpunit, facebook/webdriver, phpunit/dbunit:  composer global require phpunit/phpunit composer global require phpunit/dbunit composer global require facebook/webdriver  

Читать урок >>

Обучающий онлайн урок
Преобразы Изображений / Images Presets

Base presets mini - 100x100 page - 400x400 normal - 800x800 Presets Registatration Add a new preset in MOD_DIR/<modName>/config.php. For example:  $NanoConfig['img']['presets']['<preset_name>'] = array( 'default' => '.png', 'manipulations' => array( array( 'method' => 'reduce1', 'width' => 400, 'height' => 400, 'version' => 1, ), ), );

Читать урок >>

Обучающий онлайн урок
Изображения / Images

Читать урок >>

Обучающий онлайн урок
Типы Данных / Data Types

AnyType - can be any value. CallbackType - callback function. CounterType - a positive integer that is greater than or equal to zero. bad: price - it's real not integer. bad: temperature - it's can be negative. be careful: age - can be unknown. correct: amount of elements - always zero or positive value. TheSameClassType - returns an object of the same class. ThisType - returns a reference to the current object.

Читать урок >>

Обучающий онлайн урок
Функции

Объявление функций Функции обявляются с впомощью зарезервированного слова function: function nameOfFunction() {} Параметры функций Необязательный параметр помечается с помощью знака вопроса "?": function nameOfFunction(varibleName?: VariableType): Return_Type Параметр со значение по умолчанию помечается с помощью знака равно "=" и присвоенным значением: function nameOfFunction(varibleName?: VariableType = defaultValue): Return_Type Однотипные параметры помечаются троеточием "...": fu...

Читать урок >>

Обучающий онлайн урок
Типы Переменных

Number String Boolean Array Enum Any Void

Читать урок >>

Обучающий онлайн урок
Mouse Events

Mouse Events: onmouseenter onmouseleave onmouseover onmouseout onmousemove

Читать урок >>

Обучающий онлайн урок
Формы / Forms

addSkypeField()

Читать урок >>

Обучающий онлайн урок
Begginer: Words

A: angle - угол, поворачивать; ant - муравей; apple - яблоко; arch - арка, дуга, выгибать; arm - рука, вооружать; army - армия B: bag - сумка ball - мяч bank - банк basin - бассейн basket - корзина bath - ванна, купаться bed - кровать bee - пчела bell - колокольчик berry - ягода bird - птица blade - лезвие board - доска boat - лодка, судно bone - кость book - книга boot - ботинок, загружать bottle - бутылка box - коробка boy - мальчик brain - мозг brake - тормоз, тормозить branch - ветвь, отд...

Читать урок >>

Срок прохождения уровня: 2-4 месяца Grammar / Грамматика Вам знакомы три простых времени: Present, Past и Future Simple. Вы понимаете, почему в предложениях I see a book. The book is good перед словом book в первом предложении стоит a, а во втором the (артикли в английском языке), хотя можете неправильно использовать артикли в своей речи. Вы знаете, что у глаголов есть три формы, например: go-went-gone (неправильные глаголы). Вы можете посчитать количество предметов (единственное и множеств...

Читать урок >>

Обучающий онлайн урок
There Is / There Are

Читать урок >>

Обучающий онлайн урок
Справочник

Читать урок >>

Обучающий онлайн урок
Глагол Ломать / Verb Break - Broke - Broken

break down — ломаться, разбиваться, ухудшаться break in/into — вламываться, врываться broke out — сбегать,начаться, разразиться break off — отламываться, отваливаться break up — расставаться, распадаться, прекращать break through — прорваться, пробиться break away — убежать, вырваться break loose — убежать break forth — вырваться, прорваться  

Читать урок >>

Here (this - these) - there (that - those)   here there single This (этот) That (тот) plural These (эти) Those (те)  

Читать урок >>

Обучающий онлайн урок
Времена Английского языка

    1 Present Simple Present Indefinite Простое настоящее 2 Past Simple Past Indefinite Простое прошедшее 3 Future Simple Future indefinite Простое будущее 4 Present Continuous Present Progressive Настоящее продолженное 5 Past Continuous Past Progressive Прошедшее продолженное 6 Future Continuous Future Progressive Будущее продолженное ...

Читать урок >>

Обучающий онлайн урок
- Class MapObject2

aaaaaaaaaaa

Читать урок >>

Обучающий онлайн урок
MapObject

Properties Нету. Methods remove(Key):this

Читать урок >>

Обучающий онлайн урок
ACMF's Alpha WebDriver

Class WebElement Properties $remoteWebElement $testCase Methods is() - returns true if child element exists. getRemoteWebElement() - return binded Facebook\WebDriver\Remote\RemoteWebElement element. clear() click() findElement() getText() isDisplayed() sendKeys()  

Читать урок >>

Обучающий онлайн урок
Files Structure

blanks/                         - the "Blanks Directory" stores some examples of the code. compiled/                       - the "Compiled Directory" stores compiled templates from the Templates Directory. config/                         - Configuration Directory. config/phpunit/      &...

Читать урок >>

Обучающий онлайн урок
ArrayLib

111111111111

Читать урок >>

Обучающий онлайн урок
Str

Methods Str::length(<string>) Str::subFromStart(<string>, <length>) Str::truncate(<string>, <length>[, ending])

Читать урок >>

Обучающий онлайн урок
ACMF's Alpha Classes

Escape Escape::html(<string>):string - escapes HTML-string. Is Is::array(<variable>):boolean - returns true if variable is array.  Log Log::error(<message>[, $placeholders]) Log::info(<message>[, $placeholders]) Log::warning(<message>[, $placeholders]) Out Out::tag(<tag_name>, <attributes>[, $content]):string - returns tag as string. Out::escapeAttribute(<value>[, char]):string - returns an escaped attribute. PHP ...

Читать урок >>

Обучающий онлайн урок
Java Script

Читать урок >>

Обучающий онлайн урок
KeyboardKey

Create Keyboard Key object var keyEscape = new KeyboardKey(KeyboardKey.ESCAPE); var keyEnter = new KeyboardKey(KeyboardKey.ENTER); var keyUp = new KeyboardKey(KeyboardKey.UP);  

Читать урок >>

Обучающий онлайн урок
Html

Methods select() Method select() select(string $name = '', iterable $options = [], $default = '', $parameters = ''):string  

Читать урок >>

Обучающий онлайн урок
Out

Methods select() Method select() select(string $name = '', iterable $options = [], $default = '', $parameters = ''):string  

Читать урок >>

Обучающий онлайн урок
ACF's Structure

Steps Load configuration Run bootstrap Parse route Load configuration step   ... ... Prepare Applicatin's configuration. config.php domains/<domain_name>/config.ini domains/<domain_name>/config.php ...

Читать урок >>

Обучающий онлайн урок
Rules and Terms

D Directory Path - full path to the directory ( /hosts/host_name/path/ ).

Читать урок >>

Обучающий онлайн урок
Configuration

General constants. A_DOMAIN_NAME - Application's Domain Name, (example.com, sub.example.com). A_DEV - development mode (false by default). A_TEST A_URL - Application's URL. Secondary constants. A_CORE - As' Core marker, always should be 'true'. A_ENCODING - base encoding A_ROOT_DIR - Application's directory path. A_SESSION_NAMESPACE A_SCHEMA_DOMAIN_URL A_CACHE_DIR - Applications's Cache directory path. A_PUBLIC_DIR A_SRC_DIR A_TEMP_DIR - Applicatio...

Читать урок >>

Обучающий онлайн урок
ArrayObject

Properties ArrayObject::length - contains the number of elements in the array. Methods ArrayObject::clear():this - clears ArrayObject and returns this. ArrayObject::clone():ArrayObject - clones ArrayObject. ArrayObject::copy(Position[, Count]):ArrayObject - returns elements from position (and count) as ArrayObject without deleting. ArrayObject::count():Count - returns items count in ArrayObject. ArrayObject::cut(Position[, Count = 1):ArrayObject - deletes elem...

Читать урок >>

Обучающий онлайн урок
ACMF's Classes

ArrayLib ArrayLib::clone(<array>) ArrayObject ArrayObject::clear() - clears ArrayObject and returns this. ArrayObject::clone() - clones ArrayObject. ArrayObject::copy(Position[, Counter]):ArrayObject - returns copied items. ArrayObject::copyFirst([Counter]):ArrayObject - returns first items. ArrayObject::count() - returns items count in ArrayObject. ArrayObject::cut(Position[, Counter]):ArrayObject - cuts items. ArrayObject::delete(Position[, Counter]):This - deletes elem...

Читать урок >>

Обучающий онлайн урок
Desk, v0.0.1

Commands list aut - runs Unit Testing via PHPUnit. aut1 - PHPUnit testing with --debug and --verbose. av - shows version. awt - runs Web Testing via PHPUnit and Facebook WebDriver. awt1 - runs Web Testing via PHPUnit and Facebook WebDriver with --debug and --verbose. console - runs AConsole. ga - runs `git add` and `git status`. gall - runs `git add . -A` and `git status`. gamend - runs `git commit --amend` gd - runs `git diff` gin - runs `git pull` gist - runs `g...

Читать урок >>

Обучающий онлайн урок
Test Case Methods

addCookie() - add cookie by name and value. assertHtml() - checks two HTML strings. assertHtmlDocument() - checks two HTML documents. assertSamePretty() - checks two HTML strings. deleteCookie() - delets cookie by name. getCookie() - gets cookie by name. isMatch() - checks string with RegExp. isMethodsExist() - checks that method(s) is(are) exist in class/object. isPairsSame() - checks that each key equals corresponding value. successful() - mark current test as successful.

Читать урок >>

Обучающий онлайн урок
Web Test Case Methods

failTest($message) - marks test as failed. logout() - logouts member using the Account Logout Page. waitForText($element, $expectedText, $error = "") - wait for text present in the $element.   assertHtml() - checks HTML strings. by() - returns element by universal selector. byCss() - returns element by CSS selector. byXPath() - returns element by XPath selector. click() - click by element. getText() - return text from element by selector. is() - checks if ...

Читать урок >>

Обучающий онлайн урок
Шпаргалка / Spreadsheet

Список комманд консоли: gulp task-list Список коммандировке gulp: gulp.task('watch', function() { // ... }); gulp.watch('app/sass/**/*.sass', ['sass']); // следить за файлами    

Читать урок >>

Обучающий онлайн урок
apachectl -h

Использование: /usr/local/sbin/apache2ctl [-D name] [-d directory] [-f file]                         [-C "directive"] [-c "directive"]                         [-k start|restart|graceful|graceful-stop|stop]        &nb...

Читать урок >>

  apache2ctl -h Список доступны комманд (помощь). apache2ctl -l Список скомпитированных модулей apache2ctl -M Список загруженных модулей apache2ctl -S Список сайтов. apache2ctl -t Выполнить синтаксическую проверку конфигурационных файлов. apache2ctl configtest Проверка конфигурации. tail -f /log/apache2/error.logtail -f /log/apache2/access.log Показать последние записи из файла логов. ...

Читать урок >>

Обучающий онлайн урок
create-project - Создание проекта.

Категория: Уроки ← Уроки PHP

Вы можете использовать Composer для создания новых проектов из существующих пакетов. Это тоже самое, что и сделать клонирование/чекаут (git clone/svn checkout) и выполнить "composer install". Есть несколько приложения для этого: Вы можете развернуть пакеты приложения. Вы можете проверить любой пакет и начать разработку патчей, например. Проекты с несколькими разработчиками могут использовать эту функцию, чтобы загружать начальное приложение для разработки. Для создания нового проекта...

Читать урок >>

Обучающий онлайн урок
Интерфейс командной строки / Команды

Категория: Уроки ← Уроки PHP

В этой главе описаны все доступные команды. Чтобы получить справку из командной строки, просто вызовите composer или composer list чтобы увидеть полный список команд, а затем --help в сочетании с любой из комманд, чтобы получить больше информации.  

Читать урок >>

utf8 - это charset, способ хранения символов из набора unicode. От одного байта до трёх на один символ.utf8_bin, utf8_general_ci, utf8_unicode_ci - это collations. Способ описания порядка букв для сортировок, поиска и приведения к верхнему/нижнему региструutf8_bin - всё регистрово зависимо. При поиске 'A' != 'a', сортировка - вроде в порядке следования в таблицеutf8_general_ci, utf8_unicode_ci - более умные коллации. Они уже будут учитывать что при поиске 'AaA' == 'aaa', различаются только сп...

Читать урок >>

Обучающий онлайн урок
Установка Jenkins На Windows.

Jenkins - это программное обеспечение для непрерывной интеграции. Установка. Скачать Jenkins можно с официального сайта. Установка модулей: Открываем Jenkins, через web-интерфейс (http://localhost:8080). Заходим в "Manage Jenkins" > Manage Plugins > Закладка "Available". Ищем и помечаем следующие плагины: Git Plugin - Плагин для работы с Git. Publish Over FTP - Плагин для публикации файлов с использованием FTP.   Publish Over SSH - Плагин для публикации файлов с и...

Читать урок >>

Обучающий онлайн урок
Цены на оффшоры.

Цены на оффшоры Ангилья. offagg.com: 1100$ за офшор, 1380$ компания с номинальным сервисом. [3] Цены на оффшоры на Багамах. offagg.com: 1700$ за офшор, 2200$ компания с номинальным сервисом. [3] Цены на оффшоры на Британских Виргинских островах (БВО). koffshore.com: 1950$ за офшор.[1] andersen-bs.ru: от $1900. Комплект «Все включено»: $3275.[2] offagg.com: 1150$ за офшор, 1350$ компания с номинальным сервисом. [3] Цены на оффшоры в Белизе. andersen-bs.ru: о...

Читать урок >>

Обучающий онлайн урок
Установка ubuntu x64 используя Vagrant.

Соаздайте директорию для работы с Vagrant. И перейдите в неё. Для 64-битной системы выполните комманду: > vagrant init ubuntu/trusty64 Для 32-битной системы выполните комманду: > vagrant init ubuntu/trusty32 Комманда vagrant init инициализирует указанное окружение ubuntu/trusty64 (ubuntu/trusty32). Следующим шагом будет запуск виртуальной машины: > vagrant up --provider virtualbox После выполнения комманды начнется процесс скачивания образа.  

Читать урок >>

Обучающий онлайн урок
Что такое Vagrant

Vagrant (англ. бродяга) — свободное и открытое программное обеспечение для создания и конфигурирования виртуальной среды разработки. Является обёрткой для программного обеспечения виртуализации, например VirtualBox, и средств управления конфигурациями, такими как Chef, Salt и Puppet.Начиная с версии 1.1 Vagrant больше не привязан к VirtualBox и так же работает с другими средствами виртуализации, например VMware Workstation, а также поддерживает облачные среды, например Amazon EC2. Инстр...

Читать урок >>

Обучающий онлайн урок
Комманды Vagrant

Введите в коммандной строке "vagrant". > vagrant В реузльтате получим список основных комманд Vagrant: box - управление боксами: установка, удаление и т.д.connect - соединение с удаленным общей среде Vagrantdestroy - остонавливает и удаляет все следы vagrant машиныglobal-status - отображает статус Vagrant окружения для этого пользователяhalt - останавливает vagrant машинуhelp - показывает помощь указанной подкоммандыinit - инициализирует новое Vagrant окружение на основе Vagrant-файлаlo...

Читать урок >>

Обучающий онлайн урок
XML Helper

The XML Helper file contains functions that assist in working with XML data.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('xml'); The following functions are available:   xml_convert('string')   Takes a string as input and converts the following reserved XML characters to entities:   Ampersands: & Less then and greater than characters: < > Single and double quotes: '  " Dashes: -   ...

Читать урок >>

Обучающий онлайн урок
URL Helper

The URL Helper file contains functions that assist in working with URLs.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('url'); The following functions are available:   site_url()   Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the URL, as will any URI segments you pass to the function, and the ur...

Читать урок >>

Обучающий онлайн урок
Typography Helper

The Typography Helper file contains functions that help your format text in semantically relevant ways.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('typography'); The following functions are available:   auto_typography()   Formats text so that it is semantically and typographically correct HTML. Please see the Typography Class for more info.   Usage example: $string = auto_typography($string); Note: ...

Читать урок >>

Обучающий онлайн урок
Text Helper

The Text Helper file contains functions that assist in working with text.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('text'); The following functions are available:   word_limiter()   Truncates a string to the number of words specified. Example: $string = "Here is a nice text string consisting of eleven words."; $string = word_limiter($string, 4); // Returns: Here is a nice… The third parameter is...

Читать урок >>

Обучающий онлайн урок
String Helper

The String Helper file contains functions that assist in working with strings.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('string'); The following functions are available:   random_string()   Generates a random string based on the type and length you specify. Useful for creating passwords or generating random hashes.   The first parameter specifies the type of string, the second parameter specifies the...

Читать урок >>

Обучающий онлайн урок
Smiley Helper

The Smiley Helper file contains functions that let you manage smileys (emoticons).   Loading this Helper   This helper is loaded using the following code: $this->load->helper('smiley'); Overview   The Smiley helper has a renderer that takes plain text simileys, like :-) and turns them into a image representation, like   It also lets you display a set of smiley images that when clicked will be inserted into a form field. For example, if you have a blog that...

Читать урок >>

Обучающий онлайн урок
Security Helper

The Security Helper file contains security related functions.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('security'); The following functions are available:   xss_clean()   Provides Cross Site Script Hack filtering. This function is an alias to the one in the Input class. More info can be found there.   sanitize_filename()   Provides protection against directory traversal. This function is an al...

Читать урок >>

Обучающий онлайн урок
Path Helper

The Path Helper file contains functions that permits you to work with file paths on the server.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('path'); The following functions are available:   set_realpath()   Checks to see if the path exists. This function will return a server path without symbolic links or relative directory structures. An optional second argument will cause an error to be triggered if the path...

Читать урок >>

Обучающий онлайн урок
HTML Helper

The HTML Helper file contains functions that assist in working with HTML. br() heading() img() link_tag() nbs() ol() and ul() meta() doctype() Loading this Helper This helper is loaded using the following code: $this->load->helper('html'); The following functions are available: br() Generates line break tags (<br />) based on the number you submit. Example: echo br(3); The above would produce: <br /><br /><br /> heading() Lets you create HTM...

Читать урок >>

Обучающий онлайн урок
Form Helper

The Form Helper file contains functions that assist in working with forms.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('form'); The following functions are available:   form_open()   Creates an opening form tag with a base URL built from your config preferences. It will optionally let you add form attributes and hidden input fields, and will always add the attribute accept-charset based on the charset value in...

Читать урок >>

Обучающий онлайн урок
File Helper

The File Helper file contains functions that assist in working with files.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('file'); The following functions are available:   read_file('path')   Returns the data contained in the file specified in the path. Example: $string = read_file('./path/to/file.php'); The path can be a relative or full server path. Returns FALSE (boolean) on failure.   Note: The path ...

Читать урок >>

Обучающий онлайн урок
Email Helper

The Email Helper provides some assistive functions for working with Email. For a more robust email solution, see CodeIgniter's Email Class.   Loading this Helper   This helper is loaded using the following code:   $this->load->helper('email');   The following functions are available:   valid_email('email')   Checks if an email is a correctly formatted email. Note that is doesn't actually prove the email will recieve mail, simply that it is a val...

Читать урок >>

Обучающий онлайн урок
Download Helper

The Download Helper lets you download data to your desktop.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('download'); The following functions are available:   force_download('filename', 'data')   Generates server headers which force data to be downloaded to your desktop. Useful with file downloads. The first parameter is the name you want the downloaded file to be named, the second parameter is the file data. E...

Читать урок >>

Обучающий онлайн урок
Directory Helper

The Directory Helper file contains functions that assist in working with directories.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('directory'); The following functions are available:   directory_map('source directory')   This function reads the directory path specified in the first parameter and builds an array representation of it and all its contained files. Example: $map = directory_map('./mydirectory/'); ...

Читать урок >>

Обучающий онлайн урок
Date Helper

The Date Helper file contains functions that help you work with dates. Loading this Helper This helper is loaded using the following code: $this->load->helper('date'); The following functions are available: now() Returns the current time as a Unix timestamp, referenced either to your server's local time or GMT, based on the "time reference" setting in your config file. If you do not intend to set your master time reference to GMT (which you'll typically do if you run a site that l...

Читать урок >>

Обучающий онлайн урок
Cookie Helper

The Cookie Helper file contains functions that assist in working with cookies.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('cookie'); The following functions are available:   set_cookie()   This helper function gives you view file friendly syntax to set browser cookies. Refer to the Input class for a description of use, as this function is an alias to $this->input->set_cookie().   get_cookie() &n...

Читать урок >>

Обучающий онлайн урок
CAPTCHA Helper

The CAPTCHA Helper file contains functions that assist in creating CAPTCHA images.   Loading this Helper   This helper is loaded using the following code: $this->load->helper('captcha'); The following functions are available:   create_captcha($data)   Takes an array of information to generate the CAPTCHA as input and creates the image to your specifications, returning an array of associative data about the image. [array] (   'image' => IMAGE T...

Читать урок >>

Обучающий онлайн урок
Array Helper

The Array Helper file contains functions that assist in working with arrays. Loading this Helper This helper is loaded using the following code: $this->load->helper('array'); The following functions are available: element() Lets you fetch an item from an array. The function tests whether the array index is set and whether it has a value. If a value exists it is returned. If a value does not exist it returns FALSE, or whatever you've specified as the default value via the third par...

Читать урок >>

Обучающий онлайн урок
Helper Reference

Читать урок >>

Обучающий онлайн урок
Zip Encoding Class

CodeIgniter's Zip Encoding Class classes permit you to create Zip archives. Archives can be downloaded to your desktop or saved to a directory.   Initializing the Class   Like most other classes in CodeIgniter, the Zip class is initialized in your controller using the $this->load->library function: $this->load->library('zip'); Once loaded, the Zip library object will be available using: $this->zip   Usage Example   This example demonstrates how to ...

Читать урок >>

Обучающий онлайн урок
XML-RPC и XML-RPC Server Classes.

CodeIgniter's XML-RPC classes permit you to send requests to another server, or set up your own XML-RPC server to receive requests. What is XML-RPC? Quite simply it is a way for two computers to communicate over the internet using XML. One computer, which we will call the client, sends an XML-RPC request to another computer, which we will call the server. Once the server receives and processes the request it will send back a response to the client. For example, using the MetaWeblog API, an...

Читать урок >>

Обучающий онлайн урок
User Agent Class

The User Agent Class provides functions that help identify information about the browser, mobile device, or robot visiting your site. In addition you can get referrer information as well as language and supported character-set information. Initializing the Class Like most other classes in CodeIgniter, the User Agent class is initialized in your controller using the $this->load->library function: $this->load->library('user_agent'); Once loaded, the object will be available usin...

Читать урок >>

Обучающий онлайн урок
URI Class

The URI Class provides functions that help you retrieve information from your URI strings. If you use URI routing, you can also retrieve information about the re-routed segments. Note: This class is initialized automatically by the system so there is no need to do it manually. $this->uri->segment(n) Permits you to retrieve a specific segment. Where n is the segment number you wish to retrieve. Segments are numbered from left to right. For example, if your full URL is this: http://ex...

Читать урок >>

Обучающий онлайн урок
Unit Testing Class

Unit testing is an approach to software development in which tests are written for each function in your application. If you are not familiar with the concept you might do a little googling on the subject. CodeIgniter's Unit Test class is quite simple, consisting of an evaluation function and two result functions. It's not intended to be a full-blown test suite but rather a simple mechanism to evaluate your code to determine if it is producing the correct data type and result. Initializing ...

Читать урок >>

Обучающий онлайн урок
Typography Class

The Typography Class provides functions that help you format text.   Initializing the Class   Like most other classes in CodeIgniter, the Typography class is initialized in your controller using the $this->load->library function: $this->load->library('typography'); Once loaded, the Typography library object will be available using: $this->typography   auto_typography()   Formats text so that it is semantically and typographically correct HTML. Take...

Читать урок >>

Обучающий онлайн урок
Template Parser Class

The Template Parser Class enables you to parse pseudo-variables contained within your view files. It can parse simple variables or variable tag pairs. If you've never used a template engine, pseudo-variables look like this: <html> <head> <title>{blog_title}</title> </head> <body> <h3>{blog_heading}</h3> {blog_entries} <h5>{title}</h5> <p>{body}</p> {/blog_entries} </body> </html> These variables are not ac...

Читать урок >>

Обучающий онлайн урок
Trackback Class

The Trackback Class provides functions that enable you to send and receive Trackback data. If you are not familiar with Trackbacks you'll find more information here. Initializing the Class Like most other classes in CodeIgniter, the Trackback class is initialized in your controller using the $this->load->library function: $this->load->library('trackback'); Once loaded, the Trackback library object will be available using: $this->trackback Sending Trackbacks A Trackback c...

Читать урок >>

Обучающий онлайн урок
Session Class

The Session class permits you maintain a user's "state" and track their activity while they browse your site. The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie. It can also store the session data in a database table for added security, as this permits the session ID in the user's cookie to be matched against the stored session ID. By default only the cookie is saved. If you choose to use the database option you'll need to crea...

Читать урок >>

Обучающий онлайн урок
Pagination Class

CodeIgniter's Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences. If you are not familiar with the term "pagination", it refers to links that allows you to navigate from page to page, like this: « First  < 1 2 3 4 5 >  Last » Example Here is a simple example showing how to create pagination in one of your controller functions: $this->load->library('pagin...

Читать урок >>

Обучающий онлайн урок
Output Class

The Output class is a small class with one main function: To send the finalized web page to the requesting browser. It is also responsible for caching your web pages, if you use that feature. Note: This class is initialized automatically by the system so there is no need to do it manually. Under normal circumstances you won't even notice the Output class since it works transparently without your intervention. For example, when you use the Loader class to load a view file, it's automatically...

Читать урок >>

Обучающий онлайн урок
Language Class

The Language Class provides functions to retrieve language files and lines of text for purposes of internationalization. In your CodeIgniter system folder you'll find one called language containing sets of language files. You can create your own language files as needed in order to display error and other messages in other languages. Language files are typically stored in your system/language directory. Alternately you can create a folder called language inside your application folder and s...

Читать урок >>

Обучающий онлайн урок
Loader Class

Loader, as the name suggests, is used to load elements. These elements can be libraries (classes) View files, Helpers, Models, or your own files.   Note: This class is initialized automatically by the system so there is no need to do it manually.   The following functions are available in this class:   $this->load->library('class_name',$config, 'object name')   This function is used to load core classes. Where class_name is the name of the class you want to l...

Читать урок >>

Обучающий онлайн урок
Input Class

The Input Class serves two purposes:   It pre-processes global input data for security. It provides some helper functions for fetching input data and pre-processing it.   Note: This class is initialized automatically by the system so there is no need to do it manually.   Security Filtering   The security filtering function is called automatically when a new controller is invoked. It does the following:   If $config['allow_get_array'] is FALSE(default ...

Читать урок >>

Обучающий онлайн урок
Image Manipulation Class

CodeIgniter's Image Manipulation class lets you perform the following actions: Image Resizing Thumbnail Creation Image Cropping Image Rotating Image Watermarking All three major image libraries are supported: GD/GD2, NetPBM, and ImageMagick Note: Watermarking is only available using the GD/GD2 library. In addition, even though other libraries are supported, GD is required in order for the script to calculate the image properties. The image processing, however, will be performed wit...

Читать урок >>

Обучающий онлайн урок
HTML Table Class

The Table Class provides functions that enable you to auto-generate HTML tables from arrays or database result sets.   Initializing the Class   Like most other classes in CodeIgniter, the Table class is initialized in your controller using the $this->load->library function: $this->load->library('table'); Once loaded, the Table library object will be available using: $this->table   Examples   Here is an example showing how you can create a table fro...

Читать урок >>

Обучающий онлайн урок
FTP Class

CodeIgniter's FTP Class permits files to be transfered to a remote server. Remote files can also be moved, renamed, and deleted. The FTP class also includes a "mirroring" function that permits an entire local directory to be recreated remotely via FTP. Note:  SFTP and SSL FTP protocols are not supported, only standard FTP. Initializing the Class Like most other classes in CodeIgniter, the FTP class is initialized in your controller using the $this->load->library function: $this...

Читать урок >>

Обучающий онлайн урок
Form Validation Class. Часть 2.

Rule Reference Prepping Reference Function Reference Helper Reference   Rule Reference   The following is a list of all the native rules that are available to use:   RuleParameterDescriptionExample required No Returns FALSE if the form element is empty.   matches Yes Returns FALSE if the form element does not match the one in the parameter. matches[form_item] is_unique Yes Returns FALSE if the form element is not unique to the table an...

Читать урок >>

Обучающий онлайн урок
Form Validation Class. Часть 1.

CodeIgniter provides a comprehensive form validation and data prepping class that helps minimize the amount of code you'll write.   Overview Form Validation Tutorial The Form The Success Page The Controller Setting Validation Rules Setting Validation Rules Using an Array Cascading Rules Prepping Data Re-populating the Form Callbacks Setting Error Messages Changing the Error Delimiters Translating Field Names Showing Errors Individually Saving Sets of Validation Rules...

Читать урок >>

Обучающий онлайн урок
File Uploading Class

CodeIgniter's File Uploading Class permits files to be uploaded. You can set various preferences, restricting the type and size of the files. The Process Uploading a file involves the following general process: An upload form is displayed, allowing a user to select a file and upload it. When the form is submitted, the file is uploaded to the destination you specify. Along the way, the file is validated to make sure it is allowed to be uploaded based on the preferences you set. Once up...

Читать урок >>

Обучающий онлайн урок
Encryption Class

The Encryption Class provides two-way data encryption. It is encrypted using the Mcrypt library. The Encryption Class requires the Mcrypt extension to run. Setting your Key A key is a piece of information that controls the cryptographic process and permits an encrypted string to be decoded. In fact, the key you chose will provide the only means to decode data that was encrypted with that key, so not only must you choose the key carefully, you must never change it if you intend use it for pe...

Читать урок >>

Обучающий онлайн урок
Email Class

CodeIgniter's robust Email Class supports the following features: Multiple Protocols: Mail, Sendmail, and SMTP Multiple recipients CC and BCCs HTML or Plaintext email Attachments Word wrapping Priorities BCC Batch Mode, enabling large email lists to be broken into small BCC batches. Email Debugging tools Sending Email Sending email is not only simple, but you can configure it on the fly or set your preferences in a config file. Here is a basic example demonstrating how you mig...

Читать урок >>

Обучающий онлайн урок
Javascript Class

Note: This driver is experimental. Its feature set and implementation may change in future releases. CodeIgniter provides a library to help you with certain common functions that you may want to use with Javascript. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it. Initializing the Class To initialize the Javascript class manually in...

Читать урок >>

Обучающий онлайн урок
Кэш-драйвер / Caching Driver.

CodeIgniter features wrappers around some of the most popular forms of fast and dynamic caching. All but file-based caching require specific server requirements, and a Fatal Exception will be thrown if server requirements are not met. Table of Contents Example Usage Function Reference Available Drivers Alternative PHP Cache (APC) Caching File-based Caching Memcached Caching Dummy Cache Example Usage The following example will load the cache driver, specify APC as the driver ...

Читать урок >>

Обучающий онлайн урок
Драйверы/Drivers.

Читать урок >>

Обучающий онлайн урок
Database Utility Class

The Database Utility Class contains functions that help you manage your database. Table of Contents Initializing the Utility Class Listing your Databases Checking for a specific Database Optimizing your Tables Repairing your Databases Optimizing your Database CSV Files from a Database Result XML Files from a Database Result Backing up your Database Initializing the Utility Class Important:  In order to initialize the Utility class, your database driver must already be run...

Читать урок >>

Обучающий онлайн урок
Database Forge Class

The Database Forge Class contains functions that help you manage your database. Table of Contents Initializing the Forge Class Creating a Database Dropping a Database Adding Fields Adding Keys Creating a Table Dropping a Table Renaming a Table Modifying a Table Initializing the Forge Class Important:  In order to initialize the Forge class, your database driver must already be running, since the forge class relies on it. Load the Forge Class as follows: $this->load-&...

Читать урок >>

Обучающий онлайн урок
Кэширование запросов.

The Database Caching Class permits you to cache your queries as text files for reduced database load.   Important:  This class is initialized automatically by the database driver when caching is enabled. Do NOT load this class manually. Also note:  Not all query result functions are available when you use caching. Please read this page carefully.   Enabling Caching   Caching is enabled in three steps:   Create a writable directory on your server where t...

Читать урок >>

Обучающий онлайн урок
Вызов пользовательских функций.

$this->db->call_function();   This function enables you to call PHP database functions that are not natively included in CodeIgniter, in a platform independent manner. For example, lets say you want to call the mysql_get_client_info() function, which is not natively supported by CodeIgniter. You could do so like this: $this->db->call_function('get_client_info'); You must supply the name of the function, without the mysql_ prefix, in the first parameter. The prefix is adde...

Читать урок >>

Обучающий онлайн урок
Поле данных.

$this->db->list_fields() Returns an array containing the field names. This query can be called two ways: 1. You can supply the table name and call it from the $this->db-> object: $fields = $this->db->list_fields('table_name'); foreach ($fields as $field) {    echo $field; } 2. You can gather the field names associated with any query you run by calling the function from your query result object: $query = $this->db->query('SELECT * FROM some_table'...

Читать урок >>

Обучающий онлайн урок
Табличные данные.

These functions let you fetch table information. $this->db->list_tables(); Returns an array containing the names of all the tables in the database you are currently connected to. Example: $tables = $this->db->list_tables(); foreach ($tables as $table) {    echo $table; } $this->db->table_exists(); Sometimes it's helpful to know whether a particular table exists before running an operation on it. Returns a boolean TRUE/FALSE. Usage example: if ($this->db...

Читать урок >>

Обучающий онлайн урок
Транзакции/Transactions.

CodeIgniter's database abstraction allows you to use transactions with databases that support transaction-safe table types. In MySQL, you'll need to be running InnoDB or BDB table types rather than the more common MyISAM. Most other database platforms support transactions natively. If you are not familiar with transactions we recommend you find a good online resource to learn about them for your particular database. The information below assumes you have a basic understanding of transactions...

Читать урок >>

Обучающий онлайн урок
Active Record Class

CodeIgniter uses a modified version of the Active Record Database Pattern. This pattern allows information to be retrieved, inserted, and updated in your database with minimal scripting. In some cases only one or two lines of code are necessary to perform a database action. CodeIgniter does not require that each database table be its own class file. It instead provides a more simplified interface. Beyond simplicity, a major benefit to using the Active Record features is that it allows you to...

Читать урок >>

$this->db->insert_id() The insert ID number when performing database inserts. $this->db->affected_rows() Displays the number of affected rows, when doing "write" type queries (insert, update, etc.). Note: In MySQL "DELETE FROM TABLE" returns 0 affected rows. The database class has a small hack that allows it to return the correct number of affected rows. By default this hack is enabled but it can be turned off in the database driver file. $this->db->count_all(); Permit...

Читать урок >>

There are several ways to generate query results:   result()   This function returns the query result as an array of objects, or an empty array on failure. Typically you'll use this in a foreach loop, like this: $query = $this->db->query("YOUR QUERY"); foreach ($query->result() as $row) {    echo $row->title;    echo $row->name;    echo $row->body; } The above function is an alias of result_object().   If ...

Читать урок >>

Обучающий онлайн урок
Запросы к Базе данных.

$this->db->query(); To submit a query, use the following function: $this->db->query('YOUR QUERY HERE'); The query() function returns a database result object when "read" type queries are run, which you can use to show your results. When "write" type queries are run it simply returns TRUE or FALSE depending on success or failure. When retrieving data you will typically assign the query to your own variable, like this: $query = $this->db->query('YOUR QUERY HERE'); $this-&...

Читать урок >>

Обучающий онлайн урок
Соединение с базой данных.

There are two ways to connect to a database:   Automatically Connecting   The "auto connect" feature will load and instantiate the database class with every page load. To enable "auto connecting", add the word database to the library array, as indicated in the following file:   application/config/autoload.php   Manually Connecting   If only some of your pages require database connectivity you can manually connect to your database by adding this line of code ...

Читать урок >>

Обучающий онлайн урок
Конфигурация Базы данных.

CodeIgniter has a config file that lets you store your database connection values (username, password, database name, etc.). The config file is located atapplication/config/database.php. You can also set database connection values for specific environments by placing database.php it the respective environment config folder. The config settings are stored in a multi-dimensional array with this prototype: $db['default']['hostname'] = "localhost"; $db['default']['username'] = "root"; $db['defa...

Читать урок >>

The following page contains example code showing how the database class is used. For complete details please read the individual pages describing each function.   Initializing the Database Class   The following code loads and initializes the database class based on your configuration settings: $this->load->database(); Once loaded the class is ready to be used as described below.   Note: If all your pages require database access you can connect automatically. See t...

Читать урок >>

Обучающий онлайн урок
Database Class

CodeIgniter comes with a full-featured and very fast abstracted database class that supports both traditional structures and Active Record patterns. The database functions offer clear, simple syntax.

Читать урок >>

Обучающий онлайн урок
Config Class

The Config class provides a means to retrieve configuration preferences. These preferences can come from the default config file (application/config/config.php) or from your own custom config files. Note: This class is initialized automatically by the system so there is no need to do it manually. Anatomy of a Config File By default, CodeIgniter has one primary config file, located atapplication/config/config.php. If you open the file using your text editor you'll see that config items are ...

Читать урок >>

Обучающий онлайн урок
Cart Class

The Cart Class permits items to be added to a session that stays active while a user is browsing your site. These items can be retrieved and displayed in a standard "shopping cart" format, allowing the user to update the quantity or remove items from the cart. Please note that the Cart Class ONLY provides the core "cart" functionality. It does not provide shipping, credit card authorization, or other processing components. Initializing the Shopping Cart Class Important: The Cart class util...

Читать урок >>

Обучающий онлайн урок
Calendaring Class

The Calendar class enables you to dynamically create calendars. Your calendars can be formatted through the use of a calendar template, allowing 100% control over every aspect of its design. In addition, you can pass data to your calendar cells.   Initializing the Class   Like most other classes in CodeIgniter, the Calendar class is initialized in your controller using the $this->load->library function: $this->load->library('calendar'); Once loaded, the Calendar ob...

Читать урок >>

Обучающий онлайн урок
Benchmarking Class

CodeIgniter has a Benchmarking class that is always active, enabling the time difference between any two marked points to be calculated.   Note: This class is initialized automatically by the system so there is no need to do it manually.   In addition, the benchmark is always started the moment the framework is invoked, and ended by the output class right before sending the final view to the browser, enabling a very accurate timing of the entire system execution to be shown. &n...

Читать урок >>

Обучающий онлайн урок
Классы/Classes.

Читать урок >>

Обучающий онлайн урок
Создание документации.

To help facilitate a consistent, easy-to-read documentation style for CodeIgniter projects, EllisLab is making the markup and CSS from the CodeIgniter user guide freely available to the community for their use. For your convenience, a template file has been created that includes the primary blocks of markup used with brief samples. Files Stylesheet Page Template

Читать урок >>

The following page describes the use of coding rules adhered to when developing CodeIgniter. Table of Contents File Format PHP Closing Tag Class and Method Naming Variable Names Commenting Constants TRUE, FALSE, and NULL Logical Operators Comparing Return Values and Typecasting Debugging Code Whitespace in Files Compatibility Class and File Names using Common Words Database Table Names One File per Class Whitespace Line Breaks Code Indenting Bracket and Parenthetic Spaci...

Читать урок >>

Обучающий онлайн урок
Безопасность.

This page describes some "best practices" regarding web security, and details CodeIgniter's internal security features. URI Security CodeIgniter is fairly restrictive regarding which characters it allows in your URI strings in order to help minimize the possibility that malicious data can be passed to your application. URIs may only contain the following: Alpha-numeric text Tilde: ~ Period: . Colon: : Underscore: _ Dash: - Register_globals During system initialization all global...

Читать урок >>

If you do not utilize CodeIgniter's template engine, you'll be using pure PHP in your View files. To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use PHPs alternative syntax for control structures and short tag echo statements. If you are not familiar with this syntax, it allows you to eliminate the braces from your code, and eliminate "echo" statements.   Automatic Short Tag Support   Note: If you find that t...

Читать урок >>

Обучающий онлайн урок
Управление Вашими приложениями.

By default it is assumed that you only intend to use CodeIgniter to manage one application, which you will build in your application/ directory. It is possible, however, to have multiple sets of applications that share a single CodeIgniter installation, or even to rename or relocate your application folder. Renaming the Application Folder If you would like to rename your application folder you may do so as long as you open your main index.php file and set its name using the$application_fold...

Читать урок >>

Обучающий онлайн урок
Профилирование приложения.

The Profiler Class will display benchmark results, queries you have run, and $_POST data at the bottom of your pages. This information can be useful during development in order to help with debugging and optimization. Initializing the Class Important:  This class does NOT need to be initialized. It is loaded automatically by the Output Class if profiling is enabled as shown below. Enabling the Profiler To enable the profiler place the following function anywhere within your Controlle...

Читать урок >>

Обучающий онлайн урок
Кэширование страниц.

CodeIgniter lets you cache your pages in order to achieve maximum performance. Although CodeIgniter is quite fast, the amount of dynamic information you display in your pages will correlate directly to the server resources, memory, and processing cycles utilized, which affect your page load speeds. By caching your pages, since they are saved in their fully rendered state, you can achieve performance that nears that of static web pages. How Does Caching Work? Caching can be enabled on a per...

Читать урок >>

Обучающий онлайн урок
Обработка ошибок.

CodeIgniter lets you build error reporting into your applications using the functions described below. In addition, it has an error logging class that permits error and debugging messages to be saved as text files. Note: By default, CodeIgniter displays all PHP errors. You might wish to change this behavior once your development is complete. You'll find the error_reporting() function located at the top of your main index.php file. Disabling error reporting will NOT prevent log files from bei...

Читать урок >>

Обучающий онлайн урок
URI Маршрутизация/Routing.

Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method. The segments in a URI normally follow this pattern: example.com/class/function/id/ In some instances, however, you may want to remap this relationship so that a different class/function can be called instead of the one corresponding to the URL. For example, lets say you want your URLs to have this prototype: example.com/product/1/ example.com/product/2/ example.com/product/3/ e...

Читать урок >>

Обучающий онлайн урок
Общие Функции.

CodeIgniter uses a few functions for its operation that are globally defined, and are available to you at any point. These do not require loading any libraries or helpers. is_php('version_number') is_php() determines of the PHP version being used is greater than the supplied version_number. if (is_php('5.3.0')) {     $str = quoted_printable_encode($str); } Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Retu...

Читать урок >>

Обучающий онлайн урок
Автозагрузка Ресурсов/Resources.

CodeIgniter comes with an "Auto-load" feature that permits libraries, helpers, and models to be initialized automatically every time the system runs. If you need certain resources globally throughout your application you should consider auto-loading them for convenience. The following items can be loaded automatically: Core classes found in the "libraries" folder Helper files found in the "helpers" folder Custom config files found in the "config" folder Language files found in the "sys...

Читать урок >>

Обучающий онлайн урок
Хуки - расширение ядра.

CodeIgniter's Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files. When CodeIgniter runs it follows a specific execution process, diagramed in the Application Flow page. There may be instances, however, where you'd like to cause some action to take place at a particular stage in the execution process. For example, you might want to run a script right before your controllers get loaded, or right after, or you might want to tr...

Читать урок >>

Every time CodeIgniter runs there are several base classes that are initialized automatically as part of the core framework. It is possible, however, to swap any of the core system classes with your own versions or even extend the core versions. Most users will never have any need to do this, but the option to replace or extend them does exist for those who would like to significantly alter the CodeIgniter core. Note:  Messing with a core system class has a lot of implications, so make...

Читать урок >>

Обучающий онлайн урок
Создание Драйверов/Drivers.

Driver Directory and File Structure Sample driver directory and file structure layout: /application/libraries/Driver_name Driver_name.php drivers Driver_name_subclass_1.php Driver_name_subclass_2.php Driver_name_subclass_3.php NOTE: In order to maintain compatibility on case-sensitive file systems, theDriver_namedirectory must be ucfirst()

Читать урок >>

Обучающий онлайн урок
Использование Драйверов/Drivers.

Drivers are a special type of Library that has a parent class and any number of potential child classes. Child classes have access to the parent class, but not their siblings. Drivers provide an elegant syntax in your controllers for libraries that benefit from or require being broken down into discrete classes. Drivers are found in the system/libraries folder, in their own folder which is identically named to the parent library class. Also inside that folder is a subfolder named drivers, wh...

Читать урок >>

Обучающий онлайн урок
Создание Библиотек/Libraries.

When we use the term "Libraries" we are normally referring to the classes that are located in the libraries directory and described in the Class Reference of this user guide. In this case, however, we will instead describe how you can create your own libraries within your application/libraries directory in order to maintain separation between your local resources and the global framework resources. As an added bonus, CodeIgniter permits your libraries to extend native classes if you simply n...

Читать урок >>

Обучающий онлайн урок
Использование Библиотек/Libraries.

All of the available libraries are located in your system/libraries folder. In most cases, to use one of these classes involves initializing it within a controller using the following initialization function: $this->load->library('class name'); Where class name is the name of the class you want to invoke. For example, to load the form validation class you would do this: $this->load->library('form_validation'); Once initialized you can use it as indicated in the user guide pa...

Читать урок >>

Обучающий онлайн урок
Помощники/Helpers.

Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files, etc. Unlike most other systems in CodeIgniter, Helpers are not written in an Object Oriented format. They are simple, pro...

Читать урок >>

Обучающий онлайн урок
Модели/Models.

Models are optionally available for those who want to use a more traditional MVC approach. What is a Model? Anatomy of a Model Loading a Model Auto-Loading a Model Connecting to your Database What is a Model? Models are PHP classes that are designed to work with information in your database. For example, let's say you use CodeIgniter to manage a blog. You might have a model class that contains functions to insert, update, and retrieve your blog data. Here is an example of what such...

Читать урок >>

Обучающий онлайн урок
Представления/Views

A view is simply a web page, or a page fragment, like a header, footer, sidebar, etc. In fact, views can flexibly be embedded within other views (within other views, etc., etc.) if you need this type of hierarchy.   Views are never called directly, they must be loaded by a controller. Remember that in an MVC framework, the Controller acts as the traffic cop, so it is responsible for fetching a particular view. If you have not read the Controllers page you should do so before continuing...

Читать урок >>

Обучающий онлайн урок
Зарезервированные имена.

In order to help out, CodeIgniter uses a series of functions and names in its operation. Because of this, some names cannot be used by a developer. Following is a list of reserved names that cannot be used. Controller names Since your controller classes will extend the main application controller you must be careful not to name your functions identically to the ones used by that class, otherwise your local functions will override them. The following is a list of reserved names. Do not name ...

Читать урок >>

Обучающий онлайн урок
Контроллеры/Controllers.

Controllers are the heart of your application, as they determine how HTTP requests should be handled. What is a Controller? Hello World Functions Passing URI Segments to Your Functions Defining a Default Controller Remapping Function Calls Controlling Output Data Private Functions Organizing Controllers into Sub-folders Class Constructors Reserved Function Names What is a Controller? A Controller is simply a class file that is named in a way that can be associated with a UR...

Читать урок >>

Обучающий онлайн урок
Как узнать длину строки в JavaScript

Получить длину строки можно с помощью свойства length объекта Строка/String: // создаем строковую переменную. var line = 'У лукоморья дуб зеленый.'; // длину строки выводим в консоль. console.log(line.length);  

Читать урок >>

Обучающий онлайн урок
Как получить базовый url в Selenium IDE?

Для получения базового url-а в Selenium IDE воспользуйтесь командой storeEval: storeEval | 'http://'+window.document.domain+'/' | SITE_URLecho | ${SITE_URL}      

Читать урок >>

Обучающий онлайн урок
Урлы в CodeIgniter.

By default, URLs in CodeIgniter are designed to be search-engine and human friendly. Rather than using the standard "query string" approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach: example.com/news/article/my_article Note: Query string URLs can be optionally enabled, as described below. URI Segments The segments in the URL, in following with the Model-View-Controller approach, usually represent: example.com/class/function/ID The first...

Читать урок >>

Обучающий онлайн урок
Общие темы.

Читать урок >>

Обучающий онлайн урок
Model-View-Controller

CodeIgniter is based on the Model-View-Controller development pattern. MVC is a software approach that separates application logic from presentation. In practice, it permits your web pages to contain minimal scripting since the presentation is separate from the PHP scripting. The Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert, and update information in your database. The View is the information that is being presen...

Читать урок >>

Обучающий онлайн урок
Схема выполнения.

The following graphic illustrates how data flows throughout the system: The index.php serves as the front controller, initializing the base resources needed to run CodeIgniter. The Router examines the HTTP request to determine what should be done with it. If a cache file exists, it is sent directly to the browser, bypassing the normal system execution. Security. Before the application controller is loaded, the HTTP request and any user submitted data is filtered for security. The Con...

Читать урок >>

Обучающий онлайн урок
Возможности CodeIgniter.

Features in and of themselves are a very poor way to judge an application since they tell you nothing about the user experience, or how intuitively or intelligently it is designed. Features don't reveal anything about the quality of the code, or the performance, or the attention to detail, or security practices. The only way to really judge an app is to try it and get to know the code. Installing CodeIgniter is child's play so we encourage you to do just that. In the mean time here's a list o...

Читать урок >>

Обучающий онлайн урок
CodeIgniter в цифрах.

CodeIgniter is an Application Framework CodeIgniter is a toolkit for people who build web applications using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task. CodeIgniter is...

Читать урок >>

Обучающий онлайн урок
Приступая к работе с CodeIgniter.

Any software application requires some effort to learn. We've done our best to minimize the learning curve while making the process as enjoyable as possible. The first step is to install CodeIgniter, then read all the topics in the Introduction section of the Table of Contents. Next, read each of the General Topics pages in order. Each topic builds on the previous one, and includes code examples that you are encouraged to try. Once you understand the basics you'll be ready to explore the C...

Читать урок >>

Обучающий онлайн урок
Устранение неполадок.

If you find that no matter what you put in your URL only your default page is loading, it might be that your server does not support the PATH_INFO variable needed to serve search-engine friendly URLs. As a first step, open your application/config/config.php file and look for the URI Protocol information. It will recommend that you try a couple alternate settings. If it still doesn't work after you've tried this you'll need to force CodeIgniter to add a question mark to your URLs. To do this o...

Читать урок >>

Upgrading from 2.1.4 to 2.2.0 Note: The Encryption Class now requires the Mcrypt extension. If you were previously using the Encrypt Class without Mcrypt this is a breaking change, you must install the Mcrypt extension in order to upgrade. For information on installing Mcrypt please see the PHP documentation. Before performing an update you should take your site offline by replacing the index.php file with a static one. Step 1: Update your CodeIgniter files Replace all files and directo...

Читать урок >>

Обучающий онлайн урок
Введение в CodeIgniter.

Читать урок >>

CodeIgniter is installed in four steps: Unzip the package. Upload the CodeIgniter folders and files to your server. Normally the index.php file will be at your root. Open the application/config/config.php file with a text editor and set your base URL. If you intend to use encryption or sessions, set your encryption key. If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings. If you wish to increase security by ...

Читать урок >>

Обучающий онлайн урок
Скачать CodeIgniter 2.2.

CodeIgniter V 2.2.0 (Current version) Git Server Git is a distributed version control system. Public Git access is available at GitHub. Please note that while every effort is made to keep this code base functional, we cannot guarantee the functionality of code taken from the tip. Beginning with version 2.0.3, stable tags are also available via GitHub, simply select the version from the Tags dropdown.

Читать урок >>

Обучающий онлайн урок
Команда участников CodeIgniter.

CodeIgniter was originally developed by Rick Ellis (CEO of EllisLab, Inc.). The framework was written for performance in the real world, with many of the class libraries, helpers, and sub-systems borrowed from the code-base of ExpressionEngine. It is currently developed and maintained by the ExpressionEngine Development Team. Bleeding edge development is spearheaded by the handpicked contributors of the Reactor Team. A hat tip goes to Ruby on Rails for inspiring us to create a PHP framework...

Читать урок >>

Обучающий онлайн урок
Установка

Читать урок >>

Version 2.2.0   Release Date: June 5, 2014   General Changes Security: Thexor_encode()method in the Encrypt Class has been removed. The Encrypt Class now requires the Mcrypt extension to be installed. Security: The Session Library now uses HMAC authentication instead of a simple MD5 checksum.   Bug fixes for 2.2.0:   Fixed an edge case (#2583) in the Email Library where Suhosin blocked messages sent viamail()due to trailing newspaces in headers. Fixe...

Читать урок >>

Обучающий онлайн урок
Лицензионное соглашение.

Copyright (c) 2008 - 2014, EllisLab, Inc. All rights reserved. This license is a legal agreement between you and EllisLab Inc. for the use of CodeIgniter Software (the "Software"). By obtaining the Software you agree to comply with the terms and conditions of this license. Permitted Use You are permitted to use, copy, modify, and distribute the Software and its documentation, with or without modification, for any purpose, provided that the following conditions are met: A copy of this li...

Читать урок >>

Обучающий онлайн урок
Требования к серверу

PHP version 5.1.6 or newer. A Database is required for most web application programming. Current supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC.

Читать урок >>

Обучающий онлайн урок
Welcome to CodeIgniter 2.2.

Welcome to CodeIgniter CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given ...

Читать урок >>

Обучающий онлайн урок
Учебник

Читать урок >>

Обучающий онлайн урок
Введение.

В этом учебнике Вы познакомитесь с архитектурой  MVC (Model-View-Controller) на примере работы с фреймворком CodeIgniter®. Шаг за шагом Вы изучите базовые принципы CodeIgniter®. На этом уроке Вы создадите простое новостное приложение. Начнем с написания кода, для загрузки статических страниц. Далее, Вы создадите раздел Новости, которые будет отображать новости сохраненные в базе данных. Наконец, Вы добавите форму для хранения новостей в базе данных. Этот учебник в первую очеред...

Читать урок >>

Обучающий онлайн урок
Статические страницы.

Примечание: Для дальнейшего изучения Вам необходимо иметь скаченную версию CodeIgniter и установить её в вашей среде разработки. Первое, что Вам необходимо сделать, это создать контроллер для обработки статических страниц. Контроллер это простой класс, который помогает распределять работу. Например, когда Вы вызываете http://example.com/news/latest/10, то можно предположить, что есть контроллер под названием "news". Название метода в контроллере "news" будет "latest". Задача метода "latest...

Читать урок >>

Обучающий онлайн урок
Раздел Новости.

In the last section, we went over some basic concepts of the framework by writing a class that includes static pages. We cleaned up the URI by adding custom routing rules. Now it's time to introduce dynamic content and start using a database. Setting up your model Instead of writing database operations right in the controller, queries should be placed in a model, so they can easily be reused later. Models are the place where you retrieve, insert, and update information in your database or o...

Читать урок >>

Обучающий онлайн урок
Создание Новости.

You now know how you can read data from a database using CodeIgnite, but you haven't written any information to the database yet. In this section you'll expand your news controller and model created earlier to include this functionality. Create a form To input data into the database you need to create a form where you can input the information to be stored. This means you'll be needing a form with two fields, one for the title and one for the text. You'll derive the slug from our title in t...

Читать урок >>

Обучающий онлайн урок
Заключение.

This tutorial did not cover all of the things you might expect of a full-fledged content management system, but it introduced you to the more important topics of routing, writing controllers, and models. We hope this tutorial gave you an insight into some of CodeIgniter's basic design patterns, which you can expand upon. Now that you've completed this tutorial, we recommend you check out the rest of the documentation. CodeIgniter is often praised because of its comprehensive documentation. U...

Читать урок >>

В этом уроке Вы узнаете как редактировать налоги в PrestaShop 1.5. Налоговые ставки могут меняться (увеличиваться и уменьшаться). Инструкция ниже поможет вам в редактировании налоговых ставок в Prestashop. Шаг 1: Войдите в панель управления PrestaShop 1.5. Шаг 2: Зайдите на страницу "Перевод/Localizations" > "Налоги/Taxes". Шаг 3: На странице "Налоги/Taxes" представлен список налоговых ставок. Для редактирования кликните кнопку "Редактировать/Edit" для соответствующей налоговой ставки....

Читать урок >>

Обучающий онлайн урок
Как убрать текст "Powered by PrestaShop"

Для удаления надписи "Powered by PrestaShop" внизу страницы следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти "CMS Block". * зайдите в настройки (Configure) блока "CMS Block". * удалите значение 'Display "Powered by PrestaShop"' и нажмите "Сохранить(Save)".  

Читать урок >>

Для изменния глубины просмотра категорий в блоке "Категории" следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти "Categories block". * зайдите в настройки (Settings) блока "Categories block". * измените значение параметра "Maximum depth" и нажмите "Сохранить(Save)".

Читать урок >>

Для удаления иконки и ссылки "RSS" в блоке "Следуй за мной (Follow us)", внизу страницы следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти "Social networking block". * зайдите в настройки (Settings) блока "Social networking block". * удалите значение "RSS URL" и нажмите "Сохранить настройки(Update Settings)".  

Читать урок >>

Для удаления иконки и ссылки "Twitter" в блоке "Следуй за мной (Follow us)", внизу страницы следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти "Social networking block". * зайдите в настройки (Settings) блока "Social networking block". * удалите значение "Twitter URL" и нажмите "Сохранить настройки(Update Settings)".  

Читать урок >>

Для удаления иконки и ссылки "Facebook" в блоке "Следуй за мной (Follow us)", внизу страницы следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти "Social networking block". * зайдите в настройки (Settings) блока "Social networking block". * удалите значение "Facebook URL" и нажмите "Сохранить настройки(Update Settings)".  

Читать урок >>

Для удаление блока с текстом "Money back guarantee. In-store exchange. Payment upon shipment. Free Shipping. 100% secure payment processing." следует: * зайти на страницу модулей (Backend > Modules). * на странице "Модули(Modules)" найти модуль "Customer reassurance block". * Удалите блок "Customer reassurance block".    

Читать урок >>

Для редактирования главного (горизонтального) меню следует: * зайти на страницу модулей (Backend > Modules). * на странице Модели найти модуль "Top horisontaalinen menu". * перейти на страницу настроек модуля "Top horisontaalinen menu".

Читать урок >>

Для вашей темы необходимо переопределеить и отредактировать файл: ".\modules\blockcurrencies\blockcurrencies.tpl". Для этого: 1. скопируйте файл ".\modules\blockcurrencies\blockcurrencies.tpl" в вашу тему, что бы получился путь ".\themes\<ДиректорияВашейТемы>\modules\blockcurrencies\blockcurrencies.tpl". 2. отредактируйте файл ".\themes\<ДиректорияВашейТемы>\modules\blockcurrencies\blockcurrencies.tpl". Добавьте проверку на количество записей в массиве $currencies: {* *...

Читать урок >>

В некоторых переводах PrestaShop отсутствет перевод следующих строк: "Delivery", "Legal Notice", "Terms and conditions of use", "About us", "Secure payment". На странице "Переводы" (Localization > Translations) жти строки также отсутствуют. Перевести их можно на странице CMS (Preferences > CMS).

Читать урок >>

Данная инструкция поможет вам в следующих случаях: Перенос магазина на базе PrestaShop с локального хоста (Denwer, XAMPP или д.р.) на рабочий хостинг. Изменение доменного имени для магазина на PrestaShop. Перенос магазина на базе PrestaShop с рабочего хостинга на локальный хост. Перенос магазина на базе PrestaShop с локального хоста (Denwer, XAMPP или д.р.) на рабочий хостинг. Заливаем файлы по ftp на хостинг. Подготавливаем базу данных - экспортируем базу банных с локального хост...

Читать урок >>

Обучающий онлайн урок
Как войти в админку PrestaShop

Вопрос: Как войти в админку PrestaShop? пробовал варианты /admin/, /login/, /administrator/, /admin.php - не помогает. Ответ: Для безопасности, при установке PrestaShop переименовывает директорию авторизации к виду /admin<NNNN>, где <NNNN> случайное число генерируему при установке. Чтобы узнать название директории, необхожимо зайти по FTP в директорию, куда устанавливался PrestaShop, и найти директорию вида /admin<NNNN>. Далее следует использовать название директории в урл...

Читать урок >>

Обучающий онлайн урок
Терминология PHP

Категория: Уроки ← Уроки PHP

Обработчик PHP или Интерпретатор PHP - программа выполняющая команды указанные в скрипте на языке PHP.

Читать урок >>

Обучающий онлайн урок
Контекстная реклама.

Яндекс.Директ   Begun (Бегун) Система Begun предлагает несколько типов площадок: Поисковая система Новостной и контент-сайт Видеохостинг Мобильный сайт Мобильное приложение Flash приложение Фотохостинг Интерактивная карта (геосервис) Телеканал. и несколько вариантов подключения рекламы Автоконтекст Переходы Контекстные Показы Видеоконтекст Гиперконтекст Автоконтекст мобильный Фотоконтекст Вертикальный поиск Карты Мобильные приложения Доход от рекламы участн...

Читать урок >>

Обучающий онлайн урок
Протокол expect:// в PHP

Категория: Уроки ← Уроки PHP

expect:// — Потоки для взаимодействия с процессами Описание Потоки, открытые с помощью обертки expect://, предоставляют доступ к stdio, stdout и stderr процессов через PTY. Замечание: Эта обертка отключена по умолчанию Для того, чтобы использовать обертку expect://, необходимо установить модуль » Expect, доступный в » PECL. expect:// PHP 4.3.0 и выше (PECL) Опции expect://command Опции Основная информация АтрибутПоддержка Огран...

Читать урок >>

Обучающий онлайн урок
ogg://

ogg:// — Аудио потоки Report a bug Описание Файлы, открываемые для чтения с использованием обертки ogg://, рассматриваются как сжатый аудио поток, кодируемый с использованием кодека OGG/Vorbis. Аналогично, файлы открытые для записи или добавления через обертку ogg:// записываются как сжатые звуковые данные. Функция stream_get_meta_data(), когда используется с файлами OGG/Vorbis открытыми для чтения, будет возвращать разнообразную информацию о потоке, включая тэг пр...

Читать урок >>

Обучающий онлайн урок
rar://

Читать урок >>

Обучающий онлайн урок
ssh2://

Читать урок >>

Обучающий онлайн урок
Галереи для jQuery 1.9.1

На этой странице вы найдете список Фото Галерей для jQuery 1.9.1. Обзор галерей для jQuery 1.9.1 GalleryView С jQuery 1.9.1 работает. Используемая версия в официальных примерах jQuery 1.7.1. Страница проекта GitHub Демонстрация: Zero configuration Adding captions Custom thumbnails and photo details Displaying all thumbnails Slider-style gallery Varying element positioning Image panning CREATE-A-GALLERY (NEW)      

Читать урок >>

Обучающий онлайн урок
phar://

phar:// — PHP архив Report a bug Описание Обертка потока phar:// доступна начиная с версии PHP 5.3.0. Смотрите раздел обертка потока Phar для более детального описания. Report a bug Опции phar:// Report a bug Опции   Основная информация Атрибут Поддержка Ограничение по allow_url_fopen Нет Ограничение по allow_url_include Нет Чтение Да Запись Да Добавление Нет Одновременное чтение и запись Да Поддержк...

Читать урок >>

Обучающий онлайн урок
glob://

Читать урок >>

Обучающий онлайн урок
data://

data:// — Схема Data (RFC 2397) Report a bug Описание data: (» RFC 2397) - это обертка потоков, доступная с PHP 5.2.0. Report a bug Опции data://text/plain;base64, Report a bug Опции   Основная информация Атрибут Поддержка Ограничение по allow_url_fopen Нет Ограничение по allow_url_include Да Чтение Да Запись Нет Добавление Нет Чтение и запись одновременно Нет Поддержка stat() Нет ...

Читать урок >>

Обучающий онлайн урок
zlib:// bzip2:// zip://

Читать урок >>

Обучающий онлайн урок
php://

php:// — Доступ к различным потокам ввода-вывода Report a bug Описание PHP предоставляет несколько разнообразных потоков ввода-вывода, которые позволяют получить доступ к собственным потокам ввода-вывода PHP,к дескрипторам стандартного ввода, вывода и потока ошибок, к временным файловым потокам в памяти и на диске, и фильтрам, которые могут манипулировать другими файловыми ресурсами по мере их считывания или записи. php://stdin, php://stdout and php://stderr php://...

Читать урок >>

Обучающий онлайн урок
ftp:// ftps://

ftp:// -- ftps:// — Доступ к URL-адресам по протоколу FTP(s) Report a bug Описание Позволяет читать существующие файлы и создавать новые файлы через FTP. Если сервер FTP не поддерживает режим passive mode, соединение будет невозможно. Вы можете открыть файл либо для чтения, либо для записи, но не одновременно для того и другого. Если файл на сервере FTP уже существует, и вы пытаетесь открыть его для записи, но не указали опцию контекста overwrite, соединение будет ...

Читать урок >>

Обучающий онлайн урок
http:// https://

http:// -- https:// — Доступ к URL-адресам по протоколу HTTP(s) Report a bug Описание Предоставляет доступ только для чтения файлов/ресурсов через HTTP 1.0, используя метод HTTP GET. Для поддержки name-based виртуальных хостов вместе с запросом посылается заголовок Host:. Если вы сконфигурировали строку user_agent, используя ващ файл php.ini или контекст потока, то она также будет включена в запрос. Этот поток также позволяет получить доступ к содержимому ресурс...

Читать урок >>

Обучающий онлайн урок
file://

file:// — Доступ к локальной файловой системе Report a bug Описание Файловая система - это стандартная обертка для PHP, представляющая файловую систему на локальном компьютере. Когда задан относительный путь (путь, который не начинается с символов "/", "\", "\\" или с буквы жесткого диска в Windows), он будет применен к текущей рабочей директории. В большинстве случаев это директория, в которой находится сценарий, если она не была изменена. При использовании CLI SAPI дире...

Читать урок >>

PHP поставляется с множеством встроенных обработчиков для различных URL-протоколов для использования с функциями файловой системы, таких как fopen(), copy(), file_exists() и filesize(). В дополнение к этим обработчикам, можно регистрировать собственные обработчики, используя функцию stream_wrapper_register(). Замечание: URL синтаксис, используемый для описания обработчика, может быть только вида scheme://.... Варианты синтаксиса scheme:/ и scheme: не поддержи...

Читать урок >>

Обучающий онлайн урок
Параметры контекста

Параметры контекста — Список параметров контекста Report a bug Описание Данные параметры (parameters) могут быть заданы для контекста (context) с помощью функции stream_context_set_params(). Report a bug Список параметров   notification callable Функция типа callable, вызываемая при наступлении события в потоке. За подробностями обращайтесь к документации функции stream_notification_callback().

Читать урок >>

Обучающий онлайн урок
Опции контекста CURL

Опции контекста CURL — Список опций контекста CURL Report a bug Описание Опции контекста CURL доступны в том случае, если расширение CURL скомпилировано, используюя конфигурационную опцию --with-curlwrappers . Report a bug Опции   method string GET, POST, или любой другой HTTP-метод, поддерживаемый удаленным сервером. По умолчанию - GET. header string Дополнительные заголовки для отправки вместе с запросом. Значения в этой опции будут ...

Читать урок >>

Обучающий онлайн урок
Урок Десятый - РАЖ.

Театр Станиславского мог возникнуть только в России, поскольку мы понимаем и любим лишь то искусство, где актер проживает на сцене, а зрители сопереживают актеру и герою, коего он играет. Все остальное смотрим из любопытства. То есть, чувства и эмоции возникают у нас лишь при условии соучастия в спектакле. Точно так же мы читаем хорошие книги и смотрим кино,  от того поэт и сказал – «Над вымыслом слезами обольюсь…» Актерское мастерство и талант стихотворца напря...

Читать урок >>

Обучающий онлайн урок
Опции контекста SSL

Опции контекста SSL — Список опций контекста SSL Report a bug Описание Опции контекста для протоколов ssl:// и tls:// Report a bug Опции   verify_peer boolean Требовать проверки используемого SSL-сертификата. По умолчанию FALSE. allow_self_signed boolean Разрешить самоподписанные сертификаты. Требует verify_peer. По умолчанию FALSE cafile string Расположение файла сертификата в локальной файловой системе, который следует использовать с о...

Читать урок >>

Обучающий онлайн урок
Урок Девятый - ГОИ.

Благодаря мутной современной (и не только) лингвистике, чистый родник Дара Речи представляется сейчас непроглядным, как застоявшееся темное озеро, в котором рыбку ловить хорошо и удобно, однако истину весьма трудно. Не устану повторять: в нашем языке нет ничего лишнего, случайного, «дежурного», всякий слог и даже звук (знак) имеет суть и толкование, информационная плотность слова сравнима разве что со сверхплотностью привычного нам, и самого распространенного на земле, вещества - ...

Читать урок >>