To create a default layout file in zend you can use Zend_Tool from the command line
zf enable layout
Which will create a default layout file in ‘application/layouts/scripts’ and modify your application.ini file.
To create a default layout file in zend you can use Zend_Tool from the command line
zf enable layout
Which will create a default layout file in ‘application/layouts/scripts’ and modify your application.ini file.
Zend framework defaults to production mode, to set development mode add the following to your .htaccess file
SetEnv APPLICATION_ENV development
If you ever have to work with Zend framework on wampserver & windows 7 (god help me), set the include path in your php.ini to something like
include_path = ".;c:\php\includes;C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library"
If you need to force production mode in rails 3 try adding to /config/environemtn.rb the following line
ENV['RAILS_ENV'] ||= 'production'
To show tables on the current database, equivalent to mysql “show tables” use
\dt
To check the status of postgres on a typical debian box try
/etc/init.d/postgresql status
To follow a rails production log
tail -f /path_name/log/production.log
CakePHP internal data type. Currently supported:
The equivalent of a PHP var_dump(object) or print_r(object) in RoR is
object.inspect
edit the file /etc/iptables.up.rules
then when you’ve done that
iptables-restore /etc/iptables.up.rules
to load the new ruleset