1
chillbill
Re: XOOPS navigation
  • 2005/3/10 19:43

  • chillbill

  • Just popping in

  • Posts: 5

  • Since: 2005/2/11


sorry, for beeing that general. here is the piece of code i'd like to use:

<?php
if(!session_id()){
session_start();
}

if (!isset($_SESSION['stack'])) {
$stack = array();
$_SESSION['stack'] = $stack;
}

function push($src) {
$stack = $_SESSION['stack'];
$stack[] = $src;
$_SESSION['stack'] = $stack;
}

function pop() {
return array_pop($_SESSION['stack']);
}

if (!isset($_SESSION['previous'])) {
echo "no prev<br>";
}
if (!isset($_SESSION['current'])) {
echo "no curr<br>";
}

echo "PREV:" . $_SESSION['previous'] . "<br>";
echo "CURR:" . $_SESSION['current'] . "<br>";

$_SESSION['previous'] = (string) $_SESSION['current'];
$_SESSION['current'] = (string) $_SERVER['PHP_SELF'] . ($_SERVER['QUERY_STRING'] ? "?" . $_SERVER['QUERY_STRING'] : "");

if ($_SESSION['current'] == $_SESSION['previous']) {
echo "POP<br>";
pop();
$_SESSION['previous'] = end($_SESSION['stack']);
} else {
echo "PUSH<br>";
push($_SESSION['previous']);
}
?>

this file shall be inlcuded in every page. but while debugging this, the session variables where gone till the next page was displayed.

thanx!

alex



2
chillbill
XOOPS navigation
  • 2005/3/10 10:59

  • chillbill

  • Just popping in

  • Posts: 5

  • Since: 2005/2/11


hi folks,

i started developting a database application using the xoops-framework with PEAR and MySQL within the XOOPS-mypage-module.

things worked fine until i run into this problem: imagine you have to views on a content namely A.php and B.php, which are calling a detail page C.php for editing. when editing is done C shall return to it's caller, which could be A or B.

how can i relize such a behaviour? i've already tried a session-stack approach without to much success, since XOOPS seems to kill my variables.

any usefull piece of advice is more than welcome...

desperately

chillbill



3
chillbill
Re: need to build a simple catalog
  • 2005/2/11 18:21

  • chillbill

  • Just popping in

  • Posts: 5

  • Since: 2005/2/11


thanx alot! i'll check it out.

cheers

chillbill



4
chillbill
Re: need to build a simple catalog
  • 2005/2/11 2:22

  • chillbill

  • Just popping in

  • Posts: 5

  • Since: 2005/2/11


nope...where to find? i haven't seen it in the module repository.

btw.: since you've seemed to try to build such a module, would you say, that it will be more than a 2 weeks effort on a 8 hours a day base?

thanx!

chillbill



5
chillbill
need to build a simple catalog
  • 2005/2/11 1:08

  • chillbill

  • Just popping in

  • Posts: 5

  • Since: 2005/2/11


hey folks,

i just installed XOOPS and here i am...
since there so many modules, wich is the most suitfull one, if someone wants to develop a catalog with items like this:

id
name
adress
etc.

and imagine to allow certain users to manipulate it, using "update", "new" and "delete".

sorry, if this question is to basic...i will improve after a while...


cheers

chillbill




TopTop



Login

Who's Online

157 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits