User Login
Latest Technology Articles
- A New Dimension of PCinvent Group Business Management
- Object's assignment, storage & grabage
- C# Mutliple Dimension Syntax
- Small Business System Diagram
- C# Desktop HTTP Post Method to Web
- PHP, Java & C# Documentation Compile
- C# to Open Firefox and go to a URL
- c++ 8 Queens Chessboard Placement in One Dimension
- My Old C++ Pointer Homework
- Simple C# Code to Open and Select File in WinForm
| Joomla 1.5 Framework Variable Request |
|
|
| Tuesday, 24 June 2008 | |
|
In PHP, we have many request hashes: $_GET, $_POST, $_FILES, $_COOKIE and $_REQUEST. (PHP reserved variable start with "$_" ) In Joomla 1.5 Framework, instead of directly using these, we use the the stastic JRequest class. This helps typing less code and improves Joomla security......
For example, we see that the URL is
to get these $_GET session variable, we do
And there is also a set value in Request. This is used when we want to add up something in Request when it is missing. For Example, we want to set request of task editing:
The JRequest of getVar is also very helpful when we are crediting template. Let say we have a module position that we want to show only in the list index page where its $_GET variable in Request is &page=listindex Then in the template, we do:
<jdoc:include type="modules" name="right" style="xhtml" /> is defining the module position in template. Remember that if you add a module postion in template page: index.php. You must also add the code in templateDetails.xml: <positions>
Comments (0)
![]() Write comment
Tags: Technology Programming Joomla 1.5 Framework Variable Request JRequest JRequest:getVar JRequest:setVar |
|
| Last Updated ( Thursday, 26 June 2008 ) |
| < Prev | Next > |
|---|




