All Entries in the "symfony" Category
Set Credentials using security.yml in Symfony 1.4
Share Symfony provides some cool configuration features that would allow you to minimize your coding part . In this tutorial i would explain how to configure security.yml to set credentials for a different users. Create a class file named account.class.php under apps/frontend/lib folder with content .The class below checks weather the user is admin and [...]
Generation of same SQL even after changing Schema.yml | Symfony | Doctorine
Share Symfony have updated its ORM to doctrine and me too have update myself to new ORM . I was able to follow the jobeet tutorial – wrote yml schema – generated the model – generated sql and successfully completed the project . When i tried to customize the schema.yml by updating the schema , [...]
Pagination | Using Pager with Doctrine | sfDoctrinePager | Symfony | PHP | MVC Framework
Share As symfony is updated frequently i decided to update my skills too . I have been into many symfony project but the ORM used was Propel but the latest version supports Doctrine , so planned to do a project using doctrine . As i like yml than xml , wrote schema using in yml [...]
Symfony | Doctrine | Error | SQLSTATE[HY000]: General error: 1005 Can’t create table XXX.#sql-818 _1′ (errno: 121). Failing Query:” ALTER TABLE xxx ADD CONSTRAINT …. FOREIGN KEY (xyz) REFERENCES XXX(id) ON DELETE CASCADE”
Share Symfony is a web application framework written in PHP which follows the model-view-controller (MVC) paradigm . A symfony developer may use Object-Relational Mapping (ORM) – Propel or Doctrine . The earlier version of symfony supported propel and i was using it . But in updated versions symfony supported Doctrine and was forced to update [...]
Thumbnail Generation In Symfony Using jsThumbnailPlugin
Share Trying to generate thumbnail in symfony ? well there is a great plugin named jsThumbnailPlugin that would help you to do the same . The plugin create the thumbnails using GD library and uses the symfony cache system to cache the thumbnails . Its simple to configure and use . Step 1 : download [...]






