Skip to content

Instantly share code, notes, and snippets.

@adahhane
Created July 7, 2011 15:56
Show Gist options
  • Save adahhane/1069831 to your computer and use it in GitHub Desktop.
Save adahhane/1069831 to your computer and use it in GitHub Desktop.
Add Methode
<?php
public function add(){
$idGroup=$_GET['idGroup'];
$groups=new Groups();
$groups->setId($idGroup);
$group=$groups->fetch();
foreach($group as $item){
$group=$item->getName();
}
$member=$this->get("Security")->getUser()->getLogin();
if(isset($_POST['name'])){
$file=$this->get("Session")->get('file_name');
var_dump($file);
}else echo "non";
$this->view('file','add',compact('group','member'));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment