This file contains 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
MenuItem(accueil): | |
name: Accueil | |
MenuItem(blog): | |
name: Blog | |
MenuItem(contact): | |
name: Contact | |
MenuItem(adminBlog): |
This file contains 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
package bootstrap; | |
import models.MenuItem; | |
import play.Play; | |
import play.jobs.Job; | |
import play.jobs.OnApplicationStart; | |
import play.test.Fixtures; | |
@OnApplicationStart | |
public class DataLoader extends Job { |
This file contains 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
Relations: | |
Auteur: | |
local: auteur_id | |
foreign: id | |
cascade: [delete] |
This file contains 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
Article: | |
actAs: | |
SoftDelete: ~ | |
columns: | |
id: { type: integer(4), primary: true, autoincrement: true } | |
auteur_id: { type: integer(4), notnull: true } | |
titre: { type: string(255), notnull: true } | |
contenu: { type: clob, notnull: true } | |
Relations: | |
Auteur: |
This file contains 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
public function configureDoctrine(Doctrine_Manager $manager) | |
{ | |
$manager->setAttribute(Doctrine_Core::ATTR_USE_DQL_CALLBACKS, true); | |
} |
This file contains 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
Article: | |
actAs: | |
SoftDelete: ~ | |
columns: | |
article_id: { type: integer(4), primary: true, autoincrement: true } | |
titre: { type: string(255), notnull: true } | |
contenu: { type: clob, notnull: true } |
This file contains 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 A | |
{ | |
public function configure() | |
{ | |
$this->validatorSchema['A1']->setOption('required', false); | |
$this->validatorSchema['A2']->setOption('required', false); | |
} | |
public function doBind(array $values) | |
{ |
This file contains 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
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot "C:\xampp\htdocs" | |
DirectoryIndex index.php | |
<Directory "C:\xampp\htdocs"> | |
AllowOverride All | |
Allow from All | |
</Directory> | |
</VirtualHost> |
NewerOlder