Jumi J! 1.0 kullanımı

Diyelim, sen Jumi bileşeni farz eklenti ve modül yüklü ve çalışır durumda içinde Joomla çalışma! ortamı.

Şimdi Jumi ile oynamaya başlayabilirsiniz.

Ben genel canlı sitenizde Jumi ile değil tavsiye oynama yapmak - Eğer Joomla (kamu gözler için değil yani) orada başarıyla özel denendi ancak böyle Jumi uygulamaları yayınlamak gerekir! kurulum; yerel bilgisayarınızda tercihen.

Jumi kullanarak genel stratejisi

Sadece hatırlatmak için:

Jumi hiçbir şey yok ama (enjekte) Joomla içine özel kod içerir!. Ya ayrı bir sayfa (Jumi bileşen) yoluyla ya da makaleler içine (Jumi üzerinden eklentisi) veya modül pozisyonu (Jumi modülü ile) içine. senin kapsayıcılık içerik - basit veya büyü - gördüklerinizi yok.

Kodu veya sunucuya veya Jumi bileşen veritabanı tablosu rekor ikamet doğrudan Jumi uzantıları içine yazılmış dosyaları saklanabilir.

Eğer php dosyalarını okumak yapmak içinde kodlar tutmaya karar Güvenlik sorunları çok.

Genel Jumi kullanım aşağıdaki şemadan adanmış olabilir

Jumi Cheatsheet

Bu yazıda size bir modül sırasıyla ve eklenti, nasıl Jumi bileşeni kullanmayı öğreneceksiniz

Bileşen

Jumi bileşeni özel Joomla yaratır! sayfa ve özel kodu içerir. Özel kod doğrudan ve / veya bileşen madde içine yazılmış olabilir önceden kayıtlı dosyadan "geri" dir.

> Jumi - Bileşenler: bileşeni admin backend üst menü aracılığıyla erişilebilir. O Jumi Uygulama Yöneticisi açılır.

Eğer Application Manager bileşen uygulamaların listesini göreceksiniz. listesi ve eşlik Uygulama Yöneticisi menüsünde kolon anlamları açık - bu genel Joomla saygı! standartları.

İki önceden yüklenmiş örnekleri var vardır: "Merhaba Jumi!" ve "Blogspot". Bu örnekleri itibaren nasıl Jumi bileşeni kullanmayı öğreneceksiniz.

The Pathname field should contain references to the files that resides on your server only.

Komut sipariş işleme

Her iki bileşen "Özel script" ve "yolunu" ve sonra filelds dolu varsa "Özel script" ilk işlenir.

Jumi uygulama Calling

You can call an Application by two ways:

  • relate an Application item with Joomla! menu item or. After the installation of the component there is, as an example for the study, main menu item "Hello Jumi!" connected to the "Hello Jumi!" Application item.
  • Joomla içine herhangi bir yere yazın! Uygulama öğe URL adresini içerik linki. bağlantı oluşturulması için kural basittir:
    index.php?option=com_jumi&fileid=xxx
    where xxx is ID of Jumi application, that can be seen in the right column of Jumi Application Manager list.

Eklenti / mambot

Jumi / mambot Joomla içine içerir eklentisi! makaleler özel komut dosyası: Bir dosya veya Jumi bileşen veritabanı rekor.

Hide Jumi code

Before using the plugin do not forget to enable it in the admin backend.

eklenti Advance parametrelerinde bir switch "Stop / Clear Jumi Kodları" vardır. Evet geçti ise temizler Tüm Jumi Joomla sözdizimi metin eklentisi! makale ve stops kod kapanımları!

Plugin syntax

The general Jumi plugin syntax can be learnt from the Jumi Usage Cheatsheet. We will bring just several examples here:

{jumi [images/codes/test.php]} //includes test.php file located in images/codes
{jumi [*1]} //includes code stored in the 1st record of Jumi component database table
{jumi area calc [test.php] width[4] height[6]} //includes test.php file and fills $jumi array

From given examples you can easily guess that

  1. There must not be any character between the left bracket { and the keyword jumi in the Jumi syntax.
  2. Everything else outside [ ] brackets is stripped out and not processed.
  3. Jumi kod kaynağı olarak ilk braketinin conent yorumlayan ve buna dahil etmeye çalışır. Kod kaynağı Jumi bileşen veritabanı tablosunun bir dosya veya kayıt kimlik olabilir.
  4. Jumi array $ içine ikinci parantez [] Jumi mağazalardan parantez içindekiler başlaması. $ Jumi array (ve değerler) sizin dahil php kodu erişilebilir.

Argüman değerleri sayılar, düz metin, html kodlanmış metin olabilir, vs vs parantez sembollerinden bir istisna ile her şey olabilir: [] {}.

bir şeyler yanlış giderse, örneğin hiçbir şey Evet "modunda Debug" geçiş, makale gösterilir. O Jumi hata mesajı varsa size gösterecektir.

Parametre: Jumi Standart Mutlak Yolu

The Default absolute jumi path is prepanded to the file pathname to be included. If not set it is eqaul to Joomla! root directory. For example:

If we write

{jumi [test.php]}

and the Default Absolute Jumi Path is not set then Jumi plugin looks up test.php in the Joomla! root (where Joomla! configuration.php is). But if we set it to be "images/mycodes" it looks it up in this directory.

We can place our files outside Joomla! installation directory too. For example (on local host) we can have our Joomla! here: "D:/xamp/htdocs/joomla". No problem to store our codes here: "D:/xampp/htdocs/codes" - out of the Joomla! installation directory. The same applies for hosted sites.

The Default Absolute Jumi Paths has got two reasons:

  1. user comfort: no need to over and over again write the full relative path to files to be included
  2. web güvenliği: Bazı nedenlerden dolayı Jumi Jumi sözdizimi kod çalışmıyor ise ziyaretçiler için görünür. dosya yolu dahil. Standart Mutlak Jumi Yol gizlidir ve bu kod aslında görünür kodundan daha gueast zordur. Ve eklenmesi için dosyaları sitenizin dışında yatıyor eğer (www) bu web tarayıcılarından onlara ulaşmak için pratik olarak mümkün değildir. Bakın Güvenlik sorunları Daha fazla bilgi için.

The Default Absolute Jumi Path set here is the global parameter for all Jumi plugin syntax instancies throughout the whole Joomla!.

Parametre: İçiçe yerine

Nested replace

Yuvalama özelliği dahil kodları Jumi sözdizimi yorumlar. Örneğin:

Lets have two files: main.php and nested.php.

The file main.php contains

echo "This is the main file<br />";
echo "{jumi [nested.php]}";
?>

and nested.php contains

echo "This is the nested script";
?>

Having both files main.php and nested.php uploaded into the server we can write into the article

{jumi [main.php]}

The result we see can be either

This is the main file
{jumi [nested.pgp]}

if the switch Nested replace is set to Yok veya

This is the main file
This is the nested script

in case the switch is set to Yes.

It is clear that Nested replace feature brings for the developers quite interesting possibilities.

The nesting feature works in Jumi plugin only.

The nesting feature works for files and codes stored in the Jumi component database table.

Diğer parametreler eklentisi

Eğer Hata ayıklama moduna varsa Evet sen Jumi hata mesajı gösterecektir ayarlanır.

Eğer Stop / Clear Jumi Kodları Evet açıldığında o temizler Tüm Jumi Joomla sözdizimi metin eklentisi! makale ve stops kod kapanımları! Jumi hiçbir kod çıktı Joomla eklenti hiçbir Jumi kodu yok! makaleler.

Modül

The Jumi module includes into a module position custom script: manually or from a file or from Jumi component database record.

Temel parametreleri

"Not Defteri", "Kod yazılı" ve "kod Kaynak:" orada modül yönetiminde sadece birkaç temel Parametrelere vardır.

Notepad serves as an area for your notes.

Code written is an area for your code.

Into the field Source of code you can put either a filepathname of the file to be included into a module or *id of the Jumi component Application item.

Advanced parameters

Jumi Standart Mutlak Yolu has exactly the same meaning as it has in the plugin. With one slight difference: this parameter is not global for all Jumi modules but it can be unique to each Jumi module instance.

Hata ayıklama moduna içinde olduğu gibi aynı anlama sahiptir eklenti: Herhangi bir Jumi hata mesajı göstermez No sonra Jumi modül ayarlandığında. Eğer sorun Yani eğer, hiçbir şey örneğin geçiş gösterilir Evet "modunda Debug".

Other advanced parameters - Module Class Suffix, Önbelleğini etkinleştir - are general Joomla! parameters that can be found in standard Joomla! modules. I suppose their meaning is clear.

Komut sipariş işleme

Eğer dolu varsa her iki bileşeni "Kod yazılı" ve "kod Kaynak" sonra filelds "Kod yazılı" ilk işlenir.

Buy Oil Paintings, Acrylic Paintings, order custom painted Murals, Portraits, Landscapes, Still Lifes, Flowers, Replicas and Art Prints on ArtMaestro.com.
Seyahat portalı - tours.am! Arama Ermenistan turlar, Turlar, arama turları online yedek otelleri online seyahat haberler.