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
Ideas are worthless without execution | |
Execution is worthless without traction | |
Traction is worthless without revenue | |
Revenue is worthless without profit |
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
class AppController extends Controller | |
{ | |
public $components = array( | |
'RequestHandler', | |
'Auth', | |
); | |
public function beforeFilter() { | |
$this->__setupAuth(); |
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
<?php | |
// Source: http://help.pagodabox.com/customer/portal/articles/174049-cakephp#setting-global-server-variables-in-database-php | |
define("DB_HOST", $_SERVER['DB1_HOST']); | |
define("DB_NAME", $_SERVER['DB1_NAME']); | |
define("DB_USER", $_SERVER['DB1_USER']); | |
define("DB_PASS", $_SERVER['DB1_PASS']); | |
define("DB_PORT", $_SERVER['DB1_PORT']); | |
class DATABASE_CONFIG { |
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
<?php | |
// Possible example of using the CakePHP Schema callback `after` | |
// to insert content in the database. | |
// Inspiration: https://github.com/majna/schema | |
// Copy schema.php to app/Config/Schema | |
// Run: ./Console/cake schema create | |
App::uses('ClassRegistry', 'Utility'); | |
class AppSchema extends CakeSchema { |
NewerOlder