Skip to content

Instantly share code, notes, and snippets.

@makamo
Created January 27, 2015 15:27
Show Gist options
  • Save makamo/447fe4f5a026500c37f7 to your computer and use it in GitHub Desktop.
Save makamo/447fe4f5a026500c37f7 to your computer and use it in GitHub Desktop.
Maximum function nesting level of '100' reached, aborting! in
<?php
namespace App\Table;
class Employees{
public function __get($key){
$method = 'get'.ucfirst($key);
$this->$key = $this->$method;
return $this->$key;
}
public function getId(){
return $this->Ref_Employe;
}
public function getName(){
return $this->EM_Prenom." ".$this->EM_Nom;
}
}
@makamo
Copy link
Author

makamo commented Jan 27, 2015

<?php foreach (Employees::search($_GET["equipement"],$_GET["start"],$_GET["end"],$_GET["quart"]) as $nom): ?>
            <th><?= $nom->name ?></th>
        <?php endforeach ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment