Code Monkey home page Code Monkey logo

jobeet2bundle's Introduction

Jobeet2Bundle

Jobeet2Bundle is the well known day by day tutorial for symfony 1.4 ported to Symfony2.

Installation

Jobeet2Bundle is mantained to be installed with the latest symfony-standard version (at this time RC3)

clone repository

git clone git://github.com/carlossg00/Jobeet2Bundle.git src/Application/Jobeet2Bundle

Initializing the bundle

To start using the bundle, initialize the bundle in your kernel. This file is usually located at app/AppKernel:

public function registerBundles()
{
	return array(
		// ...
 		new Application\Jobeet2Bundle\Jobeet2Bundle(),
	
	);
}

Register namespace

Add the Application namespace to your autoloader

// app/autoload.php
$loader->registerNamespaces(array(
	// ...
	'Application'					 => __DIR__.'/../src',    	
));

Add the following routes to your global routing file (app/config/routing.yml or app/config/routing_dev.yml)

_jobeet:
    resource: "@Jobeet2Bundle/Controller/Jobeet2Controller.php"
    type:   annotation
    prefix: /jobeet

_job:
    resource: "@Jobeet2Bundle/Controller/JobController.php"
    type:   annotation
    prefix: /job

_category:
    resource: "@Jobeet2Bundle/Controller/CategoryController.php"
    type:   annotation
    prefix: /category

Dependencies

Jobeet2Bundle uses:

Install assets

app/console assets:install web --symlink

Build the database

In SE modify parameters.ini to your database settings

You can set them manually in config.yml

## Doctrine Configuration
doctrine:
	dbal:
   		dbname:   symfony2-jobeet
   		user:     root
   		password: xxxxxxxx
   		logging:  %kernel.debug%
	orm:
   		auto_generate_proxy_classes: %kernel.debug%
   		mappings:
       		Jobeet2Bundle: ~

create the database schema running the following commands

php app/console doctrine:database:create	
php app/console doctrine:schema:create 

Load data fixtures

php app/console doctrine:fixtures:load

Try the application

Make sure the web folder is document root and visit the site:

http://jobeet2/app_dev.php/jobeet

or http://localhost/web/app_dev.php/jobeet

Configuration

Add following lines to your config.yml to customize your application

Jobeet2 Configuration

jobeet2:
    max_jobs_on_homepage :  15
    max_jobs_on_category :  20 
    active_days:            30

or leave as default

jobeet2: ~   

Contributions

Don't ask, just fork it and enhance it. Any commit/comments will be welcome!!

Hope it helps!!

jobeet2bundle's People

Contributors

beberlei avatar carlossg00 avatar danielholmes avatar denderello avatar duanegran avatar fabpot avatar frost-nzcr4 avatar jfphilippe avatar jwage avatar kriswallsmith avatar rouffj avatar seldaek avatar udat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jobeet2bundle's Issues

jobeet2_entity_manager

[InvalidArgumentException]
The service definition "doctrine.orm.jobeet2_entity_manager" does not exist.

No documentation on how to setup Zend_Pagination

Hey Carlos,

I'm getting:

Fatal error: Interface 'Zend\Paginator\Adapter' not found

I'm taking another swing at getting the pagination for this to work. Unfortunately the knplabs paginator info is limited. Can you provide some info on how to install the Zend package in a way that it works? I've extracted in in vendor/zend and added it to registerPrefixes. 'Zend_' => DIR.'/../vendor/zf2/library',

Thanks.

fixtures:load error

When I run the following command:

php app/console doctrine:fixtures:load

I get the following error:

Fatal error: Declaration of Application\Jobeet2Bundle\DataFixtures\ORM\LoadJobbetData::load() must be compatible with that of Doctrine\Common\DataFixtures\FixtureInterface::load() in src/Application/Jobeet2Bundle/DataFixtures/ORM/data.php on line 12

Any suggestions? I'm very new to Symfony. I'm using Symfony 2.0.13. All I have installed or configured is as per the instructions from the README.

Windows Installation Notes

I'm installing this on a Windows box (my dev environment) and wanted to point out the issues I ran across. I'm very new to Symfony.

I ran into trouble with the hyphen in the database name:

## Doctrine Configuration
doctrine:
    dbal:
        dbname:   symfony2-jobeet
        user:     root

I tried

    dbname:   `symfony2-jobeet`

and that got me through the database create, but the schema create failed, so I just used the dbname sf2jobeet

Installing the assetts is missing the 'php'

app/console assets:install web --symlink
S:\>php app/console doctrine:schema:create
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...

  [PDOException]
  SQLSTATE[42000] [1049] Unknown database '`symfony2-jobeet`'

Finally, had trouble with the data fixtures load:

S:\>php app/console doctrine:fixtures:load
  [InvalidArgumentException]
  There are no commands defined in the "doctrine:fixtures" namespace.

Thanks for putting this together! Is there sf2 documentation walking new users through creating this?

Tac

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.