Created
August 22, 2011 18:02
-
-
Save rafarubert/1163050 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Controller | |
| <?php | |
| class BannersController extends AppController { | |
| var $name = 'Banners'; | |
| var $uses = array('Banner'); | |
| var $paginate = array(); | |
| var $helpers = array( | |
| 'Javascript', | |
| ); | |
| function beforeFilter() { | |
| parent::beforeFilter(); | |
| } | |
| function admin_index() { | |
| $this->set('title_for_layout', __('Banners', true)); | |
| } | |
| } | |
| ?> | |
| //Model | |
| <?php | |
| class Banner extends AppModel { | |
| var $name = 'Banner'; | |
| var $useDbConfig = 'descontao'; | |
| var $useTable = 'banners'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment