First off, the defendant has an absolute right to testify BUT should listen to his attorney. There are tactical reasons why it's sometimes a really, really bad idea for the defendant to take the stand. Additionally, if the attorney knows the client plans to lie on the stand, he is obligated to tell him not to, obviously. If the client insists, since the attorney cannot knowingly suborn perjury, the attorney will ask the court to allow the defendant to testify in the narrative. He cannot keep him off the stand BUT both the court and the prosecution will know from the outset that the defendant is probably lying since that is the only time a defense attorney would have any reason to make such a request.