$this->getResponse()->setTitle($shopInfo->getName());
Retrieving in template:
$sf_response->getTitle();
$this->getResponse()->setTitle($shopInfo->getName());
$sf_response->getTitle();
$result = Doctrine::getTable('Shop')->findBySlug($name); public function findBySlug($name) { return Doctrine::getTable('Shop') ->createQuery('s') ->where('s.slug = ?', $name) ->fetchOne(); }
all: user: class: myUser param: timeout: 18000 logging: %SF_LOGGING_ENABLED% use_flash: true default_culture: %SF_DEFAULT_CULTURE% storage: class: sfSessionStorage param: session_name: application_name
In a template, you can call $sf_data->getRaw('myActionProperty');
after init it like $this->myActionProperty = array('hey'=>'hoy'); inside an
action.
So you'll get your raw object : unescaped.
php symfony doctrine:build --all-classes --sql
php symfony doctrine:migrate
php symfony plugin:publish-assets
php symfony cc
Thanks bit2bit.it, whoever you are.. ;)
You can easily solve this issue by entering a complex rule using the very same primary keys you defined in your schema.yml. Assuming the “myModule” model has two primary keys “myKey1″ and “myKey2″, you can change your route like the followingcolumn: myKey1/:myKey2here you go: solved!
$(function(){ getMailTypeText(); $('select#procedure_mail_template_mail_type_id').live('change', function(){ getMailTypeText(); }); }); function getMailTypeText(){ $.ajax({ url: $('input#getMailTypeText').val(), data: { mail_type_id: $('select#procedure_mail_template_mail_type_id').val()}, dataType: 'json', success: function(xhr){ $('div#mail_type_text').html(xhr["text1"]); } }); }
public function configure() { $user_id = sfContext::getInstance()->getUser()->getGuardUser()->id; $query = Doctrine_Query::create() ->from('UserFamily t') ->where('t.user_id=?', $user_id); $this->widgetSchema['user_family_id'] = new sfWidgetFormDoctrineChoice(array( 'model' => $this->getRelatedModelName('UserFamily'), 'add_empty' => false, 'query' => $query, 'method' => 'getFullName', )); $this->widgetSchema['procedure_id'] = new sfWidgetFormInputHidden(array(), array( 'value'=>$this->getObject()->get('procedure_id') )); } public function getFullName() { $civilite = UserFamily::getCiviliteList(); return $civilite[$this['civilite']].' '.$this['prenom'].' '.$this['nom']; }
public function executeNew(sfWebRequest $request)
{
$this->forward404Unless($procedure_mail_template = $request->getParameter('procedure_id'), sprintf('Procedure Mail Template is not defined (%s).', $request->getParameter('procedure_id')));
$procedure_mail_templates = new ProcedureMailTemplate;
$procedure_mail_templates->setProcedureId($request->getParameter('procedure_id'));
$this->form = new ProcedureMailTemplateForm($procedure_mail_templates);
}
./symfony doctrine:build-forms
all: is_secure: true
$ ./symfony generate:module frontend address
$ ./symfony cache:clear
/frontend_dev.php/addres
I went to:/frontend_dev.php/address/index
$ php symfony doctrine:build --all-classes --sql
$ php symfony doctrine:insert-sql
# skip-innodb
$ php symfony doctrine:insert-sql
extension=php_mysql.dll;
extension=php_pdo;
extension=php_pdo_mysql;
;extension=php_dbase.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fdf.dll
LoadModule vhost_alias_module module/mod_vhost_alias.so
andInclude conf/extra/httpd-vhosts.conf
<VirtualHost 127.0.0.1:8080>
DocumentRoot "C:\AppServ\www\symfony\jobeet\web"
ServerName jobeety.com
ServerAlias www.jobeety.com
DirectoryIndex index.php
<Directory "C:\AppServ\www\symfony\jobeet\web">
AllowOverride All
Allow from All
</Directory>
Alias /sf "C:\AppServ\www\symfony\jobeet\lib\vendor\symfony\data\web\sf"
<Directory "C:\AppServ\www\symfony\jobeet\lib\vendor\symfony\data\web\sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
127.0.0.1 jobeety.com