This wiki guide is out of date.
Also, the guide does not seem to specify the version of symfony used anywhere on the page, so there is no way for noobs like myself to know any better.
It took me long enough of messing up the book tutorial to find the specific linked tutorial for mac because all of the words in the title are one giant word. (top notch seo there)
...then several hours of reinstalling symfony and then php and pear over and over again nit picking different incorrect stabs in the dark with the mac install guide.
I will be happy to put together a comprehensive wiki page on installing symfony on mac, cause the documentation so far kinda isn't so hot.
If I am wrong about this and the "new" task is correct not "app:generate" please do inform me.
hi am brand new to this framework and really looking forward to trying it out.
I am running Mac OS X 10.4 and default install of apache and an entrophy PHP 5.2.4 install.
I have followed this guide to a T. http://trac.symfony-project.org/wiki/InstallingSymfonyOnMacO SXWithPHPBinaryFromEntropy
- Code: Select all
$ pear -V
PEAR Version: 1.7.2
PHP Version: 5.2.4
Zend Engine Version: 2.2.0
Running on: Darwin G4 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh
$ php -v
PHP 5.2.4 (cli) (built: Aug 31 2007 23:57:08)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Everything goes smooth installing with PEAR (I have to run all my commands as sudo) until I go to make a new project. (I haven't gotten past this point yet)
- Code: Select all
$ symfony -V
symfony version 1.1.0 (/usr/local/php5/lib/php/symfony)
$ symfony new sfdemo
Task "new" is not defined.
Task "new" is not defined comes up in a big red box. same with all the commands after it.
EDIT: after checking the tasks it doesn't look like 'new' is even defined. I don't know anything about this since I have not yet been able to use the framework at all.
Here is a list of what was installed via PEAR. is this correct?
- Code: Select all
:help Displays help for a task (h)
:list Lists tasks
:clear Clears the cache (cc, clear-cache)
:author Configure project author
:database Configure database DSN
:app Generates a new application (init-app)
:module Generates a new module (init-module)
:project Generates a new project (init-project)
:task Creates a skeleton class for a new task
:extract Extracts i18n strings from php files
:find Finds non "i18n ready" strings in an application
:clear Clears log files (log-purge)
:rotate Rotates an application log files (log-rotate)
:add-channel Add a new PEAR channel
:install Installs a plugin (plugin-install)
:list Lists installed plugins (plugin-list)
:uninstall Uninstalls a plugin (plugin-uninstall)
:upgrade Upgrades a plugin (plugin-upgrade)
:clear-controllers Clears all non production environment controllers (clear-controllers)
:deploy Deploys a project to another server (sync)
:disable Disables an application in a given environment (disable)
:enable Enables an application in a given environment (enable)
:freeze Freezes symfony libraries (freeze)
:permissions Fixes symfony directory permissions (permissions, fix-perms)
:unfreeze Unfreezes symfony libraries (unfreeze)
:upgrade1.1 Upgrade a symfony project to the 1.1 symfony release
:build-all Generates Propel model, SQL and initializes the database (propel-build-all)
:build-all-load Generates Propel model, SQL, initializes database, and load data (propel-build-all-load)
:build-db Creates database for current model (propel-build-db)
:build-forms Creates form classes for the current model
:build-model Creates classes for the current model (propel-build-model)
:build-schema Creates a schema.xml from an existing database (propel-build-schema)
:build-sql Creates SQL for the current model (propel-build-sql)
:data-dump Dumps data to the fixtures directory (propel-dump-data)
:data-load Loads data from fixtures directory (propel-load-data)
:generate-crud Generates a Propel CRUD module (propel-generate-crud)
:init-admin Initializes a Propel admin module (propel-init-admin)
:insert-sql Inserts SQL for current model (propel-insert-sql)
:schema-to-xml Creates schema.xml from schema.yml (propel-convert-yml-schema)
:schema-to-yml Creates schema.yml from schema.xml (propel-convert-xml-schema)
:all Launches all tests (test-all)
:functional Launches functional tests (test-functional)
:unit Launches unit tests (test-unit)