Include a component from within a CakePHP controller


/ Published in: PHP
Save to your folder(s)

This code within your CakePHP controller to include a component.


Copy this code and paste it in your HTML
  1. $this->components[] = 'ComponentName';
  2. $this->Component->init($this);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.