-
create project directory
-
extract symfony lib under lib/vendor/
-
Run the command to generate symfony 1.4 project php lib/vendor/symfony/data/bin/symfony generate:project <PROJECT_NAME>
-
Set up vhost and host entry. If rewrite mode is not enabled, please enable it (in ubuntu use sudo a2enmod rewrite) vhost template : <VirtualHost *:80> DocumentRoot /Users/shaduli/studies/training/web DirectoryIndex index.php ServerName training.ali <Directory /Users/shaduli/studies/training/web/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all
Alias /sf /Users/shaduli/studies/training/lib/vendor/symfony/data/web/sf <Directory /Users/shaduli/studies/training/lib/vendor/symfony/data/web/sf> AllowOverride All Allow from All </Directory> </VirtualHost>
-
Set up the permission requirements for symfony ./symfony project:permissions
-
Configure the database ./symfony configure:database mysql:"host=<HOST_NAME>;dbname=<DB_NAME>" <MYSQL_USER>
-
Create the application ./symfony generate:app <APP_NAME>
-
Create the models in schema.yml templates: Category: actAs: { Timestampable } columns: name: {type: string(255), notblank: true } #post model Post: actAs: { Timestampable } columns: title: {type: string(255), notblank: true } body: {type: text, notblank: true, minlength: 50 } author: {type: string(255), notblank: true } is_approved: {type: boolean, default: false } category_id: {type: integer, notnull: true } relations: Category: { class: Category, local: category_id, foreign: id, type: one , foreignType: many, foreignAlias: Posts, onDelete: CASCADE }
-
Generate the model classes: ./symfony doctrine:build --model
-
Generate the form classes: ./symfony doctrine:build --forms
-
Generate filter classes ./symfony doctrine:build --filters
-
Create the sql for databasde and insert in db ./symfony doctrine:build-sql
./symfony doctrine:insert-sqlNote: Steps 9-12 can be done in a single command: ./symfony doctrine:build --all . But it is dangerous to run in live or existing system
-
Install and Configure sfDoctrineGuardPlugin from http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin
-
create user by using the command : ./symfony guard:create-user --is-super-admin <FIRST_NAME> <LAST_NAME>
-
Install and configure jroller theme plugin http://www.symfony-project.org/plugins/sfAdminThemejRollerPlugin
-
You can create backend modules using ./symfony doctrine:generate-admin <BACKEND_APP> --module="<MODUEL_NAME>"
-
Notifications
You must be signed in to change notification settings - Fork 1
alicomo/training
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
COMO SYMFONY 1.4 TRAINING
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published