Guest User

Untitled

a guest
May 27th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. class HighlightController extends AppController{
  3.  
  4. var $layout='';
  5. var $uses=array();
  6. var $components=array('highlight');
  7.  
  8. function index(){
  9. $this->render('high_light',null);
  10. }
  11. function highLighting(){
  12. pr($_POST['type']);
  13. $this->highlight->STX($_POST['type']);
  14. $result=$this->highlight->stx_string($_POST['content']);
  15. pr($result);
  16. $this->set('code',$result);
  17. $this->render('high_light_result',null);
  18. }
  19. }
  20. ?>
Add Comment
Please, Sign In to add comment