This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $yormdata = rex_yform_manager_dataset::get(12, 'rex_hirbod'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| also meine abfrage soll sein “WHERE date >= ‘$date’ && (category = ‘1’ OR category = ’5) | |
| 3 Antworten | |
| Gregor Harlan [vor 42 Minuten] | |
| in deinem konkreten fall ist es einfach: | |
| `->where('category', [1, 5])` | |
| Gregor Harlan [vor 42 Minuten] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| R4.3/4.4: min php 4.3.2, max 5.6 | |
| R4.5/4.6: min php 5.3, max 5.6 | |
| R4.7: min php 5.3 | |
| R5: min php 5.5 | |
| 4.7 hat also nach oben keine grenze bei der php-version, stand jetzt. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| skerbis | |
| #71 REX_YFORM_TABLE_DATA für Module | |
| Mit `REX_YFORM_TABLE_DATA` kann ein Auswahlwidget für yform-Tabellendaten ausgegeben werden. | |
| Multiple-Select - List | |
| `REX_YFORM_TABLE_DATA[id="1" table="deinetabelle" output="listwidget" field="feld1,'/',feld2"]` | |
| Single-Select-Widget | |
| `REX_YFORM_TABLE_DATA[id="1" table="deinetabelle" output="widget" field="feld1,'/',feld2"]` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $data = UrlGenerator::getData(); | |
| if($data->urlParamKey == 'news-id') { | |
| // | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Man muss nicht alle Methoden hintereinander hängen, zur Besseren Erklärung mache ich es jetzt mal einzeln: | |
| // Bei get() kommt immer ein Objekt der Klasse rex_sql_table raus, egal, ob die Tabelle schon existiert oder nicht | |
| // Eine nicht existente Tabelle wird hier aber noch nicht erzeugt! | |
| $table = rex_sql_table::get(rex::getTable('foo')); | |
| // Mit exists() kann man abfragen, ob die Tabelle schon existiert: | |
| if ($table->exists()) { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (rex::isBackend()) { | |
| // Ausgabe im Backend ohne Wrapper | |
| echo 'item'; | |
| return; | |
| } | |
| // Aktueller Slice | |
| $slice = '<li>item</li>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $nav = new advanced_rex_navigation(); | |
| $main_navigation = $nav->get(0,3,FALSE,TRUE,'main'); | |
| // 'main' ist der name des navigationstyps | |
| // bitte anpassen je nach einstellung im meta-info-addon | |
| /* weitere setter methoden: | |
| $nav->setClasses(array('menu_item')); | |
| $nav->setSeperator('/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| error_reporting(0); | |
| include 'redaxo/include/master.inc.php'; | |
| error_reporting(E_ALL ^E_NOTICE); | |
| ini_set('display_errors', 1); | |
| $CLONE_THIS_ID = 184; | |
| $DUPLICATE_MODULES = true; |